fix(export/job): race condition when export was already generated
This commit is contained in:
parent
4b480de9b7
commit
964f3829c6
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@ class ExportJob < ApplicationJob
|
|||
discard_on ActiveRecord::RecordNotFound
|
||||
|
||||
def perform(export)
|
||||
return if export.generated?
|
||||
|
||||
export.compute_with_safe_stale_for_purge do
|
||||
export.compute
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue