A change in the jobs.config definition for Job Scheduler feature was made.
Until now, the configuration contained one property 'functionLocation' for the location of the job function, which included both the file path and the function name.
Going forward, the file path (including the file extension) will appear in one property - 'functionLocation' and the function name will now appear in a second property - 'functionName'.
Read more in our documentation.
If you're using scheduled jobs in your website please make sure to use the new format.
Note: this is not a breaking change - existing format will still be supported in the next weeks and the jobs.config file will automatically be migrated to the new format.
// The new format:
{
"jobs": [
{
// first job object
"functionLocation": "/utils/dbUtils.js",
"functionName": "deleteExpired",
"description": "Delete the expired DB items",
"executionConfig": {
"time": "22:00",
"dayOfWeek": "Sunday"
}
},
{
// second job object
}
]
}
Sorry Wix but that's a really shitty way to announce a breaking change!
Announce the change in advance
You should announce that a least a few weeks in advance. We need to warn our client about the change/book time to fix our code and avoid downtime.
Announce the change officially
You should Officially announce breaking changes. Only a few people are browsing the forum daily. That can easily be miss by many. You could create a release note like any of your competitors and major web company:
https://webflow.com/updates
https://support.squarespace.com/hc/en-us/articles/360027708412-About-Squarespace-version-7-1
https://twitter.com/i/release_notes
That would really help your customer and yourself. I bet people are going to call support wandering why their code broke suddenly.
If Wix wishes to attract bigger customer those kinds of communication and transparency are mandatory.
PS: I've got to say that I like the new format more nonetheless :)