aelassas / wexflow

.NET Workflow Engine and Automation Platform
https://wexflow.github.io
MIT License
584 stars 162 forks source link

Question #68

Closed TechyGuy99 closed 8 months ago

TechyGuy99 commented 8 months ago

If i have a workflow where a task or tasks fail, how do i roll back to valid state?

Do you have a retry framework incorporated in such a case?

aelassas commented 8 months ago

Yes, If a task fails:

- The retryCount option allows to retry a task a certain number of times in case of
  failure. Defaults to 0 (no retry).
- The retryTimeout option indicates the waiting time between two tries in milliseconds.
  Defaults to 1500ms.

If the workflow fails: https://github.com/aelassas/wexflow/wiki/Samples#workflow-events

but you need to edit the workflow from xml view for retry options and workflow events.