Class: CanvasSync::JobUniqueness::Compat::Sidekiq::SidekiqLockContext
- Inherits:
-
LockContext
- Object
- LockContext
- CanvasSync::JobUniqueness::Compat::Sidekiq::SidekiqLockContext
- Defined in:
- lib/canvas_sync/job_uniqueness/compat/sidekiq.rb
Instance Attribute Summary
Attributes inherited from LockContext
Instance Method Summary collapse
Methods inherited from LockContext
#base_key, #cache_data, #config, #debug_data, from_serialized, #handle_lifecycle!, #initialize, #job_class, #job_id, #job_queue, #job_score, #lock_strategy, #serialize
Constructor Details
This class inherits a constructor from CanvasSync::JobUniqueness::LockContext
Instance Method Details
#job_scheduled_at ⇒ Object
21 22 23 |
# File 'lib/canvas_sync/job_uniqueness/compat/sidekiq.rb', line 21 def job_scheduled_at @job_instance&.[]("at") end |
#reenqueue(schedule_in:) ⇒ Object
25 26 27 |
# File 'lib/canvas_sync/job_uniqueness/compat/sidekiq.rb', line 25 def reenqueue(schedule_in:) job_class.set(queue: job_queue.to_sym).perform_in(schedule_in, *@job_instance["args"]) end |