fix(image_processor): a blob can be deleted at any time while processing
This commit is contained in:
parent
a4bd2aac0e
commit
f88de46d8d
1 changed files with 1 additions and 0 deletions
|
@ -10,6 +10,7 @@ class ImageProcessorJob < ApplicationJob
|
|||
discard_on ActiveRecord::RecordNotFound
|
||||
# If the file is deleted during the scan, ignore the error
|
||||
discard_on ActiveStorage::FileNotFoundError
|
||||
discard_on ActiveRecord::InvalidForeignKey
|
||||
# If the file is not analyzed or scanned for viruses yet, retry later
|
||||
# (to avoid modifying the file while it is being scanned).
|
||||
retry_on FileNotScannedYetError, wait: :exponentially_longer, attempts: 10
|
||||
|
|
Loading…
Reference in a new issue