trax_schedule.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:trax 作者: EliotBerriot 项目源码 文件源码
def handle(self, *args, **options):
        schedule.every(1).hours.do(tasks.kill_obsolete_timers)
        schedule.every(5).seconds.do(tasks.send_reminders)

        self.stdout.write(self.style.SUCCESS('Starting job runner...'))
        while True:
            time.sleep(1)
            try:
                schedule.run_pending()
            except:
                traceback.print_exc()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号