Module: Qyu::Workers::Concerns::FailureQueue

Included in:
Base
Defined in:
lib/qyu/workers/concerns/failure_queue.rb

Overview

Qyu::Workers::Concerns::FailureQueue

Adds ability to workers enqueue failed task to another queue

Qyu::Worker.new do

failure_queue true
# or
failure_queue false

end

Instance Method Summary collapse

Instance Method Details

#failure_queue(fq) ⇒ Object

Configures failure queue

failure_queue false # default
failure_queue true

24
25
26
# File 'lib/qyu/workers/concerns/failure_queue.rb', line 24

def failure_queue(fq)
  @failure_queue = fq
end