Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-2078

Provide built-in variables for a job's timeout and grace period settings

    XMLWordPrintable

Details

    • Feature
    • Status: Released (View Workflow)
    • Medium
    • Resolution: Fixed
    • 2.0.0
    • 2.5.4, 2.6.1
    • JS7 Agent
    • None

    Description

      Feature

      • The JS7 Agent should provide the built-in variables
        • $js7Job.timeoutMillis
        • $js7Job.sigkillDelayMillis
      • The variables correspond to related job settings. They are provided similarly to existing variables such as $js7JobName, $js7Label etc.
      • When using such variables in assignments to arguments or environment variables then users should consider
        • to apply the syntax ${js7Job.timeoutMilis}, ${js7Job.sigkillDelayMillis} that is required due to the dot in the variable's name.
        • that both variables might not be assigned values.
          • Users can apply the following syntax that considers missing values using the ? operator:
               "env": {
                      "JOB_TIMEOUT": "\"${js7Job.timeoutMillis}?\""
                      "JOB_GRACE_TIMEOUT": "\"${js7Job.sigkillDelayMillis}?\""
                    }
            
          • When used for assignment with environment variables then no environment variable will be created for a variable with a missing value.

      Attachments

        Issue Links

          Activity

            People

              jz Joacim Zschimmer
              ap Andreas Püschel
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: