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
14 15 16 |
# File 'lib/sidekiq/fetch.rb', line 14 def config @config end |
#job ⇒ Object
Returns the value of attribute job
14 15 16 |
# File 'lib/sidekiq/fetch.rb', line 14 def job @job end |
#queue ⇒ Object
Returns the value of attribute queue
14 15 16 |
# File 'lib/sidekiq/fetch.rb', line 14 def queue @queue end |
Instance Method Details
#acknowledge ⇒ Object
15 16 17 |
# File 'lib/sidekiq/fetch.rb', line 15 def acknowledge # nothing to do end |
#queue_name ⇒ Object
19 20 21 |
# File 'lib/sidekiq/fetch.rb', line 19 def queue_name queue.delete_prefix("queue:") end |
#requeue ⇒ Object
23 24 25 26 27 |
# File 'lib/sidekiq/fetch.rb', line 23 def requeue config.redis do |conn| conn.rpush(queue, job) end end |