Skip to content

How to retry failed workflow #262

Closed
Closed

Description

@leexin

Hi there,

I'm stuck trying to figure out a way to resume a failed workflow.

Assuming the workflow contains activities A -> B -> C in a sequential manner, and initially the workflow failed because Activity B has a bug that throws Exception.

A (success) -> B (failed) -> C (not run)
Workflow status: failed

After we fix the code bug in B and restart the queue worker, the following code is run:

$workflow = WorkflowStub::load($workflowId);
$workflow->resume();

However, when the workflow resumed at Activity B, the same bug happened even though the bug was fixed and queue worker restarted.
Any ideas how can I resume the workflow from the previously failed activity with fresh source code?

Cheers!

Activity

  1. locked and limited conversation to collaborators on Oct 24, 2025
  2. converted this issue into a discussion #268 on Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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