Back

Functions do not always execute on schedule

  • 0
  • Functions
  • Cloud
Todor Donev
17 Jun, 2024, 23:15

Using Appwrite Cloud (Pro), I have a Python function that executes on schedule every minute (*/1 * * * *). I have noticed that it does not always execute every minute. I have had a scenario where it did not execute for 8 hours. To give more context, the project is an auctions backed(in pre-production stage), so missing function runs is kinda big deal.

I have noticed that these problems mainly happen after midnight (Europe/Sofia). I would change the schedule to every 2 minutes (*/2 * * * *) and it will run a few times and sometimes stop again for unknown time.

I've couple more projects that also run on every minute schedule (*/1 * * * *). Every time different projects and different amount of projects are affected, so I see no pattern.

All of the functions are sub 1 second execution times and their timeout is set to 30+ seconds.

I will often times change them to run every minute to every two/three minutes and back again, so the schedules get triggered.

TL;DR
Functions scheduled to run every minute using Appwrite Cloud occasionally do not execute as expected after midnight (Europe/Sofia time), causing financial losses for auctions project. Changing the schedule to run every 2 minutes helps temporarily but the issue persists. Other projects with similar schedules are also impacted, with no discernible pattern.
Todor Donev
17 Jun, 2024, 23:19

Please look into this as its causing significant financial losses.

Todor Donev
17 Jun, 2024, 23:21

Let me know if opting for an external scheduling solution will actually execute the functions or they will be in the "waiting" status.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more