Back

Cron syntax mismatch

  • 0
  • Functions
ChicK00o
16 Oct, 2023, 04:18

im trying to set 0 16 * * 1-5 as cron execution, but the ui says Please enter a valid Cron expression I believe there is some issue with the validation. The cron mentioned is valid. This is appwrite cloud. For now i have set it as 0 0 * * * but i do not want that. Further what is the timezone for this execution? will it be local to me, or UTC?

TL;DR
There is a syntax mismatch issue with setting the Cron expression in the appwrite cloud. The user tried to set `0 16 * * 1-5`, which is a valid Cron expression, but the UI displays an error message saying it is invalid. There is a known issue with client side validation for the schedule. The user currently has it set as `0 0 * * *`, but they want to use the original expression. The timezone for the execution is not specified, so it is unclear whether it will be local or in UTC. A solution has not been provided in the support thread.
Drake
16 Oct, 2023, 05:46

Yes...there's a known issue with the client side validation for the schedule. Search GitHub issues to find it

ChicK00o
16 Oct, 2023, 09:16

The PR is open and ready to merge, lets check if we can

Binyamin
16 Oct, 2023, 13:47

For now you can use this to set your Cron

ChicK00o
21 Oct, 2023, 10:38

thanks

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