Bulk Job Status Syncer
A built-in Apex class that polls Salesforce Bulk API and updates the corresponding Execution records as their asynchronous jobs complete.
Why It's Needed
When a #Batch or #Data Loader run uses the Bulk API, the actual record processing is offloaded to a separate Salesforce Bulk job. DSP submits the work and finishes its own run, but the Bulk job continues independently — its final status, counts, and errors aren't yet on the Execution record.
BulkJobStatusSyncer fills this gap by polling the Bulk API for job status and writing the results back to the Execution record, keeping its status and statistics accurate.
How to Use
Schedule BulkJobStatusSyncer from DSP Schedule management:
Set Apex Class Name to
BulkJobStatusSyncer.Choose a Frequency.
The more often it runs, the sooner completed Bulk jobs are reflected on their Execution records.
