Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Re: Is it possible to autoamte the cancellation of scheduled jobs

$
0
0

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.

 

HTH,

 

-Niranjan


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>