Skip to content

Pods in non-Running phases always fail exec and force exit code 1 #33

Description

@cin

Found during review of #29.

The pod list is not filtered by phase. Pods in Succeeded/Pending/terminating states matching the label selector (e.g. completed Job pods) will always fail exec, and since #29 introduced non-zero exit when any pod fails, they now flip the exit code to 1 even when every runnable pod succeeded.

Suggested fix

Filter the listed pods to Running phase (optionally with a note/warning for skipped pods), or document the behavior in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions