Automic Workload Automation

 View Only
  • 1.  Workflow set to cancel at a specific time - active job within it is NOT cancelling

    Posted 17 days ago

    We have a situation where we are required to cancel a workflow entirely including all the jobs within it if a specific time is reached, regardless of if jobs are running.    We have a Max runtime set on the workflow and to take the action of Cancel or quit this task if the runtime is exceeded, however this is not killing the job that is running.   Are there any suggestions on how to address this type of scenario?



  • 2.  RE: Workflow set to cancel at a specific time - active job within it is NOT cancelling

    Posted 17 days ago

    So the 'Cancel or quit' option is literally doing a cancel, not a cancel recursive.  That's unfortunate...

    I haven't tested this, but I think it would work...clunky as it is...  Instead of selecting the cancel/quit option, do the 'execute another task' option.  Then build a task (script) that identifies the RunID of the object that invoked it (i.e., your workflow with this MRT setting) -- I believe &$ACTIVATOR# should work --  and then does a :CANCEL_UC_OBJECT(&RunID#,ALL).  That should do the cancel-recursive you're looking for.




  • 3.  RE: Workflow set to cancel at a specific time - active job within it is NOT cancelling

    Posted 16 days ago

    Correct, the option provided to cancel the workflow using the runtime setting does NOT cancel recursive.  I appreciate your suggestion Daryl and will give it a try.