How to call a function every period of time at backend (database)?

Hi, I’m new to Wix and I’m stuck at the problem and don’t know where to start. Any kind of suggestion will be appreciated and meant a lot to me.

So I’m on a task to create a kinda job matching platform. Employers will post jobs on the website and other users will apply for the desired jobs. Every job has a property of application deadline, and I wanted to keep tracking has the deadline passed yet. The function is basically compare the deadline and current date and time and add tags to the posted job in the database accordingly, and I’m fine with that (I hope). However, what concerned me is that how do i keep looping those lines of code every certain period of time even when no one is using the website? (This might be an easy question but all I know about calling functions is at frontend, and I would not want to login to the website as an admin and keep the page opened for 24/7) (Another reference: I want it to function exactly same as Unity void Update() or void FixedUpdate() with a time interval of say 1 or 5 seconds)

Any help would be nice. Thanks in advance.:grin:

You can’t run a function on the backend every 5 seconds, unless you call it from the frontend (or externally using http-functions). However you can run a function on the backend every 30 minutes using Scheduled Jobs .

Maybe you will find your answer in one of the following posts…

https://www.wix.com/velo/forum/coding-with-velo/refresh-certain-element-every-few-minutes

Ok, J.D. already gave you the right direction…

@russian-dima hi Velo-Ninja, thank you for offering your help, I will check those pages

J.D. will be the right person in this case to ask for help. He will be able to help you better.

hi J.D., thank you for your advice, I’ll look into the documentations