Skip to content

Close pooled browsers concurrently - #207

Merged
ftes merged 1 commit into
mainfrom
codex/concurrent-browser-pool-shutdown
Jul 24, 2026
Merged

Close pooled browsers concurrently#207
ftes merged 1 commit into
mainfrom
codex/concurrent-browser-pool-shutdown

Conversation

@ftes

@ftes ftes commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • start pooled browser closes concurrently during BrowserPool.terminate/2
  • await every close task before termination returns
  • document the concurrent shutdown behavior in the changelog

This follows up on #206 and addresses the shutdown-budget review comment. Running the closes concurrently prevents multiple per-browser timeouts from accumulating serially against the pool worker's shutdown budget. Task.await_many/2 uses :infinity because each Browser.close/2 call already enforces the configured browser timeout.

@ftes
ftes marked this pull request as ready for review July 24, 2026 12:42
@ftes
ftes merged commit d013b19 into main Jul 24, 2026
3 checks passed
@ftes
ftes deleted the codex/concurrent-browser-pool-shutdown branch July 24, 2026 12:56
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.

1 participant