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
Client-side middleware runs before the pushing of the job to Redis and allows you to modify/stop the job before it gets pushed. Client middleware may receive the class argument as a Class object or a String containing the name of the class.
I'll try and push a quick fix for this :) Looks like the gem should check whether worker argument is a string and constantize the class from it if it is a string.
The text was updated successfully, but these errors were encountered:
I ran into more problems after fixing this. See stacktrace:
NoMethodError: undefined method `reschedule' for nil:NilClass
from sidekiq/debounce.rb:43:in `reschedule'
from sidekiq/debounce.rb:17:in `block in call'
conn.get(debounce_key) seems to return a hash hash-turned-into-string and reschedule cannot resolve use that as the jid:
Ran into a bug:
From Sidekiq documentation (https://github.com/mperham/sidekiq/wiki/Middleware):
I'll try and push a quick fix for this :) Looks like the gem should check whether
worker
argument is a string and constantize the class from it if it is a string.The text was updated successfully, but these errors were encountered: