From e5f487ae95cf3a05b3ae3884ec133d855e2d5494 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BB=B4=E5=9F=BA=E9=B1=BC?= Date: Mon, 9 Jun 2025 17:21:44 +0800 Subject: [PATCH] =?UTF-8?q?opt:=20=E8=AE=BE=E7=BD=AEKubeRay=20demo?= =?UTF-8?q?=E8=AE=AD=E7=BB=83=E8=84=9A=E6=9C=AC=E6=89=A7=E8=A1=8C=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/kuberay/workspace/train.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/kuberay/workspace/train.yaml b/plugins/kuberay/workspace/train.yaml index 793e2b3..a60cd9c 100644 --- a/plugins/kuberay/workspace/train.yaml +++ b/plugins/kuberay/workspace/train.yaml @@ -104,9 +104,7 @@ - name: Execute training script shell: | kubectl exec -n {{ namespace }} {{ head_pod_name }} -- \ - python -u /tmp/{{ script_with_vars_name }} - args: - executable: /bin/bash + bash -c "timeout 600s python -u /tmp/{{ script_with_vars_name }}" register: training_output changed_when: false -- Gitee