Class: Wurk::Middleware::PoisonPill::Pill
- Inherits:
-
Struct
- Object
- Struct
- Wurk::Middleware::PoisonPill::Pill
- Defined in:
- lib/wurk/middleware/poison_pill.rb
Overview
The ‘pill` handed to a Pro `super_fetch! { |jobstr, pill| }` recovery callback on the kill path. Responds to .jid/.klass/.count/.queue so a `pill.jid`-style Pro initializer drops in. `.count` shadows Struct#count by design — Pro’s API names it that. Spec: sidekiq-pro.md §3.1.
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#jid ⇒ Object
Returns the value of attribute jid.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#queue ⇒ Object
Returns the value of attribute queue.
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count
36 37 38 |
# File 'lib/wurk/middleware/poison_pill.rb', line 36 def count @count end |
#jid ⇒ Object
Returns the value of attribute jid
36 37 38 |
# File 'lib/wurk/middleware/poison_pill.rb', line 36 def jid @jid end |
#klass ⇒ Object
Returns the value of attribute klass
36 37 38 |
# File 'lib/wurk/middleware/poison_pill.rb', line 36 def klass @klass end |
#queue ⇒ Object
Returns the value of attribute queue
36 37 38 |
# File 'lib/wurk/middleware/poison_pill.rb', line 36 def queue @queue end |