Skip to content

Commit

Permalink
Python main start of scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
PrimeF committed Mar 28, 2021
1 parent 4d98fc1 commit 3a9de9e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions training_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,12 @@ def wait(self):
p.wait()


scheduler = Scheduler()
configs_to_process = Path(CONFIGS_DIR).glob("**/*.json")
for config in configs_to_process:
scheduler.wait_for_free()
scheduler.execute(config)
stdout.flush()
if __name__ == '__main__':
scheduler = Scheduler()
configs_to_process = Path(CONFIGS_DIR).glob("**/*.json")
for config in configs_to_process:
scheduler.wait_for_free()
scheduler.execute(config)
stdout.flush()

scheduler.wait()
scheduler.wait()

0 comments on commit 3a9de9e

Please sign in to comment.