From 601976558edb92eb2382aa0460b64324e4420b0b Mon Sep 17 00:00:00 2001 From: Stefano Belforte Date: Wed, 19 Jun 2024 18:16:59 +0200 Subject: [PATCH] Fix 5316 (#5318) * Revert "do not call HTV via REST. Fix #5316 (#5317)" This reverts commit 1d2eed5f9106cc340edb58cf92e369e9f39ae863. * do not make calls to HTC via REST. Fix #5316 --- src/python/CRABClient/Commands/status.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/python/CRABClient/Commands/status.py b/src/python/CRABClient/Commands/status.py index fbd680ae..bedaf481 100644 --- a/src/python/CRABClient/Commands/status.py +++ b/src/python/CRABClient/Commands/status.py @@ -82,6 +82,15 @@ def __call__(self): self.logger.debug("The CRAB server submitted your task to the Grid scheduler (cluster ID: %s)" % rootDagId) + if not webdir: + # if the dag is submitted and the webdir is not there we have to wait that AdjustSites runs + # and uploads the webdir location to the server + self.logger.info("Waiting for the Grid scheduler to bootstrap your task") + failureMsg = "Schedd has not reported back the webdir (yet)" + self.logger.debug(failureMsg) + combinedStatus = "UNKNOWN" + return self.makeStatusReturnDict(crabDBInfo, combinedStatus, statusFailureMsg=failureMsg) + self.logger.debug("Webdir is located at %s", webdir) proxiedWebDir = getProxiedWebDir(crabserver=self.crabserver, task=taskname, logFunction=self.logger.debug)