Skip to content

Commit

Permalink
feat(rest): add live_logs_enabled property in logs output (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlemesh authored and tiborsimko committed Oct 21, 2024
1 parent 50495fc commit c4be985
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ The list of contributors in alphabetical order:
- [Giuseppe Steduto](https://orcid.org/0009-0002-1258-8553)
- [Harri Hirvonsalo](https://orcid.org/0000-0002-5503-510X)
- [Jan Okraska](https://orcid.org/0000-0002-1416-3244)
- [Jelizaveta Lemeševa](https://orcid.org/0009-0003-6606-9270)
- [Leticia Wanderley](https://orcid.org/0000-0003-4649-6630)
- [Marco Donadoni](https://orcid.org/0000-0003-2922-5505)
- [Marco Vidal](https://orcid.org/0000-0002-9363-4971)
Expand Down
4 changes: 4 additions & 0 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2637,6 +2637,7 @@
"description": "Request succeeded. Info about a workflow, including the status is returned.",
"examples": {
"application/json": {
"live_logs_enabled": true,
"logs": "<Workflow engine log output>",
"user": "00000000-0000-0000-0000-000000000000",
"workflow_id": "256b25f4-4cfb-4684-b7a8-73872ef455a1",
Expand All @@ -2645,6 +2646,9 @@
},
"schema": {
"properties": {
"live_logs_enabled": {
"type": "boolean"
},
"logs": {
"type": "string"
},
Expand Down
5 changes: 4 additions & 1 deletion reana_server/rest/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,13 +883,16 @@ def get_workflow_logs(workflow_id_or_name, user, **kwargs): # noqa
type: string
user:
type: string
live_logs_enabled:
type: boolean
examples:
application/json:
{
"workflow_id": "256b25f4-4cfb-4684-b7a8-73872ef455a1",
"workflow_name": "mytest.1",
"logs": "<Workflow engine log output>",
"user": "00000000-0000-0000-0000-000000000000"
"user": "00000000-0000-0000-0000-000000000000",
"live_logs_enabled": true
}
400:
description: >-
Expand Down

0 comments on commit c4be985

Please sign in to comment.