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

idle_timeout for task termination should be considered for use on Agents with an Open Source License

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • None
    • 1.10.7, 1.11, 1.12
    • None
    • None

    Description

      Current Situation

      1. Users can run any sequence of Shell Jobs in a job chain on an Agent with the Open Source license.
      2. When job types are used that include to load a Java Virtual Machine as e.g. Java Jobs, JavaScript Jobs, PowerShell Jobs, then the unloading of the Java Virtual Machine at the end of a task is delayed for 5s.
        • This is an optimization that is intended to re-use the same task if additional orders would arrive in short intervals.
        • However, this feature causes a task for your first job to be terminated with a delay and your next job in the job chain that requires a task start then hits the limit of parallel tasks.
        • The same problem occurs for Shell Jobs 1) that use a monitor script as such scripts are implemented in languages as in 2) that load a JVM.

      Test Cases

      • From the attached archive consider the job chains
        • shell_job_chain1
          • Two shell jobs are running successfully in sequence on an Agent.
          • Test case is successful
        • shell_monitor_job_chain1
          • Two shell jobs with scripted monitors (powershell) are running in sequence on an Agent. Both jobs use idle_timeout=0. The second job is not executed due to license restrictions.
          • test cails fails
        • powershell_job_chain1
          • One powershell job on an Agent, a shell job on a Master and another PowerShell job on an Agent are running in sequence. Both PowerShell jobs use idle_timeout=0.
          • Test case is successful
          • Test case fails if the shell job that runs on the Master is removed

      Attachments

        1. license_test.zip
          43 kB
        2. powershell_job_chain1-order.log
          4 kB
        3. shell_job_chain1-order.log
          4 kB
        4. shell_monitor_job_chain1-order.log
          4 kB

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: