Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rest: add run_stopped_at to status endpoint #606

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading