Commit 325ddbd
[Serve] Remove shutdown() method from TaskProcessorAdapter (ray-project#59713)
## Description
Fix @task_consumer decorator's __del__ method calling shutdown() which
broadcasts to all Celery workers instead of just the local one. This
kills newly started workers during rolling updates.
## Related issues
None
## Additional information
Removed self._adapter.shutdown() from __del__ - only stop_consumer()
should be called since it targets the specific worker hostname. Also
removed shutdown() implementation & from interface given it is not used
anywhere
---------
Signed-off-by: krisselberg <kselberg@princeton.edu>1 parent 69f6645 commit 325ddbd
File tree
4 files changed
+0
-17
lines changed- python/ray/serve
- tests/unit
4 files changed
+0
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1582 | 1582 | | |
1583 | 1583 | | |
1584 | 1584 | | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | 1585 | | |
1593 | 1586 | | |
1594 | 1587 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | 228 | | |
234 | 229 | | |
235 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 48 | | |
53 | 49 | | |
54 | 50 | | |
| |||
0 commit comments