简体   繁体   English

将sidekiq作业类型更改为ActiveJob子类后出现的问题

[英]Issue after changing sidekiq job type to ActiveJob subclass

I had a class that initially just included Sidekiq::Worker , during some refactoring I made a bonehead move and changed it to a ActiveJob subclass and removed the include statement for Sidekiq::Worker . 我有一个最初只包含Sidekiq::Worker的类, Sidekiq::Worker一些重构期间,我做了一个大动作,将其更改为ActiveJob子类,并删除了Sidekiq::Worker的include语句。 Now I get repeat exceptions about NoMethodError: undefined method 'job_id=' . 现在,我得到有关NoMethodError: undefined method 'job_id='重复异常NoMethodError: undefined method 'job_id=' Is there an easy way to clear out jobs that may be in redis that are causing this issue? 是否有一种简单的方法来清除可能导致此问题的Redis作业? I didn't think that it stored the entire job in redis but apparently it does. 我不认为它会将整个作业存储在Redis中,但显然可以。

redis-cli flushall将完全清除您的本地Redis。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM