Skip to content

Commit

Permalink
rest: add run_stopped_at to status endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe-steduto committed Jul 18, 2023
1 parent c459270 commit 8f85cc9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Changes
Version 0.9.1 (UNRELEASED)
--------------------------

- Changes OpenAPI specification to include the ``run_stopped_at`` property in the ``progress`` value returned by the ``status`` endpoint.
- Changes OpenAPI specification with respect to return the maximum inactivity time before automatic closure of interactive sessions in ``info`` endpoint.
- Adds the content of the ``REANA_GITLAB_HOST`` environment variable to the list of GitLab instances from which it is possible to launch a workflow.
- Adds new ``prune_workspace`` endpoint to allow users to delete all the files of a workflow, specifying whether to also delete the inputs and/or the outputs.
Expand Down
8 changes: 8 additions & 0 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,10 @@
"type": "string",
"x-nullable": true
},
"run_stopped_at": {
"type": "string",
"x-nullable": true
},
"running": {
"properties": {
"job_ids": {
Expand Down Expand Up @@ -3448,6 +3452,10 @@
"type": "string",
"x-nullable": true
},
"run_stopped_at": {
"type": "string",
"x-nullable": true
},
"running": {
"properties": {
"job_ids": {
Expand Down
6 changes: 6 additions & 0 deletions reana_server/rest/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@ def get_workflows(user, **kwargs): # noqa
run_started_at:
type: string
x-nullable: true
run_stopped_at:
type: string
x-nullable: true
running:
properties:
job_ids:
Expand Down Expand Up @@ -986,6 +989,9 @@ def get_workflow_status(workflow_id_or_name, user): # noqa
run_finished_at:
type: string
x-nullable: true
run_stopped_at:
type: string
x-nullable: true
total:
type: object
properties:
Expand Down

0 comments on commit 8f85cc9

Please sign in to comment.