Skip to content

Commit

Permalink
Update comfy_ui_delay_start.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 authored Jan 20, 2024
1 parent 4caee36 commit 6ac076c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comfy_ui_delay_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
class DelayStart:
def __init__(self):
self.lockfile = f"{os.environ['HOME']}/ComfyUIStartLock"
print(f"DelayStart: Put this node between Latent Image and KSampler, and create {self.lockfile} to delay start")

@classmethod
def INPUT_TYPES(s):
Expand All @@ -23,7 +24,7 @@ def execute(self, latent):
while os.path.isfile(self.lockfile):
print(f"DelayStart: Remove {self.lockfile} to start")
time.sleep(5)
print("DelayStart: Starting")
print(f"DelayStart: Lockfile {self.lockfile} does not exist, starting")
return (latent,)

NODE_CLASS_MAPPINGS = {
Expand Down

0 comments on commit 6ac076c

Please sign in to comment.