Questions tagged [abortjob]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

How to abort a scheduled job that is 'blocked'

We have an Apex class that automatically schedule a Job to be run 10 min after the request is done. In some cases, this job doesn't run at all and since we cannot schedule another job (business ...
Juan Jardim's user avatar
0 votes
1 answer
4k views

Deleting a scheduled Apex job

I have a scheduled job name with which I can query the same by using this: SELECT Id, CronExpression, OwnerId, State, TimesTriggered, CronJobDetail.Name, CronJobDetail.Id, CronJobDetail....
SFDC Dev 27's user avatar
1 vote
2 answers
230 views

Q&A: Are there problems using System.abortJob() in Test Methods to Avoid Depth Max Governor Limit

Been posting here a bit around the ideas of Queueable Chains and test Methods. All of you have been very helpful. I had one last piece I ran into during deployment that I had to fix. The code snippet ...
thinker's user avatar
  • 1,392
0 votes
1 answer
149 views

Job does not exist or is already aborted when I am trying to kill a job id

private void reschedule(CronTrigger cronTrigger, ISchedulable schedulable, MySchedulableContext context) { System.abortJob(cronTrigger.Id); String newTrigger = schedulable....
kratos's user avatar
  • 521
0 votes
1 answer
1k views

How can I abort all of bulk job at a time

I have a lot of jobs open in Setup -> Bulk Data Load Jobs. How can I abort them all of them at a time.
Arijit Nag Chowdhury's user avatar
0 votes
1 answer
137 views

System.UnexpectedException: Metadata.Operations.enqueueDeployment: Salesforce System Error: 1393463776-817 (799279837) (799279837)

I have some code which updates a Custom Metadata setting, something like this: public void clearValue() { Metadata.CustomMetadata customMetadata = createCustomMetadata(); customMetadata.values....
Robs's user avatar
  • 9,027