MCPcopy Create free account
hub / github.com/closeio/tasktiger / execute

Method execute

tasktiger/task.py:349–364  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

347 self._state = to_state
348
349 def execute(self) -> None:
350 func = self.func
351 is_batch_func = getattr(func, "_task_batch", False)
352
353 g["current_task_is_batch"] = is_batch_func
354 g["current_tasks"] = [self]
355 g["tiger"] = self.tiger
356
357 try:
358 runner_class = get_runner_class(self.tiger.log, [self])
359 runner = runner_class(self.tiger)
360 return runner.run_eager_task(self)
361 finally:
362 g["current_task_is_batch"] = None
363 g["current_tasks"] = None
364 g["tiger"] = None
365
366 def delay(
367 self,

Callers 11

delayMethod · 0.95
set_system_lockMethod · 0.45
from_idMethod · 0.45
tasks_from_queueMethod · 0.45
n_executionsMethod · 0.45
get_queue_sizesMethod · 0.45
get_queue_statsMethod · 0.45
_execute_task_groupMethod · 0.45
_queue_periodic_tasksMethod · 0.45
store_task_executionMethod · 0.45

Calls 2

get_runner_classFunction · 0.85
run_eager_taskMethod · 0.45

Tested by

no test coverage detected