Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-867

Add CONDOR_JOBID environment variable to all jobs


    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major Major
    • master, 4.5.0
    • Affects Version/s: master
    • Component/s: Pegasus Planner
    • None

      As part of PM-866, we need to collect the Condor job ID in the invocation record. Unfortunately, it looks like Condor does not provide this information as an environment variable by default. It can be read from the job classad, but sometimes the job classad is not available (e.g. Condor-G jobs).

      A better solution would be to modify the environment of all the jobs so that they contain the job ID. That can be done like this:

      environment = CONDOR_JOBID=$(cluster).$(process)

      That environment variable would need to be added to all condor submit scripts.

      I also considered adding it as an argument to kickstart, but then we would have a backwards-compatibility problem for old versions of kickstart that do not support the command-line flag.

            vahi Karan Vahi
            gideon Gideon Juve (Inactive)
            2 Start watching this issue