reanahub / reana-client

REANA command-line client
http://reana-client.readthedocs.io/
MIT License
10 stars 45 forks source link

cli: fix status reporting for failed workflows #646

Closed tiborsimko closed 1 year ago

tiborsimko commented 1 year ago

Seen with reana-client 0.9.0a8 latest pre-production version, for a failed workflow:

$ reana-client status -w helloworld-snakemake-slurmcern
==> ERROR: Cannot retrieve the status of a workflow helloworld-snakemake-slurmcern:
None is not of type 'string'

Failed validating 'type' in schema['properties']['progress']['properties']['failed']['properties']['job_ids']['items']:
    {'type': 'string'}

On instance['progress']['failed']['job_ids'][0]:
    None

Ditto for other client commands such as list --include-progress or list --verbose.

The old stable reana-client version 0.8.0 or the new Go client behave OK in this situation.