rails hirefire-resource gem

 

 

https://help.hirefire.io/article/54-job-queue-ruby-rackgit

https://github.com/hirefire/hirefire-resourcegithub

 

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).ruby

gem 'hirefire-resource', '~> 0.3.6'

 

新增 config/initializers/hidefire.rbapp

# 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
相关文章
相关标签/搜索