Scheduled Trigger and Interval every 15 mins keeps executing

Hi all,

I have a workflow that has a scheduled trigger node that runs at 7 am every day and if it finds a specific file in a folder it will send an email with the attachment.
Sometimes the workflow does not run so I thought ooh lets add an interval every 15 mins incase the file is not saved to the folder by 7am. However, with the interval set it sends the email every 15 minutes.
What would be the best way to say from 7am, search for the file every 15 mins, if you find it, send the email then do not send again until the next day
Thanks

Alex

Information on your n8n setup

  • n8n version: 1.78.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @villa1980,

You have to create a way of verifying that the email was already sent.

Here are a few ideas:

  • After the email is sent, change the filename to add an underline at the end of it. In your workflow you filter out all files that end with an underline, like this:
    Screeshot1.png β†’ Send to email
    Screeshot1_.png β†’ Don’t send

  • Use the file name as the email title, then check in your sent emails if that file has already been sent.

  • Register each file in a Google Sheets or even a database. Then you can check if it was already sent.

If my reply answers your question, please remember to mark it as a solution.

1 Like

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