More Than 20 Scheduled Jobs ?

This is a more advanced solution but just putting it out there in case it helps someone (use Aviv and Alexander’s solution if you’re a beginner)

I had this issue where I needed to run a function every minute. Found 2 solutions, one is within Wix and the other is external.

Wix: One solution I found is to create an endpoint on my primary site which calls my desired function. You could also call a different function based on the time of the day if you want further segmentation:

const decideWhich = () => {
   let date = new Date(); //time is in utc so plan accordingly
   let hour = date.getHours();
   let minutes = date.getMinutes();
   if(hour === 23) {
     resettingStock();
   } else {
     startUpdate();
   }
}

Now each site can only have a maximum of 20 jobs but you can also run jobs on free wix sites so create another wix site and use the 20 jobs to call the HTTP endpoint on your primary site using fetch. That would give you a total of 40 jobs now.

A total of 2 additional free wix sites (20 + 20 + 20) would allow you to run a job each minute now. Now remember that there might be a second or two delay in executing the function due to it being called via fetch (network congestion)

External: More simple for me was to host a nodejs web app on aws or firebase and call the endpoint on the primary wix site using the cron npm.

It really depends on what you are trying to do and how clean and quick (down to the millisecond) you require your function to execute but the 1st option should be easier.