Skip to content

Instantly share code, notes, and snippets.

@kamal-github
Created June 6, 2016 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamal-github/ffda61310f99fc2e5d650d21ffc54d6a to your computer and use it in GitHub Desktop.
Save kamal-github/ffda61310f99fc2e5d650d21ffc54d6a to your computer and use it in GitHub Desktop.
require 'sneakers'
Sneakers.configure heartbeat: 5,
amqp: ENV['RABBITMQ_BIGWIG_URL'] || 'amqp://guest:guest@localhost:5672/order',
workers: 1,
timeout_job_after: 60,
threads: 5,
prefetch: 5,
after_fork: Proc.new { ActiveRecord::Base.establish_connection },
durable: true
Sneakers.logger.level = Logger::INFO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment