зеркало из https://github.com/microsoft/lisa.git
Runner: add log to know the cancelled reason.
This commit is contained in:
Родитель
f7d6b896af
Коммит
fa007d383a
|
@ -220,8 +220,8 @@ class RootRunner(Action):
|
|||
|
||||
self._start_loop()
|
||||
except Exception as identifier:
|
||||
self._log.info(f"canceling runner due to exception: {identifier}")
|
||||
cancel()
|
||||
raise identifier
|
||||
finally:
|
||||
self._cleanup()
|
||||
|
||||
|
|
|
@ -102,6 +102,7 @@ class TaskManager(Generic[T_RESULT]):
|
|||
self._futures.append(future)
|
||||
|
||||
def cancel(self) -> None:
|
||||
self._log.info("Called to cancel all tasks.")
|
||||
self._cancelled = True
|
||||
|
||||
def check_cancelled(self) -> None:
|
||||
|
|
Загрузка…
Ссылка в новой задаче