The rise of largeโ€‘scale automation workloads has exposed a gap between simple scripts and heavyweight orchestration platforms. Teams that need to run dozens or hundreds of identical tasks across a fleet of machines often find themselves stitching together adโ€‘hoc solutions that are fragile, hard to monitor, and difficult to scale. A new openโ€‘source project called Fleet Framework aims to fill that niche by providing a lightweight, opinionated layer that turns a collection of workers into a coherent, observable system without imposing a fullโ€‘blown scheduler or service mesh. Its origins lie in a productionโ€‘grade CAPTCHAโ€‘solving operation, where the developers learned the hard way what can go wrong when distributed agents interact over unreliable networks and shared state.

Fleet Framework began life as the control plane for a Cloudflare Turnstileโ€‘solving farm that processed millions of challenges per day. That environment exercised every conceivable failure mode: zombie subprocesses that lingered after workers crashed, master state loss when Redis restarted, generational counters that regressed after a rollโ€‘out, worker slots that were recycled without proper healing, and configuration drift that appeared when heterogeneous hosts ran different versions of the same automation. Each of these pain points was addressed directly in the frameworkโ€™s design, turning hardโ€‘won operational lessons into reusable building blocks. The result is a system that not only runs the work but also selfโ€‘heals, reconciles state, and keeps operators informed through a lightweight dashboard.

At its core, Fleet Framework follows a classic master/worker pattern but adds a few critical abstractions. The master node holds the canonical configuration, pushes updates to workers, and maintains a Redisโ€‘backed store that serves as the source of truth for slot state, counters, and event logs. Workers subscribe to typed output streams, allowing one automation to publish structured data that another can consume without needing to know the underlying transport. This streamโ€‘based interโ€‘automation communication enables pipelines where, for example, a SERP scraper feeds extracted URLs into a contentโ€‘classification worker, all while preserving type safety and backโ€‘pressure handling.

The project is split into two pipโ€‘installable pieces. Fleetโ€‘core contains the master daemon, worker shell, reconciliation loop, Redis store, event bus, metrics collection, and a small Reactโ€‘based dashboard that visualises slot utilisation, error rates, and throughput. Fleetโ€‘browser is an optional addโ€‘on that supplies a battleโ€‘tested Chromium pool with automatic fingerprint rotation, proxy authentication support, and robust orphanโ€‘process cleanup. By separating the browser concerns, the core stays lightweight for nonโ€‘browser workloads such as API calls, file processing, or database jobs, while still offering a readyโ€‘made solution for webโ€‘scraping or UIโ€‘automation scenarios.

Defining a new automation task is deliberately concise. Users subclass either ContinuousAutomation for longโ€‘running, pollingโ€‘style jobs or BatchAutomation for finite, dataโ€‘driven workloads. A Pydantic model declares the expected configuration schema, which the framework validates automatically when the master pushes updates. The automation class implements a few lifecycle hooksโ€”setup, execute, teardownโ€”receiving typed input streams and emitting typed output streams. In practice, most automations settle into roughly thirty lines of code, letting developers focus on the business logic rather than boilerplate plumbing.

Packaging and deployment follow familiar Python conventions. After writing the automation class and its Pydantic config, developers add a single entryโ€‘point line to pyproject.toml that points to the class. Building the package and publishing it to a private index (or even installing directly from a Git repository) makes it available on both master and worker nodes. A simple pip install command on each host pulls in fleetโ€‘core, fleetโ€‘browser if needed, and the custom automation package. The framework then takes over: it reads the configuration, validates it, assigns slots, starts workers, and begins the reconcile loop that constantly converges the desired state with the observed state.

Operational excellence is baked into the frameworkโ€™s reconciliation engine. The master continuously compares the desired configuration (number of slots, resource limits, version tags) with what Redis reports about each worker. When discrepancies appearโ€”such as a worker that has gone silent or a slot that reports an errorโ€”the framework automatically triggers healing actions: restarting the worker process, recycling the slot, or draining and reโ€‘assigning work. Metrics are emitted to Prometheusโ€‘compatible endpoints, and the dashboard offers realโ€‘time views of slot health, throughput, and error budgets, enabling operators to spot anomalies before they cascade into incidents.

The optional fleetโ€‘browser addโ€‘on solves a set of thorny problems that frequently plague largeโ€‘scale web automation. Chromium instances are launched in isolated sandboxes, each receiving a freshly rotated fingerprint that varies userโ€‘agent, screen size, canvas, and WebGL properties to reduce the chances of bot detection. Proxy credentials are injected perโ€‘session and rotated on a configurable schedule, allowing the fleet to respect rate limits and geoโ€‘targeting requirements. A dedicated reaper monitors child processes and ensures that no orphaned Chrome or chromedriver processes linger after a worker crashes, preventing resource exhaustion on the host machines.

Beyond the browser pool, the framework tackles several systemic failure patterns that emerged from the original CAPTCHA farm. Zombie subprocess accumulation is prevented by using process groups and careful signal handling, ensuring that when a worker receives SIGTERM it cleans up its entire process tree. To guard against master state loss on Redis restart, the framework stores snapshots of critical metadata in a persistent backend and reconstructs state on reconnection, eliminating the dreaded genโ€‘counter regression where counters would unexpectedly decrease. Slotโ€‘recycle drops are mitigated by a twoโ€‘phase commitโ€‘like protocol that only marks a slot as free after the worker acknowledges completion, and config drift is detected through version hashes that trigger a rolling update when workers fall behind the masterโ€™s desired version.

Fleet Framework is intentionally minimalist. It does not attempt to be a generalโ€‘purpose scheduler like Kubernetes, nor does it provide a full service mesh with traffic management and advanced routing. Instead, it offers a thin, opinionated layer that excels at the specific pattern of โ€œN machines each doing M parallel thingsโ€ where the work is homogeneous, repetitive, and benefits from centralized configuration and observability. Teams that need complex workflow orchestration, dynamic DAG scheduling, or multiโ€‘tenant isolation should look elsewhere, but those who simply want to run a fleet of scrapers, validators, or data enrichment jobs with reliable lifecycle management will find the framework a perfect fit.

As of this writing, the project is still in preโ€‘alpha. The public API is expected to evolve, and there has not yet been an official release on PyPIโ€”installation is currently done directly from the source repository. Several production deployments are already running on Fleet Framework, but they rely heavily on operational runbooks and manual oversight to smooth over the rough edges that accompany earlyโ€‘stage software. The project maintains a CHANGELOG and a ROADMAP.md that outline the path toward a v0.1 release, which will stabilize the core interfaces and introduce versioned compatibility guarantees.

For engineers considering Fleet Framework, the first step is to evaluate whether the problem domain matches its sweet spot: repetitive, horizontally scalable tasks that can be expressed as independent workers with wellโ€‘defined inputs and outputs. Start by building a minimal automation subclass and testing it on a single masterโ€‘worker pair to verify config push, slot lifecycle, and stream communication. Monitor the changelog closely and pin your dependencies to a specific commit or tag until the API stabilizes. Invest in basic observabilityโ€”Prometheus metrics and dashboard alertsโ€”early, because the frameworkโ€™s selfโ€‘healing features are most effective when operators can see what is happening in real time. Finally, engage with the community by reporting any edge cases you encounter; the projectโ€™s origins in a highโ€‘stakes production environment mean that realโ€‘world feedback is invaluable for shaping the next stable release.