mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 16:02:14 +00:00
fadbd73dc6
Experimental and env-gated (defaults off — stock behavior unchanged). Read path is made fully non-blocking on both sides so neither the worker nor the server waits on the stage behind it: Postgres -> [server-side buffer] -> HTTP -> [agent-side buffer] -> worker - batch pull/complete: N jobs per pull, N completions per flush, so the per-job HTTP round-trips and per-job dequeue queries are amortized - server-side prefetch: a single background puller per job-tag-set runs the SKIP LOCKED dequeue ahead of demand and coalesces concurrent agents, moving the PG query off the request critical path - agent-side prefetch: a background refiller keeps the local job buffer deep (high low-watermark + several refills in flight) so the worker loop pops without a network call - empty-pull backoff fix: don't apply the idle long-sleep to a transient empty pull from a prefetching consumer - AGENT_PROF: per-phase profiler + auto-rendered per-job time-budget SVG Single agent goes from ~2.5k to ~125k+ j/s. Multi-agent collapse is reproduced but its root cause is still open (not established to be PG). See benchmarks/agent_worker_scaling.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
37 lines
997 B
TOML
37 lines
997 B
TOML
[package]
|
|
name = "windmill-api-agent-workers"
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
|
|
[lib]
|
|
name = "windmill_api_agent_workers"
|
|
path = "src/lib.rs"
|
|
|
|
[features]
|
|
default = []
|
|
enterprise = ["windmill-common/enterprise", "windmill-queue/enterprise"]
|
|
private = ["windmill-common/private", "windmill-queue/private"]
|
|
python = ["dep:windmill-parser-py-imports"]
|
|
benchmark = ["windmill-queue/benchmark"]
|
|
|
|
[dependencies]
|
|
windmill-api-auth.workspace = true
|
|
windmill-common = { workspace = true, default-features = false }
|
|
windmill-queue.workspace = true
|
|
windmill-worker.workspace = true
|
|
axum.workspace = true
|
|
lazy_static.workspace = true
|
|
arc-swap.workspace = true
|
|
chrono.workspace = true
|
|
http.workspace = true
|
|
hyper.workspace = true
|
|
quick_cache.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
sqlx.workspace = true
|
|
tokio.workspace = true
|
|
tracing.workspace = true
|
|
uuid.workspace = true
|
|
windmill-parser-py-imports = { workspace = true, optional = true }
|