Exemple #1
0
def run_scheduler():
    """Loads calendar and stars scheduler"""
    sch = Scheduler()
    try:
        sch.load_calendar(os.environ['CALENDAR'])
    except:
        pass

    sch.run()
    return sch
Exemple #2
0
def main(args):
    scheduler = Scheduler(simulation_speed=args.simulation_speed)
    scheduler.run(run_time=args.simulation_time)