Hi there, I have a custom application where I'm trying to schedule a function sendNotification() to run every Friday at 10 PM for which I'm using the following cron string "0 0 22 * * * 5 *"
My code is:
schedule("0 0 22 * * * 5 *", "sendNotification")
which throws an error:
java.lang.RuntimeException: CronExpression '0 0 22 * * * 5 *' is invalid. on line 69 (method updated)
Any ideas what I'm missing?
P.S. I've also tried wrapping the cron string in '' with no change in behavior: schedule('"0 0 22 * * * 5 *"', "sendNotification")