Skip to content

Commit

Permalink
Add 10 min timeout for websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
yoland68 committed Jul 18, 2024
1 parent 50a0609 commit f5818ad
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion action.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,16 @@ def main(args):
start_time = int(datetime.datetime.now().timestamp())
try:
result = subprocess.run(
["comfy", "--skip-prompt", "--no-enable-telemetry", "run", "--workflow", file_path],
[
"comfy",
"--skip-prompt",
"--no-enable-telemetry",
"run",
"--workflow",
file_path,
"--timeout",
600
],
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
Expand Down

0 comments on commit f5818ad

Please sign in to comment.