Commit d02f41b
committed
[feat] Support cross-job actor discovery via explicit namespace
When multiple Ray Jobs share the same Ray cluster, Named Actors are
isolated by namespace. Without an explicit namespace, a TQ Controller
created by one job is invisible to workers in another job.
This commit adds namespace="transfer_queue" to both:
- ray.get_actor() in _init_from_existing()
- TransferQueueController.options() in init()
This ensures that the TQ Controller is always registered and discovered
in the fixed "transfer_queue" namespace, enabling cross-job TQ sharing
(e.g., a teacher server job creates TQ, and a trainer job connects to it).
This change is backward-compatible: single-job usage is unaffected since
the namespace is consistent between creation and discovery.1 parent 9aefd26 commit d02f41b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments