I have a Sidekiq worker called class Consolidation::AnalyticsWorker < BaseWorker
I want to perform it manually for testing How can I achieve this?
Tried in rails console:
test = Consolidation::AnalyticsWorker
perform(test)
您必须执行类似Consolidation::AnalyticsWorker.new.perform(args)
,其中args是Consolidation::AnalyticsWorker#perform
采用的参数。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.