rails hirefire-resource gem

 

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

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章