diff --git a/app/jobs/bulkrax/export_work_job.rb b/app/jobs/bulkrax/export_work_job.rb index 842a35c2..ec87aa93 100644 --- a/app/jobs/bulkrax/export_work_job.rb +++ b/app/jobs/bulkrax/export_work_job.rb @@ -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)')