Skip to content

jobs --status stops iterating if one job has bad data #711

@cpaelzer

Description

@cpaelzer

Somehow friday two weeks ago something in the computing center happened and that broken the ongoing job.
The next week @boukeas was so kind to restart the agent which made it working again.
But I've found that, due to that, the job has bad data - and that breaks my testflinger-cli jobs runs.

015aa8e5-d609-4946-9284-d938e74264e1 is the bad job

If you process it alone you'll get

testflinger-cli status 015aa8e5-d609-4946-9284-d938e74264e1
No data found for that job id. Check the job id to be sure it is correct

ok so far, but it breaks listing all my jobs if I use --status

Without --status I see all recent ones:

testflinger-cli jobs
Job ID                                         Submission Time  Queue
-------------------------------------------------------------------------------
4866c3a9-3871-4d34-9629-7ec00b99a255           Fri May 23 05:59 horsea
5d5d7db2-0031-410f-bbd1-f26c97d2e5b2           Fri May 23 07:20 horsea
b85034e5-07ac-45b1-bd6d-d60d65309201           Fri May 23 12:27 horsea
015aa8e5-d609-4946-9284-d938e74264e1           Fri May 23 15:35 horsea
e9a1c972-6443-425c-b134-7b4c80bbc863           Fri Jun 13 06:31 horsea

But with --status the iteration breaks at the bad job, so I'd in this case be unable to see the current e9a1c972-6443-425c-b134-7b4c80bbc863

testflinger-cli jobs --status
Job ID                               Status    Submission Time  Queue
-------------------------------------------------------------------------------
4866c3a9-3871-4d34-9629-7ec00b99a255 cancelled Fri May 23 05:59 horsea
5d5d7db2-0031-410f-bbd1-f26c97d2e5b2 complete  Fri May 23 07:20 horsea
b85034e5-07ac-45b1-bd6d-d60d65309201 complete  Fri May 23 12:27 horsea
No data found for that job id. Check the job id to be sure it is correct

What I'd expect would be something like

testflinger-cli jobs --status
Job ID                               Status    Submission Time  Queue
-------------------------------------------------------------------------------
4866c3a9-3871-4d34-9629-7ec00b99a255 cancelled Fri May 23 05:59 horsea
5d5d7db2-0031-410f-bbd1-f26c97d2e5b2 complete  Fri May 23 07:20 horsea
b85034e5-07ac-45b1-bd6d-d60d65309201 complete  Fri May 23 12:27 horsea
015aa8e5-d609-4946-9284-d938e74264e1 bad data  Fri May 23 15:35 horsea
e9a1c972-6443-425c-b134-7b4c80bbc863 provision Fri Jun 13 06:31 horsea

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions