(self)
| 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, |
no test coverage detected