Closed adamchainz closed 3 months ago
I completely agree. Prior to #3, there was no serialization done on arguments, which diverts from the spec. As part of #3, arguments are serialized (and normalized) to ensure the values of args
and kwargs
are consistent between backends.
Nicely done, thanks!
These two backends should serialize
args
andkwargs
withjson.dumps
, even if not storing them. This will validate that the arguments are compatible withDatabaseBackend
or other backends.I have seen the lack of serialization as an issue on other task queue systems. Tests using a dummy backend skipped serialization, so they didn’t find unserializable arguments, leading to a crash in production.