Scheduled Jobs Won't Run

Question:

I’m setting up a scheduled job in jobs.config for the first time. The backupContacts() function just calls console.log() to output a message. For some reason, this function never gets called.

{
  "jobs": [
    {
      "functionLocation": "/backup_job.js",
      "functionName": "backupContacts",
      "description": "Backup Contacts Database",
      "executionConfig": {
        "time": "19:17"
      }
    }
  ]
}

I saw that there was a recent issue with scheduled jobs not running and that it was resolved on Oct 7th. Is it possible that it’s not fully resolved?

Hi, user3188 !!

Hello. The scheduled job will run at “19:17,” but since this is based on the server’s time (UTC), it may differ from the time in your region. To make it clearer, let me explain with my own example. In my country (Japan), the time is 9 hours ahead of UTC. So, if I schedule a job (like sending an email to myself) at “00:00,” the time I would actually receive the email would be just after 9:00 AM. If the region you live in has a significant time difference from UTC, the same thing might be happening to you. :wink: :+1:

Yes, you’re right. That’s the issue. Although I did see UTC in the documentation, the reason I thought it was local time was because if I introduce an error to the jobs.config file, it does log an error at the local time that I set.

1 Like

So … does that mean the issue has been resolved? If so, that’s great to hear. :laughing:

Yes, resolved. Thanks for the reply.