Skip to content

feat: add asset progress optimizing to state enum - #102

Merged
jsanford8 merged 1 commit into
masterfrom
ml/progress-optimizing
Nov 20, 2026
Merged

jsanford8 merged 1 commit into
masterfrom
ml/progress-optimizing

Conversation

@marcrleonard

@marcrleonard marcrleonard commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Podcast assets (delivery_profile: hls_podcast) are getting a new asset progress state, optimizing, while Mux measures each rendition's bitrate before the asset goes ready. AssetProgress.state only allows ingesting, transcoding, completed, live and errored, so deserializing one of those assets would raise once the API starts returning it.

Hand-patched pending a regen, mirroring #100:

  • Add optimizing to AssetProgress.state allowed values
  • Update the state and progress descriptions to match the spec (muxinc/openapi-specification#673)
  • Bump to 5.3.0

optimizing only shows up for podcast assets once delayed ready is turned on, so this needs to ship before that. Context in #api-design: https://mux.slack.com/archives/C02CU2TUT1A/p1795036440136709

Example

import mux_python
mux_python.AssetProgress(state="optimizing", progress=72.22)
# before: ValueError: Invalid value for `state` (optimizing), must be one of ['ingesting', 'transcoding', 'completed', 'live', 'errored']
# after:  works

Suggested review order

  1. mux_python/models/asset_progress.py
  2. docs/AssetProgress.md
  3. Version bump: setup.py, gen/generator-config.json, mux_python/__init__.py, mux_python/api_client.py, mux_python/configuration.py

🤖 Generated with Claude Code


Note

Low Risk
Targeted OpenAPI model and documentation alignment with no auth or business-logic changes; main impact is avoiding deserialization failures on new API values.

Overview
This release adds optimizing to AssetProgress.state so API responses for podcast assets (hls_podcast) deserialize without client-side validation errors once Mux emits that state.

State and progress docs are updated to match the spec: for hls_podcast, transcoding maps to progress 0–50, and the new optimizing phase (extra delivery-profile work while status stays preparing) maps to 50–100. progress is documented as 0–100 for ingesting, transcoding, optimizing, and completed (still -1 for live / errored).

The SDK version is bumped from 5.2.0 to 5.3.0 in setup.py, generator config, __init__.py, API client User-Agent, and debug report strings.

Reviewed by Cursor Bugbot for commit 2646069. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@marcrleonard
marcrleonard marked this pull request as ready for review November 19, 2026 18:33
@marcrleonard
marcrleonard requested a review from a team as a code owner November 19, 2026 18:33
@jsanford8
jsanford8 merged commit 52e82cc into master Nov 20, 2026
2 checks passed
@jsanford8
jsanford8 deleted the ml/progress-optimizing branch November 20, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants