Skip to content

OTV: Handle transition feedback #654

@ao-david

Description

@ao-david

It is possible to get a redundant transition error from the youtube API, which we currently ignore, retry a few times, and then fail. We should handle the response from the API better so that the transitions can be more robust.

see example failure:

2025/11/20 12:57:20 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) status ready reached, breaking...
2025/11/20 12:57:20 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) waiting for active status...
2025/11/20 12:57:36 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) status active reached, breaking...
2025/11/20 12:57:36 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) ID: xfs9h2rgAtI, requesting transition to testing status...
2025/11/20 12:57:36 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) transition to testing for xfs9h2rgAtI failed on attempt 0 with error: googleapi: Error 403: Redundant transition, redundantTransition
2025/11/20 12:57:41 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) ID: xfs9h2rgAtI, requesting transition to testing status...
2025/11/20 12:57:42 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) transition to testing for xfs9h2rgAtI failed on attempt 1 with error: googleapi: Error 403: Redundant transition, redundantTransition
2025/11/20 12:57:47 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) ID: xfs9h2rgAtI, requesting transition to testing status...
2025/11/20 12:57:47 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) transition to testing for xfs9h2rgAtI failed on attempt 2 with error: googleapi: Error 403: Redundant transition, redundantTransition
2025/11/20 12:57:52 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) failed to start broadcast: could not start broadcast: broadcast: Pt Noarlunga Test Broadcast, ID: xfs9h2rgAtI, could not do status actions: failed to go live, could not perform status action: 2: could not transition to testing, max tries exceeded: googleapi: Error 403: Redundant transition, redundantTransition
2025/11/20 12:57:53 (name: Pt Noarlunga Test Broadcast, id: xfs9h2rgAtI) publishing event: startFailedEvent

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium priorityenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions