-
Hi, I was wondering if there's an effective way to set a timeout for a workflow. For our current example (Vacation Release Workflow), we'd like to implement a timeout mechanism. For instance, if the workflow isn't completed within a week, it should either be aborted or handled in some other way. At the moment, I'm not entirely sure if this is a practical approach—I’m just exploring whether there are any suggestions or best practices for handling such cases. Best - Alex |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
One way of handling this is using https://laravel-workflow.com/docs/features/signal+timer
If $result is true then it was approved but if it is false that means it reached the timeout. These timers don't run in the background so you can set them for very long times without wasting resources. Let me know if this will work for you. There are other ways but they involve more work on your part. |
Beta Was this translation helpful? Give feedback.
One way of handling this is using
awaitWithTimeout()
.https://laravel-workflow.com/docs/features/signal+timer
If $result is true then it was approved but if it is false that means it reached the timeout. These timers don't run in the background so you can set them for very long times without wasting resources. Let me know if this will work for you. There are other ways but they involve more work on your part.