chore: Add delay before running dataimport job (#8039)

- We have observed some failures for data import jobs in the cloud due to race conditions with job executions and active storage file uploading. This PR adds delays and retries to accommodate that.
This commit is contained in:
Sojan Jose
2023-10-03 22:18:57 -07:00
committed by GitHub
parent 336af1ac9a
commit 6a73953003
4 changed files with 27 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
class DataImportJob < ApplicationJob
queue_as :low
retry_on ActiveStorage::FileNotFoundError, wait: 1.minute, attempts: 3
def perform(data_import)
@data_import = data_import