Home > other >  Flask with Asyncrounus Script in the Background
Flask with Asyncrounus Script in the Background

Time:01-19

So what i am trying to do is, to host my Flask API and have a script running on the Server in the background all the time, even when there is no user that is accessing the API.

The script in the background should be executed once a minuite to update things in the Database.

CodePudding user response:

What you're interested in are "cronjobs".

You can check out a library like Celery to get started. In particular, you'll want to look at Celery "beat".

Hope this helps.

  •  Tags:  
  • Related