You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# config/delayed_job_master.rb# Error configurationadd_workerdo |worker|
worker.queues# or without above code
...
end
...
# Working configurationadd_workerdo |worker|
worker.queues[]end
...
To set worker's queues as default, the all available queues, the configurations worker.queues (nil) or not declare anything are not working with followed error message:
NoMethodError: undefined method `any?' for nil:NilClass at /mnt/crema-bg-rails/shared/bundle/ruby/2.7.0/gems/delayed_job_master-2.0.0/lib/delayed/master/monitoring.rb: 32
Set it as an empty array, it works(worker.queues []). It seems like a bug. (If nil is respond to #any? and it returns true?)
To set worker's queues as default, the all available queues, the configurations
worker.queues (nil)
or not declare anything are not working with followed error message:Set it as an empty array, it works(
worker.queues []
). It seems like a bug. (If nil is respond to#any?
and it returnstrue
?)IMO, the reason is from that configuration methods are defined both reader and writer with the same method name:
https://github.com/kanety/delayed_job_master/blob/master/lib/delayed/master/config.rb#L83-L91
How about separate them? In
#queues
and#queues=
?The text was updated successfully, but these errors were encountered: