Skip to content

Give a video seven minutes on the farm - #318

Merged
iamwavecut merged 1 commit into
mainfrom
fix/video-farm-deadline
Dec 3, 2026
Merged

iamwavecut merged 1 commit into
mainfrom
fix/video-farm-deadline

Conversation

@iamwavecut

Copy link
Copy Markdown
Owner

Summary

After #317 a video with sound is ten seconds long. Farm measurements on GPU1 at 480p and 243 frames:

  • 2 steps: 60–77 s; 4 steps: 107–139 s.
  • Before rendering, draw-api waits up to 240 s for the GPU lease when GPU1 is busy.
  • The 2–3 MB clip then crosses the slow farm link.

In the worst case this takes about 350 s at 2 steps and 410 s at 4 steps. The shared five-minute draw deadline (AIFARM_DRAW_API_DEFAULT_TIMEOUT) would abandon such a clip while it is still rendering. Video jobs now use AIFARM_DRAW_API_VIDEO_TIMEOUT = 7 min. This value sets both the bot's inference deadline and the Discovery invocation timeout_ms. The farm's own limits stay above it: the draw-api job timeout is 480 s and the Discovery endpoint timeout is 600 s. Image jobs keep five minutes.

Checks

  • cargo fmt --all
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test -p openplotva-app: 1500 passed

A ten-second clip renders in up to 140 s at 4 steps, and draw-api may first
wait up to 240 s for the GPU, so the shared five-minute draw deadline gave up
on clips that were still rendering.
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Messages
📖 Danger checked 2 changed file(s).

Generated by 🚫 dangerJS against 25be04c

@iamwavecut
iamwavecut merged commit c2b4821 into main Dec 3, 2026
10 of 12 checks passed
@iamwavecut
iamwavecut deleted the fix/video-farm-deadline branch December 3, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant