Class: Sidekiq::BasicFetch::UnitOfWork
- Inherits:
-
Struct
- Object
- Struct
- Sidekiq::BasicFetch::UnitOfWork
- Defined in:
- lib/sidekiq/fetch.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#job ⇒ Object
Returns the value of attribute job.
-
#queue ⇒ Object
Returns the value of attribute queue.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
15 16 17 |
# File 'lib/sidekiq/fetch.rb', line 15 def config @config end |
#job ⇒ Object
Returns the value of attribute job
15 16 17 |
# File 'lib/sidekiq/fetch.rb', line 15 def job @job end |
#queue ⇒ Object
Returns the value of attribute queue
15 16 17 |
# File 'lib/sidekiq/fetch.rb', line 15 def queue @queue end |
Instance Method Details
#acknowledge ⇒ Object
16 17 18 |
# File 'lib/sidekiq/fetch.rb', line 16 def acknowledge # nothing to do end |
#queue_name ⇒ Object
20 21 22 |
# File 'lib/sidekiq/fetch.rb', line 20 def queue_name queue.delete_prefix("queue:") end |
#requeue ⇒ Object
24 25 26 27 28 |
# File 'lib/sidekiq/fetch.rb', line 24 def requeue config.redis do |conn| conn.rpush(queue, job) end end |