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
I'm running into a problem where Sidekiq::CurrentAttributes overwrites existing attributes when triggering a retry from Sidekiq UI. There are a few preconditions to trigger this.
That leads to the cattr-hash being overwritten with the user id of my admin user when clicking "Retry" in the admin interface. The reason for this is c92a521, which fixed #5090. Both issues could be solved by doing nothing if a cattr-hash already exists, eg. just guarding with unless job.key?("cattr").
Maybe there's a different story why you decided to merge the hashes instead, but this lead to some quite surprising results on our end.
The text was updated successfully, but these errors were encountered:
I'm running into a problem where
Sidekiq::CurrentAttributes
overwrites existing attributes when triggering a retry from Sidekiq UI. There are a few preconditions to trigger this.Current
is set in a warden callback, eg:That leads to the
cattr
-hash being overwritten with the user id of my admin user when clicking "Retry" in the admin interface. The reason for this is c92a521, which fixed #5090. Both issues could be solved by doing nothing if acattr
-hash already exists, eg. just guarding withunless job.key?("cattr")
.Maybe there's a different story why you decided to merge the hashes instead, but this lead to some quite surprising results on our end.
The text was updated successfully, but these errors were encountered: