Skip to content

Commit

Permalink
Ignore Runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChughShilpa authored and openshift-merge-bot[bot] committed Dec 6, 2024
1 parent fcc8fc7 commit 9a422b5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/odh/resources/mnist_ray_mini.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,13 @@
"finished = False\n",
"while not finished:\n",
" sleep(1)\n",
" status = client.get_job_status(submission_id)\n",
" try:\n",
" status = client.get_job_status(submission_id)\n",
" except RuntimeError:\n",
" # At times, the ray dashboard displays a \"RuntimeError: Request failed with status code 504: <html><body><h1>504 Gateway Time-out</h1>\" \n",
" # message, leading to a crashloopback error in the notebook pod. However, the ray job continues running and disregards the error. \n",
" # Consider eliminating the try-except block when using the updated version of Ray 2.38.\n",
" pass\n",
" finished = (status == \"SUCCEEDED\")\n",
"if finished:\n",
" print(\"Job completed Successfully !\")\n",
Expand Down

0 comments on commit 9a422b5

Please sign in to comment.