From e9d277c4fbc0a40130ce3e46de415befac442c06 Mon Sep 17 00:00:00 2001 From: Jason L Weirather Date: Sat, 7 Sep 2024 17:24:42 -0400 Subject: [PATCH 1/3] Fix hang issue in comfy-cli --- comfy_cli/command/launch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comfy_cli/command/launch.py b/comfy_cli/command/launch.py index 5d563c12..83f3238b 100644 --- a/comfy_cli/command/launch.py +++ b/comfy_cli/command/launch.py @@ -15,7 +15,7 @@ from comfy_cli import constants, utils from comfy_cli.config_manager import ConfigManager from comfy_cli.env_checker import check_comfy_server_running -from comfy_cli.update import check_for_updates +#from comfy_cli.update import check_for_updates from comfy_cli.workspace_manager import WorkspaceManager, WorkspaceType workspace_manager = WorkspaceManager() @@ -108,7 +108,7 @@ def launch( background: bool = False, extra: list[str] | None = None, ): - check_for_updates() + #check_for_updates() resolved_workspace = workspace_manager.workspace_path if not resolved_workspace: From 7b4982d3ad81252287e96ed3aed1ca11c3fcd3dd Mon Sep 17 00:00:00 2001 From: Jason L Weirather Date: Sun, 8 Sep 2024 03:10:37 -0400 Subject: [PATCH 2/3] remove checks for updates when not updating --- comfy_cli/cmdline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/comfy_cli/cmdline.py b/comfy_cli/cmdline.py index 28b619cb..44d85069 100644 --- a/comfy_cli/cmdline.py +++ b/comfy_cli/cmdline.py @@ -20,7 +20,7 @@ from comfy_cli.constants import GPU_OPTION, CUDAVersion from comfy_cli.env_checker import EnvChecker from comfy_cli.standalone import StandalonePython -from comfy_cli.update import check_for_updates +#from comfy_cli.update import check_for_updates from comfy_cli.workspace_manager import WorkspaceManager, check_comfy_repo logging.setup_logging() @@ -222,7 +222,7 @@ def install( ), ] = False, ): - check_for_updates() + #check_for_updates() checker = EnvChecker() comfy_path, _ = workspace_manager.get_workspace_path() @@ -496,7 +496,7 @@ def which(): @app.command(help="Print out current environment variables.") @tracking.track_command() def env(): - check_for_updates() + #check_for_updates() _env_checker = EnvChecker() table = _env_checker.fill_print_table() workspace_manager.fill_print_table(table) From 47164c21a124aabcc4d25bb74c9235c01b1999ad Mon Sep 17 00:00:00 2001 From: Jason L Weirather Date: Sun, 8 Sep 2024 03:44:17 -0400 Subject: [PATCH 3/3] these changes were necessary to function offline --- comfy_cli/cmdline.py | 3 --- comfy_cli/command/launch.py | 2 -- 2 files changed, 5 deletions(-) diff --git a/comfy_cli/cmdline.py b/comfy_cli/cmdline.py index 44d85069..ae0489c8 100644 --- a/comfy_cli/cmdline.py +++ b/comfy_cli/cmdline.py @@ -20,7 +20,6 @@ from comfy_cli.constants import GPU_OPTION, CUDAVersion from comfy_cli.env_checker import EnvChecker from comfy_cli.standalone import StandalonePython -#from comfy_cli.update import check_for_updates from comfy_cli.workspace_manager import WorkspaceManager, check_comfy_repo logging.setup_logging() @@ -222,7 +221,6 @@ def install( ), ] = False, ): - #check_for_updates() checker = EnvChecker() comfy_path, _ = workspace_manager.get_workspace_path() @@ -496,7 +494,6 @@ def which(): @app.command(help="Print out current environment variables.") @tracking.track_command() def env(): - #check_for_updates() _env_checker = EnvChecker() table = _env_checker.fill_print_table() workspace_manager.fill_print_table(table) diff --git a/comfy_cli/command/launch.py b/comfy_cli/command/launch.py index 83f3238b..3626e7a6 100644 --- a/comfy_cli/command/launch.py +++ b/comfy_cli/command/launch.py @@ -15,7 +15,6 @@ from comfy_cli import constants, utils from comfy_cli.config_manager import ConfigManager from comfy_cli.env_checker import check_comfy_server_running -#from comfy_cli.update import check_for_updates from comfy_cli.workspace_manager import WorkspaceManager, WorkspaceType workspace_manager = WorkspaceManager() @@ -108,7 +107,6 @@ def launch( background: bool = False, extra: list[str] | None = None, ): - #check_for_updates() resolved_workspace = workspace_manager.workspace_path if not resolved_workspace: