Closed jason-weirather closed 2 months ago
Can we change the check_for_update function to fail gracefully instead?
Can we change the check_for_update function to fail gracefully instead?
I think thats a reasonable solution if its very fast to fail gracefully. Otherwise we will have every command hanging for seconds while it waits trying to have a conversation with the pypi servers, and that would reduce performance in some deployments.
I've submitted a new PR following @robinjhuang suggestion to add a timeout and fail quietly.
Checking the version of comfy-cli in commands where internet-access is not necessary, such as
comfy launch
andcomfy env
causes comfy-cli to hang in a docker container (or offline) environment.I opened an issue to describe this https://github.com/Comfy-Org/comfy-cli/issues/175
This PR removes just those calls to
check_for_updates()
that ping pypi each time acomfy launch
is run or acomfy env
is checked where offline operation can otherwise work perfectly.