Created
February 3, 2017 20:41
-
-
Save jongpie/6d3dbbca110e2b95b4df779103b20c5a to your computer and use it in GitHub Desktop.
Abort all scheduled jobs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(CronTrigger cronJob : [SELECT Id, CronExpression,CronJobDetailId, CronJobDetail.Name, CronJobDetail.JobType FROM CronTrigger]) { | |
System.abortJob(cronJob.Id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment