examples/default_worker.rb in shoryuken-2.0.11 vs examples/default_worker.rb in shoryuken-2.1.0
- old
+ new
@@ -2,19 +2,8 @@
include Shoryuken::Worker
shoryuken_options queue: 'default', auto_delete: true
def perform(sqs_msg, body)
- puts "DefaultWorker: '#{body}'"
- end
-end
-
-# multiple workers for the same queue
-class DefaultWorker2
- include Shoryuken::Worker
-
- shoryuken_options queue: 'default', auto_delete: true
-
- def perform(sqs_msg, body)
- puts "DefaultWorker2: '#{body}'"
+ Shoryuken.logger.info("Received message: '#{body}'")
end
end