Skip to content

get_job_logs silently returns empty iterator when no pod is found #317

@kevo-1

Description

@kevo-1

When no pod is found for the requested step, the generator silently returns. The caller gets an empty iterator with no way to distinguish "job produced no logs" from "pod was never found."

if pod_name is None:
    return
File affected Line
kubernetes/backend.py line: 443
optimizer/backends/kubernetes/backend.py line: 245

Same behavior appears in both files above

Was this behavior intended or should it raise an error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions