You need to sign in to do that
Don't have an account?
Arthur Almeida 12
Batch Apex: class executed multiple times at once?
I have a batch apex class, and this class makes a SELECT with a limit of 1000.
after that, this class creates one campaign using insert, and processes others things, whatever.
the question is when I execute my class, it creates five campaigns in the same hour... how is this possible?
my class creates only one campaign.
the batch apex is executed multiple times at once when the volumetry of data is big?
after that, this class creates one campaign using insert, and processes others things, whatever.
the question is when I execute my class, it creates five campaigns in the same hour... how is this possible?
my class creates only one campaign.
the batch apex is executed multiple times at once when the volumetry of data is big?
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
https://salesforce.stackexchange.com/questions/378869/batch-apex-class-executed-multiple-times-at-once/378870#378870
All Answers
Debug logs should narrow down the scenerio why batch apex is running more than once. Also check below mentioned check points.
https://salesforce.stackexchange.com/questions/216432/guarantee-only-a-single-asynchronous-job-runs-at-a-time/216472#216472
Thanks,
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
https://salesforce.stackexchange.com/questions/378869/batch-apex-class-executed-multiple-times-at-once/378870#378870