示例#1
0
 def __init__(self, bus, worker, master_proxy, execution_features, num_threads=1):
     AsynchronousExecutePlugin.__init__(self, bus, num_threads, "execute_task")
     self.worker = worker
     self.block_store = worker.block_store
     self.master_proxy = master_proxy
     self.execution_features = execution_features
     self.current_task_set = None
     self._lock = Lock()
示例#2
0
 def __init__(self, bus, block_store, master_proxy, execution_features, num_threads=1):
     AsynchronousExecutePlugin.__init__(self, bus, num_threads, "execute_task")
     self.block_store = block_store
     self.master_proxy = master_proxy
     self.execution_features = execution_features
 
     self.current_task_id = None
     self.current_task_execution_record = None
 
     self._lock = Lock()
示例#3
0
 def __init__(self, bus, block_store, master_proxy, execution_features, num_threads=1):
     AsynchronousExecutePlugin.__init__(self, bus, num_threads, "execute_task")
     self.block_store = block_store
     self.master_proxy = master_proxy
     self.execution_features = execution_features
 
     self.current_task_id = None
     self.current_task_execution_record = None
 
     self._lock = Lock()
示例#4
0
 def __init__(self,
              bus,
              worker,
              master_proxy,
              execution_features,
              num_threads=1):
     AsynchronousExecutePlugin.__init__(self, bus, num_threads,
                                        "execute_task")
     self.worker = worker
     self.block_store = worker.block_store
     self.master_proxy = master_proxy
     self.execution_features = execution_features
     self.current_task_set = None
     self._lock = Lock()
示例#5
0
 def __init__(self, bus, task_pool, worker_pool):
     AsynchronousExecutePlugin.__init__(self, bus, 1, 'schedule')
     self.worker_pool = worker_pool
     self.task_pool = task_pool
示例#6
0
 def stop(self):
     for timer in self.timers.values():
         timer.cancel()
     AsynchronousExecutePlugin.stop(self)
示例#7
0
 def __init__(self, bus, event_name="deferred_work"):
     AsynchronousExecutePlugin.__init__(self, bus, 1, event_name)
     self.timers = {}
     self.current_timer_id = 0
示例#8
0
 def __init__(self, bus, task_pool, worker_pool):
     AsynchronousExecutePlugin.__init__(self, bus, 1, 'schedule')
     self.worker_pool = worker_pool
     self.task_pool = task_pool
示例#9
0
 def stop(self):
     for timer in self.timers.values():
         timer.cancel()
     AsynchronousExecutePlugin.stop(self)
示例#10
0
 def __init__(self, bus, event_name="deferred_work"):
     AsynchronousExecutePlugin.__init__(self, bus, 1, event_name)
     self.timers = {}
     self.current_timer_id = 0