How to automatically restart workflow once completed?

Hi everyone,

I have a workflow that takes several hours to run, but the exact duration varies every time. Currently, I’m using a Schedule Trigger, but it’s inefficient—if I set the interval too long, the workflow sits idle; if I set it too short, I risk overlapping executions.

Is there a standard way to make a workflow “self-restart” or loop back to the beginning only once the final node has successfully completed?

I’m looking for a way to ensure 100% uptime without manual intervention or guestimating schedules. Thanks!

Use a webhook as last node, and then add a webhook trigger to the start using the same webhook url’s. So at the end, the it will trigger a new flow via webhook.

You can also send specific information with the webhook, allowing you to use that in the next trigger too, which you can use as context for conditions (to skip certain things for example, or take a different route).

1 Like

Hi @tyvez

If you want your workflow to infinitely loop, then you can simply call itself using the execute nodes:

2 Likes

Additionally to the above, incase the workflow error’s out, you can still reboot it based on some logic of the type of error whether transient (temporary like network related etc) or not using the below example with the Error Trigger.

Make sure to point this workflow again to itself for error handling. Go to the workflow settings and set the Error Workflow property:

This way you can handle instances where the workflow crashed with an error.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.