From efbef46c58b944f05c0fc577107f228ef84a7f9b Mon Sep 17 00:00:00 2001 From: jleaniz Date: Mon, 30 Sep 2024 21:01:02 +0000 Subject: [PATCH] Update docstring --- turbinia/task_manager.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/turbinia/task_manager.py b/turbinia/task_manager.py index 67347c845..0b1f5d958 100644 --- a/turbinia/task_manager.py +++ b/turbinia/task_manager.py @@ -620,6 +620,15 @@ def run(self, under_test=False): time.sleep(config.SLEEP_TIME) def close_failed_task(self, task): + """Sets status and result data for failed Task. + + Args: + task(TurbiniaTask): The Task that will be closed. + + Returns: + TurbiniaTask: The updated Task. + """ + result = workers.TurbiniaTaskResult( request_id=task.request_id, no_output_manager=True, no_state_manager=True)