librelist archives

« back to archive

Using YAML instead of JSON to encode/decode job args

Using YAML instead of JSON to encode/decode job args

From:
Evgeniy Dolzhenko
Date:
2011-03-07 @ 10:10
Hi all,

I'm wondering if it is possible to use YAML to encode/decode job arguments?
Technically that would require overriding Resque::Helpers#encode/decode
but I'm curious if someone did that already and if there are any caveats?
(I'm thinking about something like the output of YAML serializer emitting
characters which would be invalid when used as Redis values, etc.)

Sincerely,
Evgeniy