Implement hardware locks

This commit is contained in:
Joel Collins 2019-01-24 12:11:01 +00:00
parent a40cb9b9f6
commit 8292ebf7c7
10 changed files with 268 additions and 170 deletions

View file

@ -57,10 +57,10 @@ class TaskOrchestrator:
def start_condition(self, task_obj):
"""
Method returning bool describing if a particular task is allowed to run.
In the future, this will depend on the state of hardware locks?
Currently just allows a single task at a time.
Currently always allows tasks to start, as locks determine access to hardware.
"""
return not any([task._running for task in self.tasks])
#return not any([task._running for task in self.tasks])
return True
class Task: