Skip to content

A request waits only behind requests for the same platform #387

Not planned

Description

@V3RON

The problem

A worker keeps one line of waiting lease requests for every platform, and only the first request in it is served. When that request cannot be served, every request behind it waits, even one for another platform that has room.

Example: agent A asks for an iOS simulator while iOS is at its running limit. Agent B asks for an Android emulator, and Android has room. B waits until A is served. With --no-wait, B gets no-capacity while an Android slot is free.

Who runs into this

Agents sharing one worker that leases both iOS and Android. One busy platform stalls the other.

What you would like to happen

One line per platform. A request waits only behind earlier requests for the same platform. Order inside a platform stays first come, first served.

Anything else

It also settles a question the warm pool (#359, task #368) had to decide: which waiting requests the pool boots a device for. The pool boots only for the first request in line. With one line per platform, that means the first request on each platform. Ship after #359.

Activity

  1. added
    request:new
    on Oct 6, 2026
  2. V3RON commented on Nov 26, 2026

    @V3RON
    ContributorAuthor

    Closing: nobody has reported one platform holding up the other. Reopen with a case if a mixed iOS/Android worker hits it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    request:new

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions