Exemple #1
0
    def __init__(self):
        g.load_global_data()
        if not g.init_success:
            raise Exception('初始化加载 global_data 失败!')

        scheduler = TornadoScheduler()
        scheduler.add_job(scheduler_service.do_every_day, 'cron', day_of_week='0-6', hour=0, minute=30)
        scheduler.start()
Exemple #2
0
 def __init__(self):
     g.load_global_data()
     if not g.init_success:
         raise Exception('初始化加载 global_data 失败!')