Skip to content

Commit

Permalink
Merge 54619f2 into 1a380c4
Browse files Browse the repository at this point in the history
  • Loading branch information
roksys committed Jan 14, 2020
2 parents 1a380c4 + 54619f2 commit b2aa49e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion reana_workflow_controller/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1876,7 +1876,19 @@ def _get_workflow_logs(workflow):
Job.created).all()
all_logs = {}
for job in jobs:
all_logs[str(job.id_)] = job.logs or ''
item = {
'workflow_uuid': str(job.workflow_uuid) or '',
'job_name': job.job_name or '',
'compute_backend': job.compute_backend or '',
'backend_job_id': job.backend_job_id or '',
'docker_img': job.docker_img or '',
'cmd': job.prettified_cmd or '',
'status': job.status.name or '',
'logs': job.logs or '',

}
all_logs[str(job.id_)] = item

return all_logs


Expand Down

0 comments on commit b2aa49e

Please sign in to comment.