Back

Function execution time mismatch

  • 0
  • Functions
  • Cloud
Chandan Gowda
17 Dec, 2023, 13:52

My scheduled cron job gets executed randomly even though I have specified the schedule as 15 9 * * 1-5

TL;DR
User is asking when Appwrite cloud will be ready for production use. User asks if their CRON schedule should be in UTC. User mentions that their CRON schedule gets triggered once a day, but at a different time each day. User requests to create another post. User mentions they have similar issues with multiple CRON schedules triggering every hour instead of the specified intervals. User asks if this issue is on the cloud. User questions if the OP's CRON pattern accounts for the UTC time zone. User inquires about the actual times the CRON job was triggered. User confirms the job is triggered every four hours. User asks for the
ideclon
17 Dec, 2023, 16:12

What are the times it was actually executed?

Chandan Gowda
17 Dec, 2023, 16:17

4 hours later.. 8 hours later etc

ideclon
17 Dec, 2023, 16:57

So every four hours?

ideclon
17 Dec, 2023, 16:58

What are the actual times triggered?

Drake
17 Dec, 2023, 19:21

I'm pretty sure the time is going to be in UTC time zone. Have you factored that into the cron pattern you set?

ideclon
17 Dec, 2023, 19:50

Yeah, that's why I asked when it's actually being triggered. But OP says it's being triggered multiple times in one day?

Drake
17 Dec, 2023, 19:53

And is this on cloud?

punti_z
17 Dec, 2023, 20:42

I have similar issues with cron, I have setup multiple cron */120 * * * *, another */180 and a */90 .. So ideally should trigger every 2 hours, 3 hours and 90 minutes, but all of them trigger every hour. I was going to start a thread but ran into this one

Drake
17 Dec, 2023, 21:38

Please create another post

Chandan Gowda
18 Dec, 2023, 01:56

Yes

Chandan Gowda
18 Dec, 2023, 01:57

Sorry for not making it clear. It gets triggered once in a day itself but at a different time.

Chandan Gowda
18 Dec, 2023, 01:57

Oh yeah. So my CRON schedule should be in UTC ??

ideclon
18 Dec, 2023, 02:01

Probably. I don't know if Appwrite forces UTC itself, but it's very likely your server is running on UTC.

Chandan Gowda
18 Dec, 2023, 02:05

Okay. Thank you so much.

Chandan Gowda
18 Dec, 2023, 02:06

When will appwrite cloud be ready for production use ?

ideclon
18 Dec, 2023, 02:06

I believe the plan is to launch Appwrite Pro before the end of the year

Chandan Gowda
18 Dec, 2023, 02:08

Okayy πŸš€

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