Created
September 17, 2021 04:37
-
-
Save victorabraham/45f02d645a09a5f94ec158632daf68a4 to your computer and use it in GitHub Desktop.
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 cTrigger : [SELECT Id, CronJobDetail.Name FROM CronTrigger WHERE CronJobDetail.Name like 'TrackerJob%']){ | |
//Try catch to ignore any exceptions to abort jobs | |
try{ | |
system.abortJob(cTrigger.Id); | |
} | |
catch (exception e) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment