File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,7 @@ def is_same_cloud(self, other):
77
77
return isinstance (other , Azure )
78
78
79
79
@classmethod
80
- def get_default_instance_type (cls ,
81
- accelerators : Optional [Dict [str , int ]] = None
82
- ) -> str :
83
- del accelerators
80
+ def get_default_instance_type (cls ) -> str :
84
81
# 8 vCpus, 32 GB RAM. Prev-gen (as of 2021) general purpose.
85
82
return 'Standard_D8_v4'
86
83
Original file line number Diff line number Diff line change @@ -149,9 +149,7 @@ def get_accelerators_from_instance_type(
149
149
raise NotImplementedError
150
150
151
151
@classmethod
152
- def get_default_instance_type (cls ,
153
- accelerators : Optional [Dict [str , int ]] = None
154
- ) -> str :
152
+ def get_default_instance_type (cls ) -> str :
155
153
raise NotImplementedError
156
154
157
155
@classmethod
Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ def patch() -> None:
66
66
from ray .dashboard .modules .job import cli
67
67
_run_patch (cli .__file__ , _to_absolute ('cli.py.patch' ))
68
68
69
+ from ray .dashboard .modules .job import job_manager
70
+ _run_patch (job_manager .__file__ , _to_absolute ('job_manager.py.patch' ))
71
+
69
72
from ray .autoscaler ._private import autoscaler
70
73
_run_patch (autoscaler .__file__ , _to_absolute ('autoscaler.py.patch' ))
71
74
Original file line number Diff line number Diff line change
1
+ 0a1,4
2
+ > # Adapted from https://github.com/ray-project/ray/blob/ray-1.13.0/dashboard/modules/job/job_manager.py
3
+ > # Fixed the problem where the _monitor_job thread is leaked, due to `await job_supervisor.ping.remote()`
4
+ > # does not raise an exception after the job_supervisor is exited, causing the dashboard to hang.
5
+ >
6
+ 334c338
7
+ < await job_supervisor.ping.remote()
8
+ ---
9
+ > ray.get(job_supervisor.ping.remote())
You can’t perform that action at this time.
0 commit comments