Skip to content

Commit

Permalink
Adding WAITING status in checkstatusLoop (#5336)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
aspiringmind-code authored Sep 30, 2024
1 parent 07d30da commit 8b8c3c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/CRABClient/ClientUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b8c3c6

Please sign in to comment.