fix: clear timer node cache before generation

This commit is contained in:
LuqP2
2026-01-06 23:28:04 -03:00
parent cccbd08dd7
commit b600fd17ef
+8
View File
@@ -39,6 +39,14 @@ class MetaHubTimerNode:
DESCRIPTION = "Measures workflow execution time for MetaHub Save Node"
OUTPUT_NODE = False
@classmethod
def IS_CHANGED(cls, **kwargs):
"""
Force this node to ALWAYS re-execute, never use cached results.
This is critical because we need a fresh timestamp for every generation.
"""
return float("nan") # NaN forces ComfyUI to always re-execute
def measure_time(self, clip=None, image=None, latent=None, conditioning=None):
"""
Records the current timestamp when this node executes.