Skip to content

Commit

Permalink
Pass header to Minion job
Browse files Browse the repository at this point in the history
  • Loading branch information
spiegela committed Aug 21, 2011
1 parent 0323938 commit 6c883a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/minion/handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def subscribe
AMQP::Channel.new.queue(queue, durable: true, auto_delete: false).subscribe(ack: true) do |h, m|
return if AMQP.closing?
begin
Minion.info("Received: #{queue}:#{m}")
block.call(decode(m))
Minion.info("Received: #{queue}:#{m}, #{h}")
block.call(decode(m), h)
rescue Object => e
Minion.alert(e)
end
Expand Down

0 comments on commit 6c883a0

Please sign in to comment.