Skip to content

Instantly share code, notes, and snippets.

Created July 3, 2014 13:15
Show Gist options
  • Save anonymous/fcffe2521b748544c73e to your computer and use it in GitHub Desktop.
Save anonymous/fcffe2521b748544c73e to your computer and use it in GitHub Desktop.
require 'amazing_redis_queue'
AmazingRedisQueue.publish 'nome_da_fila', 'parametro'
class MyWorker
def perform(*args)
puts args.inspect
end
end
AmazingRedisQueue.subscribe 'nome_da_fila', MyWorker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment