Flask with Asyncrounus Cronjob in the Background

Question:

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.

Asked By: Voidy

||

Answers:

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".

Answered By: Jesse

Use Docker and create a ChronJob in it

Answered By: Kamalx
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.