How to perform periodic task with Flask in Python

前端 未结 3 1258
春和景丽
春和景丽 2020-12-14 08:28

I\'ve been using Flask to provide a simple web API for my k8055 USB interface board; fairly standard getters and putters, and Flask really made my life a lot easier.

<
3条回答
  •  不思量自难忘°
    2020-12-14 08:55

    No there is not tasks support in Flask, but you can use flask-celery or simply run your function in separate thread(greenlet).

提交回复
热议问题