Repository navigation
[bugfix] provider: treat a failed vLLM video poll with HTTP 400 as terminal - #452
Open
HowardYangAI wants to merge 1 commit into
Open
HowardYangAI wants to merge 1 commit into
HowardYangAI wants to merge 1 commit into
Conversation
…rminal vLLM-Omni returns a failed Video object with HTTP 400 when a request is rejected after it was accepted (for example, MiniMax-H3 input errors). Terminal evidence was only accepted for HTTP 200, or HTTP 500 with the queried job's identity, so a 400 left providerStatus empty. The job was then stored as recovery=remote with resumeAllowed=true, which blocks switching the node's history versions. Accept HTTP 400 under the same identity check as HTTP 500: object=video and the id must match the polled job.
HowardYangAI
requested review from
hsliuustc0106 and
princepride
as code owners
November 22, 2026 12:09
This was referenced Nov 23, 2026
This branch has not been deployed
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.
Summary
object=videoandidmust match the polled job. A shared_VIDEO_FAILURE_STATUSESconstant keeps the two checks in sync.Linked issue
Test plan
pytest tests/test_self_hosted_queue.py, 27 passed. The new 400 + matching-id case fails on currentmainand passes with this change.check:i18n(no copy changed).Evidence that it works
recovery=retry,resumeAllowed=false,providerStatus=failed, and switching back to an older version succeeded twice. Before the fix the same failure was stored asrecovery=remote,resumeAllowed=trueand blocked the switch.Provider verification
aspect_ratio([bug] vLLM-Omni H3: text-to-video with a ratio selected always returns 400 #447, fixed separately in [bugfix] provider: always send aspect_ratio for vLLM-Omni H3 text-to-video #448). Other providers were not tested; their poll paths do not match/videos/{id}with a Video object, so they are unaffected.Limits: jobs already stored with
resumeAllowed=trueare not rewritten, so nodes with old failures stay blocked. The cancel path still storesresumeAllowed=trueafter a confirmed cancel; that is asserted bytest_interrupted_remote_video_can_be_cancelled_without_resubmission, so I left it out of this PR.Bilingual UI