dgxcloud: cancel() uses GET on the distributed suspend endpoint, and single-node ray jobs are polled under /workloads/trainings
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- ai-infra-agents, api
調査の方向性
Start in nemo_run/core/execution/dgxcloud.py, comparing cancel() with status(), which already chooses trainings or distributed from nodes. Then check DGXCloudRayJob in nemo_run/run/ray/dgxcloud.py, where start() creates a distributed workload that the polling and cancel paths may read from trainings. Done means both paths use the collection the workload was created in, and a mocked-HTTP test confirms it. A fix is already open as PR #705, so check that before starting.
索引モデルが issue の本文から書いたものです。
説明
describe the bug
DGXCloudExecutor talks to the run:ai workloads api on the wrong endpoint in two places:
cancel()sends aGETto/workloads/distributed/{id}/suspendfor every job. run:ai only exposes suspend as aPOST(POST /api/v1/workloads/trainings/{workloadId}/suspendandPOST /api/v1/workloads/distributed/{workloadId}/suspend), andcreate_training_job()submits single-node jobs to/workloads/trainings, so cancelling a single-node job hits an endpoint that does not know the workload.status()already pickstrainingsvsdistributedfromnodes;cancel()does not.DGXCloudRayJob.start()always creates a/workloads/distributedworkload, even withnodes=1, butstatus(),wait(),stop()andlogs()go throughexecutor.status()/executor.cancel(), which infertrainingsfor a single node.status()treats the resulting non-200 as transient and returnsNone, sowait()never sees a terminal phase and polls forever, andstop()cannot suspend the job.
steps to reproduce (cpu only, mocked http)
from unittest.mock import MagicMock, patch
from nemo_run.core.execution.dgxcloud import DGXCloudExecutor
from nemo_run.run.ray.dgxcloud import DGXCloudRayJob
ex = DGXCloudExecutor(
base_url="https://dgx.example.com/api/v1", kube_apiserver_url="https://k8s",
client_id="a", client_secret="b", project_name="p",
container_image="img", pvc_nemo_run_dir="/workspace/nemo_run", nodes=1,
)
with patch.object(DGXCloudExecutor, "get_auth_token", return_value="t"), \
patch("requests.get", return_value=MagicMock(status_code=404)) as get:
ex.cancel("job123")
print(get.call_args.args[0])
# GET .../workloads/distributed/job123/suspend (job was created under /workloads/trainings)
DGXCloudRayJob(name="r", executor=ex, workload_id="wl1").status(display=False)
print(get.call_args.args[0])
# .../workloads/trainings/wl1, but the ray job was created under /workloads/distributed
expected behavior
cancel() posts to the suspend endpoint of the collection the workload was created in, and the ray job polls, streams and cancels its workload under /workloads/distributed regardless of node count.
i have a small fix with tests ready and will open a pr.
- 主要言語
- Python
- スター
- 268
- フォーク
- 121
- 平均マージ
- 3時間 42分
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NVIDIA-NeMo/Run のほかの issue
-
community-request
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NVIDIA-NeMo/Run#727 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
NVIDIA-NeMo/Run#678 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
NVIDIA-NeMo/Run#665 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
NVIDIA-NeMo/Run#659 ·
メンテナーはふだん 1 日以内に返信
-
Dependency Dashboardオープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
NVIDIA-NeMo/Run#594 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
NVIDIA-NeMo/Run の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
hermes hooks doctor smoke test never checks the hook exit code — a crashing hook (exit=1) renders ✓ "ran clean" and "All shell hooks look healthy"対応中かも @cestercian が今日担当しました。 オープンcomp/cli P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#162259 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
AOSSIE-Org/PictoPy#1802 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
bot-triaged module: higher order operators module: pickle module: pt2-dispatcher oncall: pt2 triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
pytorch/pytorch#207247 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
backend: claude chore dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
briandconnelly/amicus#606 ·
メンテナーはふだん 1 日以内に返信