Skip to content

Commit 9a422b5

Browse files
Ignore Runtime error
1 parent fcc8fc7 commit 9a422b5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/odh/resources/mnist_ray_mini.ipynb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,13 @@
189189
"finished = False\n",
190190
"while not finished:\n",
191191
" sleep(1)\n",
192-
" status = client.get_job_status(submission_id)\n",
192+
" try:\n",
193+
" status = client.get_job_status(submission_id)\n",
194+
" except RuntimeError:\n",
195+
" # At times, the ray dashboard displays a \"RuntimeError: Request failed with status code 504: <html><body><h1>504 Gateway Time-out</h1>\" \n",
196+
" # message, leading to a crashloopback error in the notebook pod. However, the ray job continues running and disregards the error. \n",
197+
" # Consider eliminating the try-except block when using the updated version of Ray 2.38.\n",
198+
" pass\n",
193199
" finished = (status == \"SUCCEEDED\")\n",
194200
"if finished:\n",
195201
" print(\"Job completed Successfully !\")\n",

0 commit comments

Comments
 (0)