pub const WIRE_FORMAT_VERSION: u32 = 1;Expand description
Wire-format version every backend wraps jobs with on push and unwraps on
dispatch. Bumping it lets a #[processor] handler reject payloads from a
newer release (rolling-deploy safety) instead of misinterpreting bytes.
The envelope is { "v": <number>, "payload": <user payload> }. An
unversioned value — anything that isn’t an object with both v and
payload keys — is treated as a legacy raw payload and decoded directly
as the job type (with a warning), so jobs left in Redis from a prior
deploy still drain.