You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[monarch] monarch.actor.configure, configure default transport anywhere, wire up v1 controllers
This diff does a few things:
- Introduce the `monarch.actor.configure` public API, which just wraps `monarch._rust_bindings.monarch_hyperactor.config.configure` function
- Update the behavior of `global_root_client()` so that the client proc/instance are re-initialized whenever the default transport changes.
- Supporting this also required updating `monarch.actor.context()` to allow overriding the current value of the `_context` contextvar if it is called from the root client and the default transport changed. It also requires forcibly respawning the `_controller_controller` when this happens.
- Make sure we pass `_attach_controller_controller=True` when a spawning a proc mesh from v1 `HostMesh`
- Fix the v1 implementation of `get_or_spawn_controller`
Differential Revision: [D84015780](https://our.internmc.facebook.com/intern/diff/D84015780/)
**NOTE FOR REVIEWERS**: This PR has internal Meta-specific changes or comments, please review them on [Phabricator](https://our.internmc.facebook.com/intern/diff/D84015780/)!
ghstack-source-id: 314421176
Pull Request resolved: #1446
0 commit comments