- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:31 AM - edited 08-06-2025 03:42 AM
Hello All ,
I try to abort execution of Scheduled Job when other scheduled Jobs (from a list ) are running. Script works in Background but there is no query to v_cluster_transaction table in Scheduled Job
my script :
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:41 AM
@Marcin Witoslaw verify a link: Solved: Script to get active transactions from all nodes t... - ServiceNow Community
it specifies and query v_cluster_transaction from Scheduled Job
if this response helps you, then mark helpful and accept as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:41 AM
@Marcin Witoslaw verify a link: Solved: Script to get active transactions from all nodes t... - ServiceNow Community
it specifies and query v_cluster_transaction from Scheduled Job
if this response helps you, then mark helpful and accept as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 03:58 AM
Hello @Nilesh Pol ,
does it works for Schedule Job on demand ? ( when Execute Now UI Action is clicked) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 04:21 AM
I have added the following script to the scheduled Job :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2025 04:36 AM
@Marcin Witoslaw As per the understanding, Script include checks whether a particulate scheduled job is run.
update your if condition is script include.
if(jobname == currentJobName){
result = true;
continue;
}
if this response helps you, then mark helpful and accept as a solution.