Skip to content

OpenBrowse v1.12.1

Choose a tag to compare

@lujstn lujstn released this 06 Sep 00:04
v1.12.1
1631701

A patch release for one production fault: a session stopped twice in quick
succession lost its display slot for the life of the process.

The first stop cancels the worker, which begins its teardown. The second lands
inside that teardown, at a shielded await — and asyncio.shield still raises
CancelledError into the awaiting task, which except Exception: does not
catch. The rest of the teardown was skipped, so the display was never handed
back, while the session pool's permit was freed as normal. The pool then
admitted a session for a display that no longer existed and failed it instantly
with No free display slots instead of queueing it. Each recurrence cost
another slot.

Fixed

  • Session teardown now runs to completion and cannot be abandoned by a cancel.
    The browser stop is bounded, so a browser that will not close cannot hold its
    display either.
  • A repeat stop no longer re-cancels a worker that is already unwinding.
  • A session waits for a display rather than being refused one, and any slot
    whose worker has finished without giving it back is reclaimed. Running out of
    capacity now reports as the transient no_display_capacity rather than as an
    agent failure.
  • Startup clears display processes left behind by a hard-killed previous run.
  • A session re-submitted while its previous worker was still unwinding is no
    longer unregistered by it, and shutdown is bounded so a service manager never
    waits out its own stop timeout.

Two related symptoms disappear with it: spurious "this profile is also open in
..." notes naming a session that had already ended, and a service stop that hung
until its timeout because orphaned display processes had no owner left to reap
them.