Skip to content

Commit

Permalink
scheduler: Remove end_condition and bool finished
Browse files Browse the repository at this point in the history
It was introduced as a condition to end scheduler which is no
longer necessary
  • Loading branch information
Deepskyhunter committed Jul 29, 2022
1 parent cd0465b commit ada6d27
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions artiq/test/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,10 @@ def get(self):
return rid

class SchedulerMonitor:
def __init__(self, end_condition="deleting"):
def __init__(self):
self.experiments = {}
self.last_status = {}
self.exp_flow = {}
self.finished = False
self.end_condition = end_condition
self.flags = {"arrive": {}, "leave": {}}

def record(self):
Expand All @@ -96,8 +94,6 @@ def record(self):
if self.last_status[key] in self.flags["leave"][key].keys():
self.flags["leave"][key][self.last_status[key]].set()

if current_status == self.end_condition:
self.finished = True
self.last_status[key] = current_status
return

Expand Down

0 comments on commit ada6d27

Please sign in to comment.