Automatically Killing a Runaway Job

Follow

Jobs that go into a Runaway Status (ones that have executed too long) can be handled automatically by adding a Runaway Element:

  1. Right-click Job/Folder and select Properties.
  2. Navigate to the Elements Tab and select Add.
  3. In the dialog window, expand the EventHandler menu and choose the Runaway Element.

An Elapsed Time can be entered with the value of Windows System Time, or the Runaway Elapsed Percentage of Completion can be selected. From here, an Action can be taken, such as Cancelling with any form of Completion Severity, or simply Sending a Notification to allow the Job to continue executing.

In the example below, the Job is configured to cancel with Error severity if the Job takes 5 hours, or 500% of its normal execution time.

Have more questions? Submit a request

Comments

  • Avatar
    Jared Stroebele

    The RunawayElapsedPercent cannot be blank, if left at 0 does that then only alert off the RunawayElapsed time?

  • Avatar
    Gennaro Piccolo

    Hello Jared, if it is left at 0 then it will only alert off the Runaway Elapsed, that is correct.

  • Avatar
    Aye Sone

    If a job is scheduled to run every 15 min, will this resubmit the job?

  • Avatar
    Gennaro Piccolo

    Hello Aye, this element is designed to notify or to notify and cancel a job if it runs longer than a certain length of time, or a certain percent of time longer than average.

    A resubmit or a repeat element should be used to run a job on a specific interval.