app/jobs/bulkrax/export_work_job.rb in bulkrax-8.2.2 vs app/jobs/bulkrax/export_work_job.rb in bulkrax-8.2.3
- old
+ new
@@ -24,10 +24,10 @@
ExporterRun.increment_counter(:processed_records, args[1])
ExporterRun.decrement_counter(:enqueued_records, args[1]) unless exporter_run.reload.enqueued_records <= 0
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)')
else
exporter_run.exporter.set_status_info('Complete')