Changing Schedule on sys_trigger for "Cancel Expired Assessments"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 02:17 PM
We want to run this guy every day. Tried to change it right in sys_trigger and got mixed results. seemed to work in one instance but not another.
Do you guys know the preferred way to change a scheduled job that exists only in sys_trigger? I think what may be going on is that the current run just hasn't happened yet so the new duration hasn't taken over.
Not sure how to run a scheduled job straight out of the trigger table, there is not an "Execute Now"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 02:21 PM
Hi Robert,
You can use below code to run scheduled job with script.
//Execute a scheduled script job
var rec = new GlideRecord('sysauto_script');
rec.get('name', 'YOUR_JOB_NAME_HERE');
SncTriggerSynchronizer.executeNow(rec);
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 02:26 PM
The issue is that particular job does not show up in "Scheduled Jobs" it's some kind of background job that we don't seem to get to directly control as SNOW admins...
Running that script doesn't work either because it's not in the sysauto_script table. It's only in sys_trigger

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2017 02:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2019 04:31 AM
Did you ever resolve? I have the same questions:
Do you guys know the preferred way to change a scheduled job that exists only in sys_trigger?
Not sure how to run a scheduled job straight out of the trigger table, there is not an "Execute Now"