Exception message
1
2
3
for (AsyncApexJob job :[SELECT Id FROM AsyncApexJob where Status in ('Holding', 'Processing')] ) {
System.abortJob(job.Id);
}
1
2
3
for (AsyncApexJob job :[SELECT Id FROM AsyncApexJob where Status in ('Holding', 'Processing')] ) {
System.abortJob(job.Id);
}