https://help.hirefire.io/article/54-job-queue-ruby-rack
https://github.com/hirefire/hirefire-resource
This library provides middleware which you can add to your stack, exposing an HTTP GET endpoint that HireFire will periodically request in order to get the latest information on your job queue(s).
gem 'hirefire-resource', '~> 0.3.6'
新增config/initializers/hidefire.rb
# frozen_string_literal: true
HireFire::Resource.configure do |config|
config.dyno("auto_invest_#{Rails.env}_worker".to_sym) do
HireFire::Macro::Sidekiq.queue("auto_invest_#{Rails.env}".to_sym)
end
end