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.