Question:
What could cause a jobs.config to be ignored?
Product:
Wix Studio Editor, Velo
What are you trying to achieve:
I want to run a job once per day to trigger certain email reminders. However, at the scheduled time nothing happens and I don’t get any log entries.
What have you already tried:
- I have validated my jobs.config multiple times using the tool (Jobs Config | Velo by Wix)
- I’ve tried to recreate the jobs.config file using the (+) link in the editor.
- Of course I’ve scheduled based on UTC time.
- I created a wrong syntax jobs.config file to at least see an error (but nothing shows)
Additional information:
Here’s my current jobs.config file:
{
"jobs": [
{
"functionLocation": "/jobs.js",
"functionName": "job_sendLeadReminders",
"description": "Send reminders to customers and let leads expire automatically.",
"executionConfig": {
"time": "07:00"
}
}
]
}
And this is my jobs.js:
export async function job_sendLeadReminders() {
const utcTime = new Date().toISOString();
console.log(`Running job_sendLeadReminders at UTC time: ${utcTime} ...`);
}
Note that I’ve recently reassigned a premium plan to this account. Also, I’ve reassigned the domain. I wonder whether these moves could have somehow inactivated parts of my account.