Storage: ignore jobs for now-deleted targets
This commit is contained in:
@@ -2,6 +2,8 @@ class Storage::MaterializeJob < ApplicationJob
|
||||
queue_as :backend
|
||||
limits_concurrency to: 1, key: ->(owner) { owner }
|
||||
|
||||
discard_on ActiveJob::DeserializationError
|
||||
|
||||
def perform(owner)
|
||||
owner.materialize_storage
|
||||
end
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
class Storage::ReconcileJob < ApplicationJob
|
||||
queue_as :backend
|
||||
|
||||
discard_on ActiveJob::DeserializationError
|
||||
|
||||
def perform(owner)
|
||||
owner.reconcile_storage
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user