Skip to content

How to retry failed workflow #262

@leexin

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!

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