diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-10-02 16:20:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 16:20:04 +0200 |
commit | 1e2d4975cfcc064b3cf40760b2bb66b3a26e2a40 (patch) | |
tree | 1a92ef5e363ecf940fcfa8e462f36d6d212cf493 | |
parent | ee866ec0e008c3ea0b98093202f1866b7784499d (diff) |
Fix import progress not updating on certain failures (#27247)
-rw-r--r-- | app/workers/import/row_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/import/row_worker.rb b/app/workers/import/row_worker.rb index 09dd6ce7361..c86900e6adc 100644 --- a/app/workers/import/row_worker.rb +++ b/app/workers/import/row_worker.rb @@ -8,7 +8,7 @@ class Import::RowWorker sidekiq_retries_exhausted do |msg, _exception| ActiveRecord::Base.connection_pool.with_connection do # Increment the total number of processed items, and bump the state of the import if needed - bulk_import_id = BulkImportRow.where(id: msg['args'][0]).pick(:id) + bulk_import_id = BulkImportRow.where(id: msg['args'][0]).pick(:bulk_import_id) BulkImport.progress!(bulk_import_id) unless bulk_import_id.nil? end end |