Job Scheduler jobs.config format changed

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
    }
  ]
}          
1 Like

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:

  1. https://webflow.com/updates

  2. https://support.squarespace.com/hc/en-us/articles/360027708412-About-Squarespace-version-7-1

  3. 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 :slight_smile:

You did not get the email?

It says that the existing scheduled jobs are not going to be affected.

That is not a breaking change. Thanks for pointing out, the post will be updated to emphasize that. Existing format will be supported and Wix will make sure all users migrate to the new format.

Thank you for pointing that out and updating your post. It was not clear when you said “please make sure to use the new format”…

@shan I’m not in that user list. Where can I subscribed? :grin:

@plomteuxquentin I think it was sent to all the users who have a jobs.config file in their site. I’m not sure but that’s what I can conclude because I have the file on 14 of my sites and I ended up receiving the same email 14 times all at once.

Check your spam maybe?