没有合适的资源?快使用搜索试试~ 我知道了~
sidekiq-custom-queue:Sidekiq插件,允许工作人员根据排队的消息定义自定义动态队列
共17个文件
rb:6个
md:2个
gemfile:1个
需积分: 9 0 下载量 48 浏览量
2021-04-30
14:57:28
上传
评论
收藏 10KB ZIP 举报
温馨提示
Sidekiq自定义队列 Sidekiq插件,允许工作人员根据排队的消息定义自定义/动态队列。 安装 将此行添加到您的应用程序的Gemfile中: gem 'sidekiq-custom-queue' 然后执行: $ bundle 或将其自己安装为: $ gem install sidekiq-custom-queue 用法 在您的工作程序类中定义一个custom_queue类方法,该方法可以接受单个参数。 此参数将包含作业消息,如。 定义如何使用整个消息或其中的一部分来创建自定义队列的名称: class WorkerWithCustomQueue include Sidekiq :: Worker def self . custom_queue ( msg ) " #{ msg [ 'args' ] [ 0 ] } _queue" end def pe
资源推荐
资源详情
资源评论
收起资源包目录
sidekiq-custom-queue-master.zip (17个子文件)
sidekiq-custom-queue-master
LICENSE.txt 1KB
lib
sidekiq
custom
queue.rb 31B
custom_queue.rb 431B
custom_queue
client_middleware.rb 291B
version.rb 68B
Gemfile 105B
spec
spec_helper.rb 242B
sidekiq
custom_queue_spec.rb 1KB
Rakefile 114B
.travis.yml 108B
README.md 3KB
.rspec 31B
CODE_OF_CONDUCT.md 1KB
.gitignore 675B
sidekiq-custom-queue.gemspec 2KB
bin
console 345B
setup 115B
共 17 条
- 1
资源评论
香港键师傅
- 粉丝: 27
- 资源: 4647
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功