id author title date pages extension mime words sentences flesch summary cache txt help-hirefire-io-6131 Job Queue - Ruby (on Rails) - HireFire Knowledge Base .html text/html 585 77 64 Job Queue Ruby (on Rails) HireFire Knowledge Base Integrating Ruby on Rails with HireFire Job Queue is quick and easy when using the hirefire-resource RubyGem. This library injects middleware into your stack, exposing an HTTP GET endpoint that HireFire will periodically request in order to get the latest information on your job queue(s). You'll need to setup a corresponding worker resource for HireFire. Create an initializer at app_root/config/initializers/hirefire_resource.rb and add the following code: HireFire::Macro::Sidekiq.queue The Sidekiq macro provided by hirefire-resource simply counts all the jobs in all of your queues and returns an integer representing that number of jobs. HireFire will then read this information in order to determine the current queue size of your worker dynos. HireFire::Macro::Sidekiq.queue(:default) HireFire::Macro::Sidekiq.queue(:urgent) Now that you've integrated hirefire-resource into your application and deployed it to Heroku, log in to HireFire and create two managers named worker and urgent_worker and configure them based on your auto-scaling requirements. ./cache/help-hirefire-io-6131.html ./txt/help-hirefire-io-6131.txt