[optimization] Increase Moonvalley polling timeout to 64 minutes

- Changed poll interval from 5s to 16s to reduce API calls
- Maintains 240 max attempts for 64 minute total timeout
- Helps prevent timeouts for slow Moonvalley video processing
This commit is contained in:
bymyself 2025-07-08 01:22:35 -07:00
parent 3a44b64eae
commit 2df2195c83

View File

@ -98,7 +98,8 @@ def poll_until_finished(
completed_statuses=[
"completed",
],
max_poll_attempts=240,
max_poll_attempts=240, # 64 minutes with 16s interval
poll_interval=16.0,
failed_statuses=["error"],
status_extractor=lambda response: (
response.status