mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 08:02:38 +00:00
* feat: add 60-second cache for workspace key retrieval This implements a cache with 60-second staleness for the get_workspace_key function to reduce database queries for workspace encryption keys. The cache follows the same pattern as the existing CUSTOM_ENVS_CACHE but with a shorter expiration time. Requested by @rubenfiszel Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> * Extend cache staleness from 60 to 300 seconds * feat: add cache invalidation notifications for workspace keys Add PostgreSQL LISTEN/NOTIFY mechanism to invalidate workspace key cache across all servers and workers when workspace keys change. - Add database migration with trigger function for workspace_key changes - Add notification handler in main.rs to remove from WORKSPACE_KEY_CACHE - Follow same pattern as existing workspace environment cache invalidation - Ensures distributed cache consistency for workspace encryption keys Co-authored-by: Ruben Fiszel <rubenfiszel@users.noreply.github.com> * finish --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev> Co-authored-by: Ruben Fiszel <rubenfiszel@users.noreply.github.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