Skip to content

Commit c4be985

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

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The list of contributors in alphabetical order:
1414
- [Giuseppe Steduto](https://orcid.org/0009-0002-1258-8553)
1515
- [Harri Hirvonsalo](https://orcid.org/0000-0002-5503-510X)
1616
- [Jan Okraska](https://orcid.org/0000-0002-1416-3244)
17+
- [Jelizaveta Lemeševa](https://orcid.org/0009-0003-6606-9270)
1718
- [Leticia Wanderley](https://orcid.org/0000-0003-4649-6630)
1819
- [Marco Donadoni](https://orcid.org/0000-0003-2922-5505)
1920
- [Marco Vidal](https://orcid.org/0000-0002-9363-4971)

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)