Schedule trigger - how to avoid trigger workflow if prevoius schedule is still executing


For the schedule trigger, how to avoid trigger the workflow if prevoius schedule is still executing.
That means if I have a schedule to execute once per 10 seconds. If the previous schedule takes more than 10 seconds, how to avoid to trigger another one?



Hi @anderson.wong, you can’t prevent the trigger from starting your workflow, but inside your workflow you could query already running executions before doing anything else.

This uses n8n’s UI API so is rather hacky and can change without notice. The basic idea is described here, however the authentication has changed slightly (see this post for an updated authentication example). You might also need to check if the endpoints haven’t changed since this came up.

Make sure to also vote on the respective feature request suggesting a proper implementation of such a check:

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