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

 

posted @ 2019-10-15 09:45  冰凌花花~  阅读(122)  评论(0编辑  收藏  举报