Getting the errror Schedule expression is invalid
when trying to deploy a new cron job.
Here’s the job:
REALTIME_PRICES:
type: task
handler:
code: src/tasks/REALTIME_PRICES/handler.ts
schedule: cron(0/5 14-21 ? MON-FRI )
It’s supposed to run every 5 minutes from 9am to 4pm (EST) Monday through Friday.
Technically I need it to be 9:30 am to 4pm. But that won’t fix the error
I copied the schedule directly from the docs where it says:
cron(0/5 8-17 ? MON-FRI ) Invoke task every 5 minutes Mon-Fri between 8:00am and 5:55pm (UTC)
https://docs.8base.com/docs/8base-console/custom-functions/tasks
Seems like this is also invalid?
I did try removing the space at the end but that didn’t fix it.
Could anyone update the docs, and also please send the correct way to format a cronjob running every 5 minutes 09:30 to 14:00 Monday to Friday?