From f6fbcf1840f56ddc7d95efbfcd4037161b981c55 Mon Sep 17 00:00:00 2001 From: bowtiedbluefin <95500901+bowtiedbluefin@users.noreply.github.com> Date: Sun, 9 Nov 2025 00:57:10 -0500 Subject: [PATCH] Update polling defaults: 5s interval, 20min max wait time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed defaults to user's preferences: - poll_interval: 10s → 5s (faster checking) - max_wait_time: 600s (10min) → 1200s (20min) - max_wait_time limit: 3600s → 7200s (allow up to 2 hours if needed) - poll_interval can now be set as low as 1s Updated QUICKSTART documentation to reflect new defaults. --- QUICKSTART.md | 22 +++++++++++----------- nodes/video_nodes.py | 10 +++++----- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/QUICKSTART.md b/QUICKSTART.md index 5929807..4883eb9 100644 --- a/QUICKSTART.md +++ b/QUICKSTART.md @@ -117,15 +117,15 @@ models: duration: 4 fps: 24 auto_poll: true - poll_interval: 10 - max_wait_time: 600 + poll_interval: 5 + max_wait_time: 1200 ``` 3. Execute → The node will automatically wait until video is ready! **Auto-Polling Feature** (enabled by default): - `auto_poll: true` → Node automatically checks video status every X seconds -- `poll_interval: 10` → Check every 10 seconds -- `max_wait_time: 600` → Give up after 10 minutes +- `poll_interval: 5` → Check every 5 seconds (default) +- `max_wait_time: 1200` → Give up after 20 minutes (default) - You'll see status updates in the console - Once completed, `video_url` output contains the download link - `video_id` output contains the generation ID (for manual retrieval if needed) @@ -151,7 +151,7 @@ models: **With Auto-Polling (Default - Recommended):** 1. Run "Generate Video" node with `auto_poll: true` -2. Node automatically waits and checks status every 10 seconds +2. Node automatically waits and checks status every 5 seconds 3. Watch the console for progress updates 4. When completed, `video_url` output has the download link 5. Connect `video_url` directly to "Save Video from URL" or preview nodes! @@ -160,12 +160,12 @@ models: ``` [INFO] Video generation started. ID: video_abc123 [INFO] Initial status: queued -[INFO] Auto-polling enabled. Will check every 10s (max 600s) -[INFO] Waiting 10s before checking status... -[INFO] Status check (10s elapsed): processing -[INFO] Waiting 10s before checking status... -[INFO] Status check (20s elapsed): completed -[SUCCESS] Video completed after 20s! +[INFO] Auto-polling enabled. Will check every 5s (max 1200s) +[INFO] Waiting 5s before checking status... +[INFO] Status check (5s elapsed): processing +[INFO] Waiting 5s before checking status... +[INFO] Status check (10s elapsed): completed +[SUCCESS] Video completed after 10s! [SUCCESS] Video URL: https://... ``` diff --git a/nodes/video_nodes.py b/nodes/video_nodes.py index 3466fe1..914cb5a 100644 --- a/nodes/video_nodes.py +++ b/nodes/video_nodes.py @@ -51,15 +51,15 @@ class VideoGenerationNode: "default": "true", }), "poll_interval": ("INT", { - "default": 10, - "min": 5, + "default": 5, + "min": 1, "max": 60, - "step": 5, + "step": 1, }), "max_wait_time": ("INT", { - "default": 600, + "default": 1200, "min": 60, - "max": 3600, + "max": 7200, "step": 60, }), },