Skip to main content
Admin Had 님이 #Integration에 질문했습니다
Hi,

In case a batch job gets interrupted in the middle of the process (for example due a cut of electricity in the external integration system) will salesforce roll back the transaction and the batch is retriggered again?  

Does SF support transactions?

Thank you in advance,

Brahim

 
답변 1개
  1. 2021년 10월 16일 오전 1:39
    Hello,

    The batch execution will be rolled back and restarted.  From the documentation (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm):

     

    Batch jobs queued before a Salesforce service maintenance downtime remain in the queue. After service downtime ends and when system resources become available, the queued batch jobs are executed.

    If a batch job was running when downtime occurred, the batch execution is rolled back and restarted after the service comes back up.
0/9000