kubeflow/sdk

[SDK] Get the correct TrainJob components using `get_job()` API

Open

#25 建立於 2024年12月11日

在 GitHub 查看
 (26 留言) (1 反應) (3 負責人)Python (196 fork)auto 404
good first issuehelp wantedkind/feature

倉庫指標

Star
 (124 star)
PR 合併指標
 (PR 指標待抓取)

描述

What you would like to be added?

As we discussed, currently get_job() API can return multiple Pods for every TrainJob component, like initializer or trainer-node-0: https://github.com/kubeflow/training-operator/pull/2324#discussion_r1860773473. That can happen when Pods are re-created based on Batch/Job restart policies. Therefore, users can see unexpected logs while using the Kubeflow Training SDK.

We should improve this API to show the correct TrainJob components to users. For example, when we list all of the Pods, we can select the most recently created Pod with the same role (e.g. dataset-initializer).

Love this feature?

Give it a 👍 We prioritize the features with most 👍

貢獻者指南