Scheduled job not running

I saw a lot of posts about the above, and tried many different things, but nothing seems to work.

This is what my job looks like:
// Jobs Config Generator
// Jobs Config | Velo by Wix

{
“jobs”: [
{
“functionLocation”: “/runDeals.jsw”,
“functionName”: “getValuesFromSheet”,
“executionConfig”: {
“time”: “19:00”
}
},
{
“functionLocation”: “/runDeals.jsw”,
“functionName”: “getValuesFromSheet”,
“executionConfig”: {
“cronExpression”: “0 * * * *”
}
}
]
}

The first job is scheduled to execute at 7pm UTC (3pm EST)
The second job is scheduled to run every hour
(These are tests)

I read almost every post here (and there are a lot) regarding job not running but nothing works.

Please help.

Anyone? Still no solution on my end :frowning:

Based on your configuration, you are attempting to schedule the getValuesFromSheet function in the /runDeals.jsw file.

I would take the following steps to figure out what is causing the issue:

  • Check if function is in the right file location
  • Check if function is properly exported
  • Run function with the Functional Tester to verify the function is working as intended
  • Use Wix Logs along with console messages in your functions to see if an error is occurring
  • Verify third party APIs (if any were used in the function) are working properly

I also recommend testing the configuration with only one of the jobs, to make debugging easier and seeing if using the same function is causing the issues.

Thank you!
It works now

1 Like