This commit is contained in:
han0
2024-05-29 10:21:31 +08:00
commit 54ac29d27b
119 changed files with 6817 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
"""
定时任务入口
"""
from core.factory import ClientApp
from worker import ASYNC_MODE, MODE_GEVENT
from tasks.crond import sched
app = ClientApp()
if __name__ == '__main__':
try:
g = sched.start()
if ASYNC_MODE == MODE_GEVENT:
g.join()
except (KeyboardInterrupt, SystemExit):
pass