Hello, I have a function that runs every minute - if the function took over a minute, what happens? Does it wait for previous execution to finish first or run simultaneously execute a new one according to schedule? Still new to this! Thanks!
when a function is scheduled to run at a specific interval using a cron expression, and if the previous execution of the function hasn't finished when the next scheduled execution time comes around, the behavior depends on how you've configured your function.
Like you said that your function runs every minute, it will overlap each other, it will start a new execution before ending the previous one.
it's better to schedule your cron job to every 15 minutes or every hour
Thanks! I guess I can always try it out with setTimeout() see how it behaves
If you find the issue resolved after testing with setTimeout(), can you consider updating the title of your post to [Solved] Function Schedule Every Minute
Recommended threads
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...