Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Jobs] Check if runtime env config is None before using it as dict (#…
…44742) Followup to #44405 runtime_env fields can be reset to None at runtime, which causes the following error: 2024-04-15 13:04:56,871 WARNING job_manager.py:1009 -- Failed to start supervisor actor for job raysubmit_UTb99vaR1DmJ9rkw: ''NoneType' object does not support item assignment'. Full traceback: Traceback (most recent call last): File "/home/ray/anaconda3/lib/python3.10/site-packages/ray/dashboard/modules/job/job_manager.py", line 989, in submit_job runtime_env=self._get_supervisor_runtime_env( File "/home/ray/anaconda3/lib/python3.10/site-packages/ray/dashboard/modules/job/job_manager.py", line 818, in _get_supervisor_runtime_env config["log_files"] = [self._log_client.get_log_file_path(submission_id)] TypeError: 'NoneType' object does not support item assignment This PR explicitly checks for None before using config as a dict, fixing the above error. It also includes the full traceback in the error log to make this kind of error easier to debug in the future. --------- Signed-off-by: Archit Kulkarni <[email protected]>
- Loading branch information