Skip to content

Start child with WorkflowID longer than 255 with SQL as persistence would stuck #7506

Open
@yiminc

Description

@yiminc

Due to DB column size limit, the workflow ID length limit is 255 when using SQL as persistence layer.

If a workflow try to start a child with workflow ID longer than 255, the workflow would see a child initiated, and then it would stuck. Server log indicate that it is stuck in the start child transfer with error like "msg":"Operation failed with internal error.","error":"createOrUpdateCurrentExecution failed. Failed to insert into current_executions table. Error: pq: value too long for type character varying(255)","error-type":"serviceerror.Unavailable"

This is bad from user experience POV. At least it should fail the child sooner with clear error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions