Open andrewroth opened 2 years ago
@andrewroth For now I'd probably do what the error says and remove Sidekiq.strict_args!
from any initializer. When someone has a chance we can probably figure out what needs to happen to make it work without warnings.
Sorry, I'd pasted the code with strict_args! added by me in my local dev codebase.
Without it, I get:
2022-02-09T20:32:37.480Z pid=66043 tid=1ka3 WARN: Job arguments to Person do not serialize to JSON safely. This will raise an error in
Sidekiq 7.0. See https://github.com/mperham/sidekiq/wiki/Best-Practices or raise an error today
by calling `Sidekiq.strict_args!` during Sidekiq initialization.
And this causes hundreds of such messages on tests because it happens on every person saved to the test db.
Yeah that sounds right. It's been happening on at least MPDX and SMT. If you want to look into fixing it, feel free! Otherwise it's on my todo list.
Ah ok, fair enough. Thanks for the confirmation
@knutsenm @jbirdjavi @dbenton9 @twinge @Omicron7
This morning, working on OneApp, I got:
Upgrading to 6.4.0, I get:
On any Person test. I trade it to
CruLib::GlobalRegistryMasterPersonMethods
. We're usinggem "cru_lib", github: "CruGlobal/cru_lib", tag: "v0.1.1"
. The same warning appears on any Person save.I suspect this will be an issue for many of the rails apps.
Has anyone come across this before, and if so is there a fix or workaround, or is it worth having me take some time to try to update cru_lib to avoid the warning?