ENH: improve local cluster startup reliability via child-process readiness signaling #3642
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: (xinference) C:\Windows\System32>xinference-local --host 127.0.0.1 -p 9997
Traceback (most recent call last):
File "C:\tools\anaconda3\envs\xinference\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\tools\anaconda3\envs\xinference\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\tools\anaconda3\envs\xinference\Scripts\xinference-local.exe_main.py", line 7, in
sys.exit(local())
File "C:\tools\anaconda3\envs\xinference\lib\site-packages\click\core.py", line 1161, in call
return self.main(*args, **kwargs)
File "C:\tools\anaconda3\envs\xinference\lib\site-packages\click\core.py", line 1082, in main
rv = self.invoke(ctx)
File "C:\tools\anaconda3\envs\xinference\lib\site-packages\click\core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\tools\anaconda3\envs\xinference\lib\site-packages\click\core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "C:\tools\anaconda3\envs\xinference\lib\site-packages\xinference\deploy\cmdline.py", line 228, in local
start_local_cluster(
File "C:\tools\anaconda3\envs\xinference\lib\site-packages\xinference\deploy\cmdline.py", line 115, in start_local_cluster
main(
File "C:\tools\anaconda3\envs\xinference\lib\site-packages\xinference\deploy\local.py", line 123, in main
raise RuntimeError("Cluster is not available after multiple attempts")
RuntimeError: Cluster is not available after multiple attempts
2025-06-16 14:22:07,632 xinference.core.supervisor 11204 INFO Xinference supervisor 127.0.0.1:10591 started
2025-06-16 14:22:07,678 xinference.core.worker 11204 INFO Starting metrics export server at 127.0.0.1:None
2025-06-16 14:22:07,684 xinference.core.worker 11204 INFO Checking metrics export server...
2025-06-16 14:22:13,178 xinference.core.worker 11204 INFO Metrics server is started at: http://127.0.0.1:65388
2025-06-16 14:22:13,178 xinference.core.worker 11204 INFO Purge cache directory: C:\Users\hjpxm.xinference\cache
2025-06-16 14:22:13,178 xinference.core.worker 11204 INFO Connected to supervisor as a fresh worker
2025-06-16 14:22:13,210 xinference.core.worker 11204 INFO Xinference worker 127.0.0.1:10591 started