Context data
Handlers can read job identity, attempt metadata, worker metadata, application extensions, and a producer client tied to the same runtime. Context cancellation means the process is shutting down, an operator cancelled the job, or the lease was lost.Payload evolution
Keep task kinds stable and declare schema versions explicitly in producer envelopes. Use application-defined upcasters for old payloads and aliases for kind renames. A codec failure becomesundecodable; it does not burn retries that cannot repair bytes.
Go version checks require the optional Versioned interface; a plain JSON task does not
enforce them automatically.
Task versioning: v1 to v3
Rename a field, add a required field, implement Go and Rust upcasters, and deploy readers
before writers. Includes runnable examples and rejection tests.