Went on a PEP-8 rampage
This commit is contained in:
parent
f99ad30fb6
commit
0948c9308a
36 changed files with 186 additions and 218 deletions
|
|
@ -1,14 +1,13 @@
|
|||
from threading import Thread
|
||||
from functools import wraps
|
||||
import datetime
|
||||
import logging
|
||||
import traceback
|
||||
import time
|
||||
import uuid
|
||||
|
||||
from openflexure_microscope.exceptions import TaskDeniedException
|
||||
from openflexure_microscope.utilities import entry_by_id
|
||||
|
||||
|
||||
class TaskOrchestrator:
|
||||
"""
|
||||
Class responsible for spawning threaded tasks, and storing their returns.
|
||||
|
|
@ -76,7 +75,7 @@ class TaskOrchestrator:
|
|||
Method returning bool describing if a particular task is allowed to run.
|
||||
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
|
||||
|
||||
|
||||
|
|
@ -139,4 +138,4 @@ class Task:
|
|||
self._running = True # Set start command
|
||||
thread = Thread(target=self.run) # Define thread
|
||||
thread.daemon = True # Stop this thread when main thread closes
|
||||
thread.start() # Start thread
|
||||
thread.start() # Start thread
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue