Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Cantero committed Dec 5, 2016
1 parent 5a12f3f commit 3b7ab0f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/default_worker.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
class DefaultWorker
include Shoryuken::Worker

shoryuken_options queue: 'test.fifo', auto_delete: true
shoryuken_options queue: 'default', auto_delete: true

def perform(sqs_msg, body)
Shoryuken.logger.info("Received message: '#{body}'")

raise body
end
end

10.times { |i| DefaultWorker.perform_async("#{rand(1000)}-#{i}}") }

0 comments on commit 3b7ab0f

Please sign in to comment.