miniproto.media.scheduler.MediaSchedulerRegistry
miniproto.media.scheduler.MediaSchedulerRegistry
Section titled “miniproto.media.scheduler.MediaSchedulerRegistry”MediaSchedulerRegistry(*, download_max_bytes: int, upload_max_bytes: int, download_small_limit: int = DEFAULT_DOWNLOAD_SMALL_LIMIT, download_large_limit: int = DEFAULT_DOWNLOAD_LARGE_LIMIT) -> NoneOwn lazy per-DC schedulers and create lifecycle-managed media transfers.
Configure byte caps and download operation limits.
Parameters:
- download_max_bytes (
int) – Per-DC download charged-byte ceiling in bytes. - upload_max_bytes (
int) – Per-DC upload charged-byte ceiling in bytes. - download_small_limit (
int) – Concurrent small download-transfer cap. - download_large_limit (
int) – Concurrent large download-transfer cap.
Raises:
ValueError– If a byte cap is below one scheduler unit or an operation limit is not positive.