mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 08:02:19 +00:00
34020b5422
Add a batch pull mechanism for native mode workers. Instead of each worker independently polling the DB, a single poller pulls up to N jobs in one query and dispatches them via an mpsc channel. - Add `pull_batch()` in windmill-queue with batch SQL query - Add `run_native_poller()` loop with semaphore-based backpressure - Workers consume jobs via `try_recv()` on a shared channel - Detect native mode from both env and DB worker group config - Add `ScriptLang::tag_str()` to centralize bunnative→nativets mapping - Fix `add_batch_jobs` tag assignment to use consistent mapping Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Windmill Backend
This folder holds all backend components, the src/ folder only contains files used to build the "root" binary.
Components
| name | description |
|---|---|
| windmill-api | The API server, exposing functionality to other components and the frontend |
| windmill-audit | Contains audit functionality, allowing different components to record important actions |
| windmill-common | Common code shared by all crates |
| windmill-queue | Contains job & flow queuing functionality, commonly written to by the API server and read from by workers |
| windmill-worker | The worker. Used to process and execute flows & jobs. |
| parsers | Contains code to parse signatures in different langauges. |
Compile sqlx for offline ci
cargo sqlx prepare --workspace -- --bin windmill --features enterprise