You need to sign in to do that
Don't have an account?
arsaniketsharma
disabling scheduled apex jobs
I want to disable the scheduled apex job, Is there any command in lightning to disable the scheduled job and not aborting the job
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
I don't think salesforce has the feature to pause or deactivate a scheduled job temporarily. Deleting and recreating a job everytime for a minor change is quite painful. However, if you want to stop the job, use the following code in Anonymous window
for (CronTrigger job : [SELECT Id FROM CronTrigger]) {
system.abortJob(job.Id);
}
Regards
Pankaj Shakya
But the thing is that i am trying to disable and reEnable the scheduled job, I used abortJob() but it is not the thing what i needed.