Running scheduled jobs one after another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018 01:15 AM
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
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018 11:44 AM
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]);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2018 12:59 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2018 02:27 PM
Move your scheduled job scripts to script includes.
Then have one scheduled job that calls one script and then the other.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2018 06:57 PM
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