Back

Schedule function with minutes does not work

  • 0
  • Functions
JB
18 Jun, 2023, 07:16

Hello!

I have an issue when I schedule a function with minutes other than 0 or *, for example 30 1 * * *.

I deploy my function with the CLI and the schedule parameter on the json but the schedule is not active on my function. If I update my cron value on the console I have an error « Please enter a valid cron expression ».

What can I do to activate my schedule on my function?

I also add an issue on the Appwrite GitHub with screenshots : https://github.com/appwrite/appwrite/issues/5719

Thanks for your help! 🙏

TL;DR
The user is experiencing an issue with scheduling a function with minutes other than 0 or *. They deployed the function with the CLI and the schedule parameter on the JSON, but the schedule is not active. When they try to update the cron value on the console, they receive an error. They created a GitHub issue with screenshots. A support team member suggests checking the timezone setting and confirms that it should be set to UTC. The team will also investigate the cron validation issue. No solution is provided in the thread.
Drake
18 Jun, 2023, 21:01

it definitely seems like something might be wrong with the cron validation...I'll raise that with the team.

As for the problem about the function executing....how do you know the schedule isn't active?

JB
18 Jun, 2023, 21:43

Ok, thank you 😊 The schedule isn’t active because there isn’t clock icon next to the function ID on the functions list. I have an other function with * * * * * cron value and there is a clock icon and the schedule works correctly.

Drake
18 Jun, 2023, 21:46

Honestly, I'm not so sure about the clock icon.

You said it's not executing...are you considering the timezone you're setting? It should be UTC

JB
18 Jun, 2023, 21:53

Ok, I just redeployed the function, I will see tomorrow if the function was executed (I am in France). I come back to you quickly.

JB
19 Jun, 2023, 07:03

It's ok, my schedule was launch this night 👍 It's just a problem on the first function deploy, when you change the cron value with * * * * * for example and you redeploy the function it works. Thank you for your help.

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