Skip to content

Commit

Permalink
feat: define properly the pilot reference in the cloud case, drop VMD…
Browse files Browse the repository at this point in the history
…IRAC case
  • Loading branch information
atsareg committed Jul 18, 2024
1 parent f771e82 commit a2b93d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Pilot/pilotTools.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ def getSubmitterInfo(ceName):
flavour = "ARC"
pilotReference = os.environ["GRID_GLOBAL_JOBURL"]

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

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

Expand Down

0 comments on commit a2b93d5

Please sign in to comment.