Class: SidekiqRobustJob::EnqueueConflictResolutionStrategy::Replace
- Defined in:
- lib/sidekiq_robust_job/enqueue_conflict_resolution_strategy/replace.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from SidekiqRobustJob::EnqueueConflictResolutionStrategy::Base
Instance Method Details
#execute(job) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/sidekiq_robust_job/enqueue_conflict_resolution_strategy/replace.rb', line 4 def execute(job) jobs_repository.drop_not_started_jobs_by_digest( dropped_by_job_id: job.id, digest: job.digest, exclude_id: job.id ) end |