Repository navigation
fix(bfl): raise the polling timeout to 10 minutes for 4k FLUX 3 jobs - #565
Merged
Merged
Conversation
BFL documents that FLUX 3 Image at 4k "can take several minutes", so the 120 s polling ceiling turned paid jobs into TimeoutError. The loop still returns as soon as a task is Ready; only a task that never finishes waits longer.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BFL image polling gave up after 120 s (
POLLING_TIMEOUTinproviders/bfl/images/config.py), so a FLUX 3 Image job at4kresolution could be billed and still end inTimeoutError. BFL's Technical Parameters guide says of4k: "The largest output. Generation can take several minutes". Its MCP guide adds that "4koutput can take several minutes" and "Large sets of images or complex edits also take longer than smaller generations". BFL documents no upper bound on job time.Fix:
src/celeste/providers/bfl/images/config.py:POLLING_TIMEOUTgoes from120.0to600.0(10 minutes).config.py(byteplus/videos,topazlabs/image,fal/queue,xai/videosMAX_POLLS * POLL_INTERVAL). The other long-running packages use 300 s. That would leave a "several minutes" 4k job right at the limit, so this uses 600 s.Ready. Only a task that never finishes waits longer, 10 minutes instead of 2, beforeTimeoutError.Overlap:
POLLING_TIMEOUT = 600.0 # 10 minutes timeout, inproviders/bfl/flux/config.py.providers/bfl/images/config.pyand moves the constant toflux/config.py. Rebasing refactor(bfl): name the wire package after the FLUX API and dispatch images by model family #524 on this PR hits a modify/delete conflict on that file. To resolve it, keep the deletion and carry600.0intoflux/config.py. feat(bfl): add flux-3-video to the videos catalog #521 already has that value there.Validation:
make cipasses: Ruff, format, mypy, Bandit, 744 unit tests.v1.0.0tag (fix(bfl): add match_input to the flux-3-image quality choices #548–fix(openai): remove the shut-down gpt-image-1 registration #553).