Skip to content

Use a standard 'killed' error with cause when onMaxAttempts: 'kill' exhausts retries #4425

@nikrooz

Description

@nikrooz

When onMaxAttempts: 'kill' is set, the invocation fails with the last error after exhausting all retry attempts. This can be confusing, especially if the error wasn't caused by a Restate command. Instead, we should throw a standard "killed" error (so the UI can also indicate the invocation was killed) and attach the last retry error as its cause.

Alternatively, we can push a kill event to sys_journal_events, with the killed error. so in the UI we can show "killed after" in the UI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions