From 742e4932db10c03c5a6771712e171d5dc34985ba Mon Sep 17 00:00:00 2001 From: Martin Kourim Date: Wed, 1 Jul 2026 15:36:36 +0200 Subject: [PATCH] fix(ca_utils): clarify delayed instance error message The old message said the instance was 'already delayed', which is confusing. Reword to explain a recent start/stop attempt is in progress and to re-try later. --- src/cardonnay/ca_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cardonnay/ca_utils.py b/src/cardonnay/ca_utils.py index 65959cc..1bba461 100644 --- a/src/cardonnay/ca_utils.py +++ b/src/cardonnay/ca_utils.py @@ -115,7 +115,10 @@ def delay_instance(instance_num: int, workdir: pl.Path) -> bool: with filelock.FileLock(lock_file=lockfile, timeout=2): delay_instances = get_delay_instances(workdir=workdir) if instance_num in delay_instances: - LOGGER.error(f"Instance number {instance_num} is already delayed.") + LOGGER.error( + f"There was a recent attempt to start/stop the instance number {instance_num}. " + "Re-try later." + ) return False create_delay_file(instance_num=instance_num, workdir=workdir)