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

Add CONDOR_JOBID environment variable to all jobs

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • master
    • master, 4.5.0
    • Pegasus Planner
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: