Skip to content

SDK should fail workflow task if payloads size it known to be too large #723

@jmaeagle99

Description

@jmaeagle99

Is your feature request related to a problem? Please describe.

Currently Temporal has limits on the max payload size that can be used for operations like starting a workflow or signaling a workflow. If a user hits this limit the request will fail, leaving the workflow run in a failed state. If a workflow can be updated to minimize the payload size (e.g. compress data, move to some other storage), existing workflow runs can be resumed.

Describe the solution you'd like

If the SDK knows the error limits for payloads, it can submit a workflow task failure rather than submitting a completion that contains oversized payloads. This saves network costs by avoiding the upload of known oversized payloads and allows workflows to continue, provided the workflow is updated to address the oversized payloads.

Additional context

Per-SDK Tickets

  • Java -
  • Core -
  • .NET -
  • Ruby -
  • PHP -
  • Temporal CLI -

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions