Implement hardware locks
This commit is contained in:
parent
a40cb9b9f6
commit
8292ebf7c7
10 changed files with 268 additions and 170 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue