Windmill · automation platform

On this page 7

Windmill is an open-source developer automation platform that turns ordinary scripts into scheduled jobs, multi-step workflows and internal web apps, with execution handled by a scalable pool of workers. Among automation platforms in the field of automation, it sits between code-first orchestrators such as Airflow or Prefect and visual builders such as n8n or Zapier: every step is real code in a real language, yet the platform generates input forms, run history, permissions and scheduling around that code automatically.

The project started in 2022, its core is published under the AGPLv3 license, and a commercial enterprise edition adds features such as audit logs, single sign-on enforcement and advanced worker management. Teams use it either self-hosted or as a managed cloud service.

How Windmill turns scripts into automation

Windmill works by parsing the main function signature of each script and deriving a JSON Schema for its parameters. From that schema it renders an auto-generated input form, validates arguments and exposes the same script through a webhook, a schedule, a CLI call or a step inside a larger flow. The developer writes a function; the platform supplies the surrounding operational layer.

Under the hood, the backend is written in Rust and uses PostgreSQL as both queue and state store. When a job is triggered, a row is inserted into the job queue; stateless workers pull jobs, prepare an isolated environment with the locked dependencies, run the code and write results and logs back to the database. Because coordination lives in PostgreSQL, scaling usually means adding more workers, not introducing a separate message broker.

The following table summarizes the main building blocks and the role each one plays in a deployment.

ComponentWhat it doesTypical configuration
ScriptsSingle units of logic with typed parametersPython, TypeScript, Go, Bash, SQL and more
FlowsDirected graphs of steps with branching and loopsBuilt in the flow editor or as YAML
AppsLow-code user interfaces bound to scriptsDrag-and-drop editor or full-code frontends
Resources and variablesTyped connection objects and encrypted secretsDatabase credentials, API tokens
WorkersProcesses that execute queued jobsGrouped by tags for CPU, GPU or network needs
TriggersEvents that start jobsSchedules, webhooks, HTTP routes, queues
Core building blocks of a Windmill deployment

Flows, triggers and execution controls

A Windmill flow is a sequence or graph of steps described in an open format called OpenFlow, where each step is a script, a reference to a shared script or a nested flow. Step inputs are JavaScript expressions that reference earlier results, so data passing between steps stays explicit and inspectable in the run log.

Flows support the control structures that production workflows need: branching on conditions, for-loops with optional parallelism, retries with backoff, per-step timeouts, error handler steps and suspend steps for human approval, where the flow pauses until an authorized user resumes or cancels it. The next table lists common ways to start a job.

TriggerHow it starts a jobTypical use
Cron scheduleTime expression evaluated by the schedulerNightly reports, periodic synchronization
WebhookAuthenticated HTTP request to a generated endpointEvents from SaaS tools or CI systems
HTTP routeCustom path mapped to a scriptLightweight internal APIs
Message or database eventConsumer on a queue or change streamKafka topics, PostgreSQL changes
Manual runAuto-generated form in the interfaceOperations tasks run by support staff
Common trigger types and their typical use

How Windmill compares with neighboring platforms

Windmill is best understood as a code-first platform with a generated interface. It overlaps with several tools in the same topic, but the unit of work, hosting model and target user differ in ways that matter when choosing a platform.

PlatformPrimary unit of workMain audienceKey difference from Windmill
WindmillScript in a general-purpose languageDevelopers and technical operationsReference point
AirflowPython DAG of tasksData engineersBatch data pipelines, heavier scheduler model
n8nVisual node with optional codeTechnical generalistsVisual first, code as an exception
TemporalDurable workflow function in an SDKBackend engineersDurable execution inside application code
ZapierPrebuilt trigger and actionBusiness usersHosted only, no custom runtime control
Windmill compared with related automation platforms

In practice, Windmill is chosen when a team already writes scripts that need scheduling, permissions and a user interface. It is a weaker fit for long-running durable business processes that must survive months of waiting, where Temporal or Camunda are designed for that model, and for nontechnical teams that expect a purely visual builder.

Deploying and operating Windmill

A self-hosted installation runs as containers for the server and workers plus a PostgreSQL database, typically through Docker Compose for small setups or a Helm chart on Kubernetes for production. The managed cloud offering removes infrastructure work but places code and secrets on the vendor’s infrastructure, which some regulated teams avoid.

Operational maturity depends on a few design choices. Workspaces separate teams and environments, role-based permissions control who may view, run or edit each item, and Git synchronization through the wmill CLI lets teams review changes in pull requests and promote them from staging to production. Dependencies are resolved into per-script lockfiles, which makes runs reproducible.

The decision table below maps common requirements to a sensible configuration.

RequirementRecommended setupReason
Small team, few jobsDocker Compose with two or three workersSimple to run and back up
High job volumeKubernetes with autoscaled worker groupsWorkers scale independently of the server
Heavy or GPU workloadsDedicated worker group with tagsKeeps slow jobs away from fast ones
Strict change controlGit sync with review before deploymentEvery change is versioned and auditable
Sensitive credentialsEncrypted variables with restricted foldersLimits secret exposure to authorized users
Configuration choices for typical requirements

Limitations and common mistakes

Windmill shifts complexity into code, so its main trade-off is flexibility versus accessibility. Teams gain full language power but need people who can write, test and review that code.

  • Treating PostgreSQL as an afterthought: the database is the queue, so undersized storage or missing backups affect every job.
  • Running everything on one worker group: long data jobs then block short interactive scripts.
  • Storing secrets in script bodies instead of encrypted variables and resources.
  • Skipping Git synchronization, which leaves production edits unreviewed and hard to roll back.
  • Ignoring license terms: the AGPLv3 core and the enterprise edition carry different obligations for embedding and redistribution.

Explained without jargon

Windmill is a workshop for small computer programs. A developer writes a short program, for example one that copies new orders into a spreadsheet, and Windmill turns it into a button, a timer and a form that colleagues can use without reading any code.

It can also chain several programs together, so one step fetches data, the next checks it and the last sends a message. Windmill keeps a record of every run, retries steps that fail and controls who is allowed to do what. The key idea is simple: write the logic once, and the platform handles everything around it.

A typical use case

A mid-sized online retailer has an operations team of four engineers who maintain dozens of loose Python and SQL scripts on a shared server. Refunds, inventory corrections and supplier reports depend on whoever remembers which script to run, and failures go unnoticed until customers complain.

The team installs Windmill on its Kubernetes cluster with two worker groups: one for quick interactive scripts and one for heavy nightly reports. Each script becomes a Windmill script with typed parameters, so support staff now issue refunds through an auto-generated form instead of filing tickets. A nightly flow pulls sales data, reconciles it against the warehouse database and pauses at an approval step when discrepancies exceed a set threshold.

Within a quarter, manual script runs by engineers drop sharply, every execution has a searchable log, and all changes pass through Git review before reaching production.