2

I need to run a background job in my pyramid application, one time every hour. The job work asynch without block the main thread that serve responses to the clients requestes. This job need to access to a database for store information.

How can i do this? What library/package/algoritm I have to use?

4

1 回答 1

1

这看起来真的像 cron 工作。因此,您可以创建简单的 python 脚本并通过 cron 执行它。

作为另一种变体,您可以使用芹菜(为此,您还需要金字塔芹菜

于 2014-12-04T14:01:59.253 回答