Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, msg='Demo Task', *args, **kwargs):
Task.__init__(self, msg)
def __init__(self, msg, sequential=True):
Task.__init__(self, msg)
self.subtasks = []
self.sequential = sequential
for task in self.subtasks:
task.parent = self
def __init__(self, msg='Demo Task'):
Task.__init__(self, msg)
def __init__(self, msg='Demo Task'):
Task.__init__(self, msg)
def __init__(self, msg=None):
Task.__init__(self, msg)
self._lock = RLock() # general lock
self.subtask = None # subtask that is parallelized
self.__subtask_class = None # class of subtask
self.__subtask_args = None # args for initializing subtask
self.__subtask_kwargs = None # kwargs for initializing subtask
self.datasource = validate(self.datasource)
self.logger = logging.getLogger('root')
def __init__(self, msg=None):
Task.__init__(self, msg)
self._lock = RLock()
self.subtask = None # subtask that is parallelized
self.__subtask_class = None # class of subtask
self.__subtask_args = None # args for initializing subtask
self.__subtask_kwargs = None # kwargs for initializing subtask