Skip to content

Commit

Permalink
Fixed task console output reference
Browse files Browse the repository at this point in the history
  • Loading branch information
lachiewalker committed Nov 8, 2023
1 parent 41750db commit 4c16248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def output(self, request, pk=None, project_pk=None):
if len(info.output) > 0:
output = "\n".join(info.output) + '\n'

elif task.console_output:
output = task.console_output
elif task.console.output():
output = task.console.output()
elif os.path.exists(task.assets_path('console_output.txt')):
#Load from disk for completed tasks
return download_file_response(request, task.assets_path('console_output.txt'), 'attachment', download_filename='console_output.txt')
Expand Down

0 comments on commit 4c16248

Please sign in to comment.