Skip to content

Commit

Permalink
fix race condition for statuses on export
Browse files Browse the repository at this point in the history
  • Loading branch information
sephirothkod committed Dec 20, 2024
1 parent 44b471c commit 2f6a53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/bulkrax/export_work_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def perform(*args)
end
# rubocop:enable Rails/SkipsModelValidations
end
return entry if exporter_run.enqueued_records.positive?
return entry if exporter_run.reload.enqueued_records.positive?

if exporter_run.failed_records.positive?
exporter_run.exporter.set_status_info('Complete (with failures)')
Expand Down

0 comments on commit 2f6a53a

Please sign in to comment.