Class: Wurk::Middleware::PoisonPill::Pill

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#countObject

Returns the value of attribute count

Returns:

  • (Object)

    the current value of count



36
37
38
# File 'lib/wurk/middleware/poison_pill.rb', line 36

def count
  @count
end

#jidObject

Returns the value of attribute jid

Returns:

  • (Object)

    the current value of jid



36
37
38
# File 'lib/wurk/middleware/poison_pill.rb', line 36

def jid
  @jid
end

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



36
37
38
# File 'lib/wurk/middleware/poison_pill.rb', line 36

def klass
  @klass
end

#queueObject

Returns the value of attribute queue

Returns:

  • (Object)

    the current value of queue



36
37
38
# File 'lib/wurk/middleware/poison_pill.rb', line 36

def queue
  @queue
end