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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容