You need to sign in to do that
Don't have an account?
Antony Renald
How to stop background jobs?
We need to stop Job named "Duplicate Error Log Sweeper" in background jobs, any suggestions will be much appreciated.
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
I tried contacting them and was informed that developer support is available only for premier and partner customers.
Anyother way to stop this?
ScheduleApex class:-
------------------------------
to stop execute of a job that was schedule use the System.abortJob() method with ID returned by the getTriggerID method
System.abortJob(sc.getTriggerID());
BatchApex class:-
---------------------------
To monitor or stop the execution of the batch Apex job, go to Setup --> Monitoring --> Apex Jobs. For more information, see “Monitoring the Apex Job Queue” in the Salesforce online help.
https://www.salesforce.com/developer/docs/api/Content/sforce_api_objects_crontrigger.htm
eg:
you need to add some criteria to distinguish the job you want to abort , such as ownerid or starttime
for(CronTrigger ct : [SELECT Id, CronJobDetail.Name, CronJobDetail.JobType FROM CronTrigger WHERE CronJobDetail.Name like 'Work Order%']){
// abort the job, try/catch because the job might not exist
try{
system.abortJob(ct.id);
} catch (exception e) {}
}
but I found this for the next users who want to stop an interrupted flow interview:
there's a setup called:
"Paused Flow Interview" in Process Automation
that's all, you should have known, because it's not written anywhere.