on 12-08-2014 12:43 PM
Dear All,
I am new to CPS and i got a request fom end user to run two jobs as follow:
Job A should start at 10:00AM , and job B should strat at 11:30 AM, if due to any reason job is delayed then job B should not run in parallel to Job A, meaning job A and B should not run in parallel, how can i fulfill this requirement, any help would be much appreciated.
Thank you
Sasi.
Dear Sasi,
Using locking mechanism you can achive this easily, define one lock (Definitions-->Locks -->R.click new job lock), edit job A go to Locks tab, add defined lock, and similarly edit job B and add the same lock, attached screen shot for your reference. nad schedule the job A and B as per given frequency. due to locking mechanism two jobs will not run in parallel.
hope this is helpful, feel free to revert if you have any doubts.
KR
Muhammad Asif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sasi,
There are many ways to schedule such requests, the easiest way i feel is call the job chain B as last step of Job chain A, in this case job B will start after completion of all steps in job A and as the chain B is child of job A, ideally two jobs will not run in parallel, to avoid any chances of parallel run add locks as suggested above.
and the other method is create one event XYZ and add this as raise event in Job A, and as wait event in Job B, here once Job A finishes it will raise event XYZ which is wait event for Job B so the job B will trigger once job A finishes. add locks in Job A and Job B.
KR
Muhammad Asif.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.