From c50f02c763d2c8939e68639138d1a203edde53a1 Mon Sep 17 00:00:00 2001 From: Deep Mehta Date: Tue, 3 Mar 2026 15:13:06 -0800 Subject: [PATCH] fix: use _-prefixed imports in _notify_prompt_lifecycle The lifecycle notification method was importing the old non-prefixed names (has_cache_providers, get_cache_providers, logger) which no longer exist after the API cleanup. Co-Authored-By: Claude Opus 4.6 --- execution.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/execution.py b/execution.py index d222ad324..e5d1a4786 100644 --- a/execution.py +++ b/execution.py @@ -686,19 +686,19 @@ class PromptExecutor: def _notify_prompt_lifecycle(self, event: str, prompt_id: str): """Notify external cache providers of prompt lifecycle events.""" - from comfy_execution.cache_provider import has_cache_providers, get_cache_providers, logger + from comfy_execution.cache_provider import _has_cache_providers, _get_cache_providers, _logger - if not has_cache_providers(): + if not _has_cache_providers(): return - for provider in get_cache_providers(): + for provider in _get_cache_providers(): try: if event == "start": provider.on_prompt_start(prompt_id) elif event == "end": provider.on_prompt_end(prompt_id) except Exception as e: - logger.warning(f"Cache provider {provider.__class__.__name__} error on {event}: {e}") + _logger.warning(f"Cache provider {provider.__class__.__name__} error on {event}: {e}") def execute(self, prompt, prompt_id, extra_data={}, execute_outputs=[]): asyncio.run(self.execute_async(prompt, prompt_id, extra_data, execute_outputs))