Set up a scheduled job?

后端 未结 24 2497
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 01:13

I\'ve been working on a web app using Django, and I\'m curious if there is a way to schedule a job to run periodically.

Basically I just want to run through the dat

24条回答
  •  温柔的废话
    2020-11-22 01:43

    I had something similar with your problem today.

    I didn't wanted to have it handled by the server trhough cron (and most of the libs were just cron helpers in the end).

    So i've created a scheduling module and attached it to the init .

    It's not the best approach, but it helps me to have all the code in a single place and with its execution related to the main app.

提交回复
热议问题