Skip to content

Commit

Permalink
Merge pull request #1277 from ashitsalesforce/master
Browse files Browse the repository at this point in the history
calculate Bulk v1 processed rows correctly
  • Loading branch information
ashitsalesforce authored Sep 23, 2024
2 parents cc18354 + a9e4eb7 commit a8c7fb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private void updateJobStatus() {
// hack because jobInfo is not updated if an entire batch fails
private int getNumRecordsProcessedInJob() {
int numRecordsProcessedInJob = this.jobInfo.getNumberRecordsProcessed();
if (config.isBulkV2APIEnabled()) {
if (config.isBulkAPIEnabled() || config.isBulkV2APIEnabled()) {
// Bulk v2 counts all processed records in the total
numRecordsProcessedInJob -= this.jobInfo.getNumberRecordsFailed();
}
Expand Down

0 comments on commit a8c7fb4

Please sign in to comment.