Skip to content

Commit

Permalink
rest: logs endpoint returns more information about the job
Browse files Browse the repository at this point in the history
  • Loading branch information
Rokas Maciulaitis committed Jan 16, 2020
1 parent 2b0b74c commit 01c6402
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 01c6402

Please sign in to comment.