Skip to content

TerminalError / TerminalException could output with more details in the cli #1712

Closed
@djang0dev

Description

Hi 👋, first thanks for your work on restate and what's coming!

Might be an idea to output a TerminalError with the status completed and with Error / Caused by and even the Trace ID ?

Cause atm, there's no UI diff between a successful completed inv / an inv that has been terminated with a TerminalError

e.g with this simple workflow:

export const throwableWorkflow = workflow({
  name: "throwable",
  handlers: {
    run: async (ctx: WorkflowContext) => {
      throw new TerminalError("Should show up in the restate cli?", { errorCode: 500 })
    },
  },
})

CleanShot 2024-07-10 at 15 25 31@2x

Thanks!

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions