Replies: 1 comment 3 replies
-
|
Please read the changelog to learn how to disable the warnings. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi - I noticed that the latest version of Sidekiq now gives a warning when passing symbols as arguments to the async job, since they aren't technically a JSON primitive (as noted in https://github.com/mperham/sidekiq/wiki/Best-Practices).
However, I'm wondering if we can make an exception for symbols, since in many Ruby/Rails apps they are used interchangeably with strings, and I believe the general intent with symbols is that developers expect them to be natively converted to strings?
Perhaps an initializer setting can be used to allow symbols to still be passed as arguments without raising warnings/errors, and developers would just need to be responsible for knowing they will arrive as strings (not symbols) when the job is invoked? I 100% agree that complex objects should raise an error and never be passed, but I think symbols do not fall into this bucket and should be allowed if developers understand the behavior.
WDYT?
Beta Was this translation helpful? Give feedback.
All reactions