Irritating error on spawn with an instance already running #2551
Labels
😤 annoying
Something in the UI / SDK is annoying to use
🐍 Python API
Python logging API
user-request
This is a pressing issue for one of our users
Milestone
Currently initializing with
spawn=True
will try to spawn a Rerun viewer but fail with this error message if one is already running on the same port:.. and then silently connect to the existing one.
We should instead have two clearly defined options:
force_spawn
: Fail spawning if a viewer is already running on that portconnect_or_spawn
: Connect if a viewer is already running, otherwise spawn a new oneI'm suggesting to deprecate
spawn
and have it point toconnect_or_spawn
instead.The text was updated successfully, but these errors were encountered: