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 Aug 8, 2023
1 parent fa056f4 commit b848c11
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 @@ -5,6 +5,7 @@ Version 0.9.1 (UNRELEASED)
--------------------------

- Changes OpenAPI specification with respect to return the maximum inactivity time before automatic closure of interactive sessions in ``info`` endpoint.
- Adds the timestamp of when the workflow was stopped (``run_stopped_at``) to the workflow list and the workflow status endpoints.
- 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.
- Adds ``interactive-session-cleanup`` command that can be used by REANA administrators to close interactive sessions that are inactive for more than the specified number of days.
Expand Down
8 changes: 8 additions & 0 deletions docs/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1427,6 +1427,10 @@
"type": "string",
"x-nullable": true
},
"run_stopped_at": {
"type": "string",
"x-nullable": true
},
"running": {
"properties": {
"job_ids": {
Expand Down Expand Up @@ -3446,6 +3450,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 b848c11

Please sign in to comment.