Canceling Apex Batch Jobs
1. Go to Setup > Monitor > Jobs > Scheduled Jobs > Delete from here
OR
2. Run the following query to find the scheduled or future Apex job id to delete:
SELECT ApexClassId,CompletedDate,CreatedById,CreatedDate,ExtendedStatus,Id,JobItemsProcessed,JobType,LastProcessed,LastProcessedOffset,MethodName,NumberOfErrors,ParentJobId,Status,TotalJobItems FROM AsyncApexJob where status = 'queued'
Pass the job Id here
System.abortJob('JobID');
Refrence(s): https://help.salesforce.com/
Comments
Post a Comment