Skip to content

Commit aa95e04

Browse files
authored
Merge pull request #241 from atsareg/fix-cloud-pilot-id
Define properly the pilot reference in the cloud case
2 parents f771e82 + a2b93d5 commit aa95e04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Pilot/pilotTools.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,10 @@ def getSubmitterInfo(ceName):
329329
flavour = "ARC"
330330
pilotReference = os.environ["GRID_GLOBAL_JOBURL"]
331331

332-
# VMDIRAC case
333-
if "VMDIRAC_VERSION" in os.environ:
334-
flavour = "VMDIRAC"
335-
pilotReference = "vm://" + ceName + "/" + os.environ["JOB_ID"]
332+
# Cloud case
333+
if "PILOT_UUID" in os.environ:
334+
flavour = "CLOUD"
335+
pilotReference = os.environ["PILOT_UUID"]
336336

337337
return flavour, pilotReference, {"Type": batchSystemType, "JobID": batchSystemJobID, "Parameters": batchSystemParameters}
338338

0 commit comments

Comments
 (0)