From 8b8c3c6a0b8f6186fa94cc7b27e21dc7c3ad3fef Mon Sep 17 00:00:00 2001 From: Vijay Chakravarty Date: Mon, 30 Sep 2024 11:44:14 +0200 Subject: [PATCH] Adding WAITING status in checkstatusLoop (#5336) * Adding detailed message in case of 'WAITING' task status See https://github.com/dmwm/CRABServer/wiki/Task-scheduling * Removing separate elif clause for WAITING status --- src/python/CRABClient/ClientUtilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/CRABClient/ClientUtilities.py b/src/python/CRABClient/ClientUtilities.py index c34ca913..5dae755c 100644 --- a/src/python/CRABClient/ClientUtilities.py +++ b/src/python/CRABClient/ClientUtilities.py @@ -757,13 +757,13 @@ def checkStatusLoop(logger, server, api, taskname, targetstatus, cmdname): else: logger.info("Please wait...") time.sleep(30) - elif taskStatus in ['NEW', 'HOLDING', 'QUEUED', 'RESUBMIT']: + elif taskStatus in ['NEW', 'WAITING', 'HOLDING', 'QUEUED', 'RESUBMIT']: logger.info("Please wait...") time.sleep(30) else: continuecheck = False logger.info("Please check crab.log") - logger.debug("Task status other than SUBMITFAILED, RESUBMITFAILED, SUBMITTED, UPLOADED, NEW, HOLDING, QUEUED, RESUBMIT") + logger.debug("Task status other than SUBMITFAILED, RESUBMITFAILED, SUBMITTED, UPLOADED, WAITING, NEW, HOLDING, QUEUED, RESUBMIT") ## Break the loop if we were waiting already too much. if currenttime > endtime: continuecheck = False