コード例 #1
0
ファイル: web.py プロジェクト: wekoil/MI-PYT-semestralka
def run_scheduler():
    """Loads calendar and stars scheduler"""
    sch = Scheduler()
    try:
        sch.load_calendar(os.environ['CALENDAR'])
    except:
        pass

    sch.run()
    return sch
コード例 #2
0
ファイル: main.py プロジェクト: hereismari/adsd
def main(args):
    scheduler = Scheduler(simulation_speed=args.simulation_speed)
    scheduler.run(run_time=args.simulation_time)