Skip to main content

wait_for_completion

Method
This is a method of the VideoAgent class in the video_agent module.
Wait for video generation to complete.

Signature

def wait_for_completion(video_id: str, poll_interval: Optional[int], max_wait_time: Optional[int]) -> Any

Parameters

video_id
str
required
The video ID to poll
poll_interval
Optional
Seconds between status checks (default: 10)
max_wait_time
Optional
Maximum wait time in seconds (default: 600)

Returns

Returns
Any
VideoObject with status “completed” or “failed”

Exceptions

If max_wait_time is exceeded