Rank 3: Container
Hello everyone!
I'm using Appwrite Cloud and I have a function that runs every day at 00:00 UTC. Preciously it worked fine, but it didn't fire last night and it's stuck as "Scheduled" as status.
Anyone else noticed the same?
Votes
0
Replies
21
Participants
4
Messages
22
Rank 3: Container
Hello everyone!
I'm using Appwrite Cloud and I have a function that runs every day at 00:00 UTC. Preciously it worked fine, but it didn't fire last night and it's stuck as "Scheduled" as status.
Anyone else noticed the same?
Rank 3: Container
It still didn't run today. ☹️
Steps to reproduce:
Schedule a function using chron: 0 0 * * *, which was taken from the example documentation (https://appwrite.io/docs/products/functions/execution#schedule).
It should run at midnight, but it simply doesn't run.
Rank 3: Container
Created an issue on GitHub for this bug:
Rank 3: Container
Rank 3: Container
Current status. This function should run at 00:00 UTC.
Rank 3: Container
Tomorrow I'll be back here and report if it ran.
Rank 3: Container
Rank 3: Container
Rank 3: Container
This time it ran correctly. 🎉🎉🎉
Rank 3: Container
Rank 3: Container
What I did do differently this time is forcing a redeploy after changing the CRON settings. Maybe that made a difference.
Rank 3: Container
I'll test this some more the next days. 😊
Rank 3: Container
If it's stable, then great. 👍🏻 Another solution I have in mind is the following:
I make the function accessible trough an URL and trigger it by using an external service. I found www.fastcron.com that seems to be able to do this.
Rank 3: Container
My function ran correctly again today. 👍🏻👍🏻
Rank 3: Container
Now the ultimate test: I'll upload my function again and then set the CRON setting, without forcing a redeploy afterwards. Lets see what happens. I suspect that is the problem.
Rank 3: Container
Rank 3: Container
This is still an ongoing issue. It's been really unstable again.
Rank 3: Container
Rank 3: Container
Goint to wait and see if it runs tonight. I'll be back.
Yes, sometimes it doesn't work. But very few.
@memoonliteWhat's the project ID, function ID and execution ID?
DM them to me.
Also, if you try to execcute it manually, is it working?
Are you specifying something specific in the request?