Skip to content

Commit 5bb87b7

Browse files
jlemeshtiborsimko
authored andcommitted
feat(rest): add live_logs_enabled property in logs output (#705)
1 parent 50495fc commit 5bb87b7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/openapi.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2637,6 +2637,7 @@
26372637
"description": "Request succeeded. Info about a workflow, including the status is returned.",
26382638
"examples": {
26392639
"application/json": {
2640+
"live_logs_enabled": true,
26402641
"logs": "<Workflow engine log output>",
26412642
"user": "00000000-0000-0000-0000-000000000000",
26422643
"workflow_id": "256b25f4-4cfb-4684-b7a8-73872ef455a1",
@@ -2645,6 +2646,9 @@
26452646
},
26462647
"schema": {
26472648
"properties": {
2649+
"live_logs_enabled": {
2650+
"type": "boolean"
2651+
},
26482652
"logs": {
26492653
"type": "string"
26502654
},

reana_server/rest/workflows.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,13 +883,16 @@ def get_workflow_logs(workflow_id_or_name, user, **kwargs): # noqa
883883
type: string
884884
user:
885885
type: string
886+
live_logs_enabled:
887+
type: boolean
886888
examples:
887889
application/json:
888890
{
889891
"workflow_id": "256b25f4-4cfb-4684-b7a8-73872ef455a1",
890892
"workflow_name": "mytest.1",
891893
"logs": "<Workflow engine log output>",
892-
"user": "00000000-0000-0000-0000-000000000000"
894+
"user": "00000000-0000-0000-0000-000000000000",
895+
"live_logs_enabled": true
893896
}
894897
400:
895898
description: >-

0 commit comments

Comments
 (0)