Workflow sleeps after some time

I hhave an ai agent workflow which sends email and I also have a human in a loop so before it sends the email it ask me for the approval, it works fine, and my workflow is in active state.

now after 2-3 hours or next day I trigger the workflow via telgram it just stops inspite its active it does nothing, and when i deactivate and then activate again then it works, can you please help.

Hi, can you please share your workflow and lets up now how you exactly setup n8n? There is a template on how you best launch a question.

regards,
J.

Here is my workflow :

It works fine after I deactivate and activate the workflow from N8n which is not ideal at all.

It must work whenever I send message to telegram to trigger the workflow.

Please share it with copy/paste from the gui and put it in a code segment
image

Are there any log files/errors?

are you self-hosted / in the cloud?

etc

reg,
J.

ok can i paste the json file for the workflow?

and I have hosted my workflow on Hostingert VPS and I don’t see any errors at all, it just simply sleeps, and it instantly gets activated once i deactivate and activate the workflow again

yes you can past it here but is has to be between a code node to be interactive .

Hi, it might have something to do with some type timeout. Can it be that the before “sleeping” the previous execution takes too long and locks the whole thing?

Strange, it works absolutely fine and very quick once I deactivate and activate the workflow it instantly starts the workflow and all nodes works very quick but after time time the trigger sleeps, I just updated my N8n to latest , I was 1 week behind the update, can that be the case?

So before it worked without any problems? the quickest way to find out is to revert the update tbh.

this way we will know for sure.

reg
j.

No, I just updated to the latest version, so now I will have to see if it works after couple of hours without touching anything

1 Like

Nah, still the problem persist, don’t know why the workflow sleeps.

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