Skip to content

Persist workflow error#36

Merged
RawanMostafa08 merged 1 commit intomainfrom
main_persist_workflow_error
Nov 27, 2025
Merged

Persist workflow error#36
RawanMostafa08 merged 1 commit intomainfrom
main_persist_workflow_error

Conversation

@RawanMostafa08
Copy link
Copy Markdown
Collaborator

Description:
persisted workflow error as a string

Related issue:
#35

if stepErr != nil {
w.Status = StatusFailed

wfErr := fmt.Errorf("workflow failed: step %s: %w", step.Name, stepErr)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just assign the error without wrapping it as it's implied if w.err != nil then the workflow failed

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i did this to imply a workflow failure not just the step failure message, also to have the step name that caused the failure in the error

@RawanMostafa08 RawanMostafa08 merged commit 5a8a59e into main Nov 27, 2025
1 check passed
@RawanMostafa08 RawanMostafa08 deleted the main_persist_workflow_error branch November 27, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants