Skip to content

Commit

Permalink
Merge pull request #241 from atsareg/fix-cloud-pilot-id
Browse files Browse the repository at this point in the history
Define properly the pilot reference in the cloud case
  • Loading branch information
fstagni authored Jul 31, 2024
2 parents f771e82 + a2b93d5 commit aa95e04
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 aa95e04

Please sign in to comment.