This topic was automatically generated from Slack. You can find the original thread here.
Question there, I’m using a trigger running on a 3m interval to process a queue. Is there a way to stop the workflow interval or pause the entire workflow once I have finished processing the queue inside the workflow action? I know there is $.flow.suspend, but does it stop the trigger interval from processing the next one?
I’m using a trigger running on a 3m interval to process a queue. Is there a way to stop the workflow interval or pause the entire workflow once I have finished processing the queue inside the workflow action? I know there is $.flow.suspend, but does it stop the trigger interval from processing the next one?
Using $.flow.suspend will pause the workflow execution at the end of the current step, but it won’t stop the trigger interval from processing the next one. The trigger will still run on its 3-minute interval, and the workflow will execute again. If you want to pause the workflow until a specific condition is met, you can use $.flow.rerun with a delay. However, this won’t stop the trigger from running on its interval either. If you need to stop the trigger interval completely, you’ll have to manually disable the workflow from the Pipedream UI. There’s no built-in way to disable the trigger from within the workflow code itself.