Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/openplotva-app/src/image_jobs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ pub const AIFARM_DRAW_API_H3VIDEO_ENDPOINT_NAME: &str = "h3video_generate";
pub const AIFARM_DRAW_API_DEFAULT_BASE_URL: &str = "http://127.0.0.1:50051";
pub const AIFARM_DRAW_API_DEFAULT_TIMEOUT: StdDuration = StdDuration::from_secs(5 * 60);
pub const AIFARM_DRAW_API_DEFAULT_POLL_INTERVAL: StdDuration = StdDuration::from_secs(1);
/// Farm deadline of one clip. A ten-second video renders in up to 140 s at 4 steps, after
/// draw-api has waited up to 240 s for the GPU, and then crosses the slow farm link.
pub const AIFARM_DRAW_API_VIDEO_TIMEOUT: StdDuration = StdDuration::from_secs(7 * 60);
/// How long the farm may hold a draw submit for a free slot before answering
/// 429 instead of queueing it. draw-api runs one job at a time, so a queued job
/// abandoned by our inference watchdog would still burn the slot later; waiting
Expand Down
1 change: 1 addition & 0 deletions crates/openplotva-app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4438,6 +4438,7 @@ async fn start_runtime_workers(
image_jobs::AifarmDrawApiConfig {
endpoint_name: image_jobs::AIFARM_DRAW_API_FASTFRAMES_ENDPOINT_NAME
.to_owned(),
timeout: image_jobs::AIFARM_DRAW_API_VIDEO_TIMEOUT,
..image_jobs::aifarm_draw_api_config_from_app_config(config)
},
),
Expand Down
Loading