Skip to content

cli: duration of stopped workflows is not displayed correctly #699

Closed
@giuseppe-steduto

Description

Similarly to what was happening in reanahub/reana-ui#386, when running reana-client status --include-duration for a stopped workflow, the displayed duration is not the time between the moment in which the run was started and the moment in which the run was stopped, but the total time passed from the beginning of the run until the current moment.

reana-client status -w recast --include-duration --json | jq '.[0].status'
"stopped"reana-client status -w recast --include-duration --json | jq '.[0].duration'
2598
# After a few seconds...reana-client status -w recast --include-duration --json | jq '.[0].duration'
2604

This is very likely because in reana_client.utils.get_workflow_duration we only look at run_finished_at, but not at run_stopped_at.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions