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

Inherits:
Struct
  • Object
show all
Defined in:
lib/wurk/fetcher/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

#count ⇒ Object

Returns the value of attribute count

Returns:

  • (Object) —

    the current value of count



47
48
49
# File 'lib/wurk/fetcher/poison_pill.rb', line 47

def count
  @count
end

#jid ⇒ Object

Returns the value of attribute jid

Returns:

  • (Object) —

    the current value of jid



47
48
49
# File 'lib/wurk/fetcher/poison_pill.rb', line 47

def jid
  @jid
end

#klass ⇒ Object

Returns the value of attribute klass

Returns:

  • (Object) —

    the current value of klass



47
48
49
# File 'lib/wurk/fetcher/poison_pill.rb', line 47

def klass
  @klass
end

#queue ⇒ Object

Returns the value of attribute queue

Returns:

  • (Object) —

    the current value of queue



47
48
49
# File 'lib/wurk/fetcher/poison_pill.rb', line 47

def queue
  @queue
end