Skip to content

Commit

Permalink
Update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jleaniz committed Sep 30, 2024
1 parent 01ef401 commit efbef46
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions turbinia/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit efbef46

Please sign in to comment.