Skip to content

Instantly share code, notes, and snippets.

@samflores
Forked from anonymous/main.rb
Last active August 29, 2015 14:03
Show Gist options
  • Save samflores/50fbdcabee5877610524 to your computer and use it in GitHub Desktop.
Save samflores/50fbdcabee5877610524 to your computer and use it in GitHub Desktop.
require 'amazing_redis_queue'
require 'worker'
AmazingRedisQueue.subscribe 'nome_da_fila', MyWorker
AmazingRedisQueue.publish 'nome_da_fila', 'parametro'
class MyWorker
def perform(*args)
puts args.inspect
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment