🐛 Bug Report: The Cron Scheduler for functions behaves strangely
👟 Reproduction steps
The Cron Scheduler for functions behaves strangely. Under certain conditions the function is executed, under others it is not.
Scenario 1
- Create a function without event triggering. Instead define a scheduler with cron syntax
- Type in the cron syntax: * * * * * (trigger every minute)
- The function is executing successfully every minute 👍
Scenario 2
- Create a function without event triggering. Instead define a scheduler with cron syntax
- Type in the cron syntax: 30 14 * * * (today at 14:30 or 02:30PM. You can replace the time with a time in the near future)
- The function does not execute 👎
Checking the syntax with the Crontab.guru (https://crontab.guru/#30_14___*) we see that the cron syntax is correct. But why no function gets executed?
👍 Expected behavior
I expect the same behavior between the cron syntax * * * * * and 30 14 * * * triggering the function on the expected time.
👎 Actual Behavior
Currently there seems to be some problems by interpreting the cron syntax.
🎲 Appwrite version
Version 0.15.x
💻 Operating system
MacOS
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
@Asored-D, thanks for raising this issue! 🙏 . I believe the timezone for our cron syntax is UTC. Can you make sure you pass the hour in UTC?
Also, would you please share your function as JSON? You can view the JSON in the Overview tab of your function.
@Asored-D, have you had a chance to check this?
Please respond or I will need to close this due to inactivity.
Closing due to inactivity.