def run_scheduler(): """Loads calendar and stars scheduler""" sch = Scheduler() try: sch.load_calendar(os.environ['CALENDAR']) except: pass sch.run() return sch
def main(args): scheduler = Scheduler(simulation_speed=args.simulation_speed) scheduler.run(run_time=args.simulation_time)