Skip to Content
author's profile photo Former Member
Former Member

Is it possible to autoamte the cancellation of scheduled jobs

I have a scenario in which I need to cancel the 5 instances of a scheduled job chain. So I need to automate this .For eg after completion of job A Job B should run and cancel five scheduled instances of job D. How can I automate this.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 15, 2015 at 03:56 AM

    Hi Manisha,

    Could you please be more specific on the requirement? My understanding is, you need to automate a job which should cancel five schedule instances of job.

    Please clarify on the below:

    Instances are nothing but the same job replicas at different timings. So you want five instances of a job or five different job instances?

    I am not sure of reason for cancelling the schedule instances through automation (by another job). Because this can be directly achieved by just cancelling the schedule or restricting the schedule to required timings using time windows..

    However, if it is the requirement you are looking, I believed this can be done through Event configuration on the both jobs which to be triggered to cancel other jobs. Having said, along with event configuration you need to make the expression of the jobs that to be cancelled as "false".

    So, whenever the source job ex.., Job A triggers and completes it will raise a event which will trigger the instances (associated with wait events) will ended up in "Skipped/Disabled" (but not cancelled) status.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.