Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The test chain run_infinitely: this chain implements a test job that runs infinitely and can be started in multiple instances.
    • One job run_infinitely is included that executes a number of ping commands to simulate a long running job. The job is configured to run in multiple instances if more than one order is active for the job chain.
    • One order run_infinitely is included that starts the run_infinitely job chain. This order can be started manually by using JOC. Additional orders can be added by use of the Add Order context menu item with JOC.
  • The kill chain kill_tasks_in_job_chain: this chain implements the killing of tasks for any job chains.
    • One job kill_tasks_in_job_chain is included that implements the JobScheduler <kill_task> XML command.
    • One order kill_tasks_in_job_chain is included that starts the kill_tasks_in_job_chain job chain. This order can be started manually by using JOC.
      • This order makes use of two possible parameters:
        • job_chains: This parameters accepts one or multiple job chain paths. 
          • Specify the full path including all folder names of the job chain that runs tasks that should be terminated.
          • Separate multiple job chain paths by use of a semicolon ";".
        • timeout: This parameter is available for Unix systems only and specifies a timeout in seconds. 
          • The job kill_tasks_in_job_chain will first send a SIGTERM signal to any tasks of the run_infinitely job. 
          • Should the run_infinitely job not be terminated after the timeout expires then a SIGKILL signal is sent to the tasks.

Usage

  • Sample Usage
    • Add two orders to Start the order run_infinitely for the job chain with the same name. Add an a additional order for the test chain run_infinitely, e e.g. by using JOC with the Add Order context menu item.
      • The job run_infinitely from the job chain with the same name should be executed in two tasks (visible from JOC by clicking the job).
    • Start the order kill_tasks from the kill_tasks_in_job_chain job chain.
      • The order will cause all tasks from the run_infinitely job chain to be terminated.
      • The order included with the above download archive specifies the path /issues/kill_tasks/run_infinitely for the job chain to be terminated. Modify this parameter to a different job chain path if your test job chain is located elsewhere.
  • Individual Usage
    • Use any job chain path with the job_chains parameter of the kill_tasks_from_job_chain order.
    • Specify a value for the timeout parameter to cause the tasks to be terminated to receive a SIGTERM signal first and a SIGKILL signal after timeout expiration. This functionality is available for Unix systems only.

...