The CreatorCon Call for Content is officially open! Get started here.

Running scheduled jobs one after another

shyamakm
Tera Contributor

Hi All,

We need to run a scheduled job after another. We are able to do the same in Scheduled data import using run after parent functionality.

Please help us on how to run one scheduled job after other.

 

Thanks in advance

Shyama

4 REPLIES 4

Tim Deniston
Mega Sage

At the end of your first scheduled job, you could query for the next scheduled job and use this code to run it. Just pass in a GlideRecord:

SncTriggerSynchronizer.executeNow([GlideRecord]);

martinschoenfel
Kilo Guru

what is the best way to wait for the end of the SncTriggerSynchronizer.executeNow([GlideRecord])?

I want to run several jobs in a row.

Many thanks in advance

Martin

sachin_namjoshi
Kilo Patron
Kilo Patron

Move your scheduled job scripts to script includes.
Then have one scheduled job that calls one script and then the other.

 

Regards,

Sachin

Sumanth16
Kilo Patron

you can select periodically option in schedule d job , you can calculate how much time each scheduled job is taking and add some buffer between scheduled jobs then you can run those jobs.

 

Thanks ,

Sumanth