Skip to content

feat(download): per-item priority / fair scheduling #458

Description

@rejifald

Nice-to-have / possible improvement — not on the v1 critical path.

The @stitchapi/download batch scheduler is strictly FIFO — queued items are admitted in enqueue order as slots free. Core throttle has no priority either, so there's no way to say "this download matters more, admit it first."

Suggestion

Expose an optional per-item priority (and/or a comparator) so higher-priority queued items are admitted first when a slot frees; FIFO stays the default and the tie-break within a level. Touches the scheduler's admission (#pump) + the DownloadRequest type.

Rig spec P21 ("Priority / fair scheduling — only if @stitchapi/download exposes priority"). Follow-up to #451.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions