Skip to content
CAI
Software that uses CAICheck a score

inaka/worker_pool

71.2

Strong · 13 November 2026

2.4k

lines of production code

Erlang

primary language

8

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is an Erlang library named \worker\_pool\ that provides a robust implementation for managing concurrent worker processes. It offers configurable strategies for worker selection, request queuing, and lifecycle supervision, along with event-based monitoring and overrun detection. The project includes a comprehensive test suite to verify pool behavior, worker selection algorithms, and error isolation.

Features

Initial release of the Worker Pool library

This change introduces the \worker\_pool\ application, providing a robust Erlang worker pool implementation. It includes the main \wpool\ interface for managing pools, a \wpool\_pool\ supervisor for worker lifecycle management, and a \wpool\_queue\_manager\ for handling request queuing and worker availability. The library supports configurable worker strategies (such as best, random, round-robin, and available), overrun detection with customizable handlers, and an event-based callback system for monitoring worker events like creation and death. It also provides a default \wpool\_worker\ implementation for simple RPC-style tasks and exposes statistics and worker retrieval APIs.

src · high confidence

Behavioural changes

Modernize project tooling and update minimum OTP version

The project has been modernized by switching to rebar3 as the build system, setting the minimum supported OTP version to 27, and adding a suite of development tools including erlfmt for code formatting, hank for shell script linting, and dialyzer for static analysis. The README has been updated to reflect these changes and the new installation instructions.

(repo-wide) · high confidence

Test coverage

Added test suite and helper modules for wpool

Added a comprehensive Common Test suite and supporting test helpers to verify wpool functionality. The new test files include \wpool\_SUITE.erl\ for testing pool lifecycle, shutdown strategies, overrun handling, broadcasting, and supervisor pools; \wpool\_pool\_SUITE.erl\ for worker selection strategies (available, next, random, etc.), queue types, and queue manager options; \wpool\_process\_SUITE.erl\ for gen\_server behavior within workers (init, cast, call, continue, format\_status); and \wpool\_process\_callbacks\_SUITE.erl\ for callback module lifecycle and error isolation. Supporting test doubles (\crashy\_server\, \echo\_server\, \sleepy\_server\, \echo\_supervisor\) and utility functions (\wpool\_test\_utils\, \wpool\_bench\) were also added to facilitate these tests.

test · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 71 → 71 (+0.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 84 → 84 (+0.0)
  • Architecture 100 → 100 (+0.0)
  • Maturity 54 → 54 (+0.0)
  • Readiness 80 → 80 (+0.0)
  • Security 95 → 95 (+0.0)
  • Event Sourcing 100 → 100 (+0.0)

New (3)

  • Edited copy of a member (10 corresponding lines) (src/wpool_queue_manager.erl)
  • Edited copy of a member (14 corresponding lines) (src/wpool_pool.erl)
  • Edited copy of a member (19 corresponding lines) (src/wpool_worker.erl)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

inaka/worker_pool was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 599bb39160f2157306dd36c1d3538e033105d83e — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-b8b1a43ae4c3.