I have a few workflows that are triggered by a schedule trigger once a day at a certain time.
When I check the “executions” tab, I see, that some workflows are triggered twice at the same time.
I would like to prevent this, because it slows down the performance and sometimes causes problems in the workflows.
Does anyone know why this is happening and how I could fix this?
I already tried deleting the schedule trigger node and creating a new one.
Thanks for posting here and welcome to the community!
Could you share your workflows? What other nodes are contained in these?
Can you confirm you only see this happening for workflows with Schedule Triggers?
Also, what does your docker configuration look like? Can you confirm you only have one n8n instance talking to the database?
I use those workflows for work, so I cannot share everything due to confidentiality reasons. I am currently trying to reproduce the problem with simple workflow that I can share.
The problem of multiple executions also sometimes happens, when I just press the “test workflow” button, but not every time. Reloading the page seems to fix it.
It feels a bit as if a cron job or something like that is stuck sometimes. I have a different case, where I have a workflow that as a Schedule trigger, was active for a while, but is now set to “inactive”. I would expect it to not run anymore, but it still does. I think this could be related.
I think it is just one n8n instance talking to the n8n database.
sorry, it took us a while to update… We are now on version 1.53.2 (the change should be in there, right?).
But the tasks are still executed twice. I even tried changing the timing by a minute and saving the workflow again. But now there are still two executions. One at the original time and one that I changed by one minute. It seems as if there is a cron job stuck somewhere (i have also cases, where an old version of the workflow gets executed).
I was also able to reproduce the bug with a very simple workflow that is just a schedule trigger and a Slack node that posts a message to a channel (this workflow was set up before the update).
Any ideas? I could also try to delete the workflows with problems and rebuild them, maybe that helps?