I wrote a collection update function by adding the code as jsw-File in the Backend. Then I tested the function by calling it in the page onLoad function. Everything worked fine - there were no errors shown in the console. Then I added the function (function defined as export and setting the wixDataOptions to true) to the jobs.config and set only a time for daily processing. But the job is not called - if I test it in the pages onLoad everything works fine.
Any suggestions for this behaviour are highly appreciated!
job routine: import wixWindow from ‘wix-window’;
export function _testJob() {
wixWindow(“#text15”).text = ‘Change my text by job!’;
}
and finally the structure:
I think this should be enough to manage a first “Hello World”-cronjob. But unfortunately there is NO reaction at all. The same happened when I tried to manage a collection backend job (with jsw).
Are there any additional requirements for activating cron jobs?