cancel
Showing results for 
Search instead for 
Did you mean: 

Job Scheduling Request

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

asif_muhammad
Explorer
0 Kudos

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.

Former Member
0 Kudos

Dear Asif,

Thank you very much for the reply, additionally i need one more information, if i want to run the job B after completion of job A, and the two jobs must not run in parallel then how can i schedule it. please suggest.

thanks and regards

Sasi

asif_muhammad
Explorer
0 Kudos

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.

Former Member
0 Kudos

Thank you very much Asif for your quick help. i have scheduled the jobs as suggested.

Answers (0)