You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decision record: no limits enforced on job variables, trust model documented #441
The Python SDK enforces no size or depth limit on job variables and custom headers. The trust model is documented instead: they are untrusted input, deserialisation is JSON-only into plain containers, and the README points to WorkerConfig.fetch_variables, the handler's own recursion bound, and MyModel.model_validate(job.variables.to_dict()) for validation.
Context
Issue #426, documented by PR #434. The cross-SDK record is camunda/sdk-infra#98 ("Decision record: job-variable payload size and depth is not limited by the SDKs").
Why this default
The documented decision matches what the code already does. Inventing a maximum payload size or nesting depth would be a behaviour change that could break working deployments, and it needs a product decision and one number shared across SDKs, not a guess in a docs PR.
Alternatives not taken
Enforce a maximum payload size and nesting depth in the SDK: a breaking-risk behaviour change without an agreed cross-SDK number.
Leave it undocumented: the shared policy asks each SDK to state its position.
How to revert/change
To enforce limits, open a separate issue once a cross-SDK number is agreed, implement it in runtime/job_worker.py, and update the README section added by PR #434 (revert that PR, or edit the section, if the position changes).
Activity