Skip to content

Commit

Permalink
Merge pull request #159 from aldbr/master_arcpilotref
Browse files Browse the repository at this point in the history
fix: correcting ARC pilot references
  • Loading branch information
fstagni authored Jun 16, 2022
2 parents 9bdccd4 + 32ac826 commit fd7a6f5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Pilot/pilotCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,10 +797,16 @@ def __setFlavour(self):
)

# ARC case
# JOBID does not provide the full url in recent versions of ARC
# JOBURL has been introduced recently and should be preferred when present
if "GRID_GLOBAL_JOBID" in os.environ:
self.pp.flavour = "ARC"
pilotRef = os.environ["GRID_GLOBAL_JOBID"]

if "GRID_GLOBAL_JOBURL" in os.environ:
self.pp.flavour = "ARC"
pilotRef = os.environ["GRID_GLOBAL_JOBURL"]

# # DIRAC specific

# VMDIRAC case
Expand Down

0 comments on commit fd7a6f5

Please sign in to comment.