WindmillWWindmill
Powered by
antonioalvesA
Windmill•3mo ago
antonioalves

Idle connections

After updating to version CE v1.575.0, my prometheus started alert that the wdinmill instance have more than 100 postgres connections.
I don't know if this is related with the current version, so far everything still working properly
The query idle with more than 100 executions is:
WITH peek AS (
SELECT id
FROM v2_job_queue
WHERE running = false AND tag IN ('ansible', 'bash', 'bun', 'csharp', 'deno', 'dependency', 'duckdb', 'flow', 'go', 'hub', 'java', 'nu', 'other', 'php', 'powershell', 'python3', 'ruby', 'rust') AND scheduled_for <= now()
ORDER BY priority DESC NULLS LAST, scheduled_for
FOR UPDATE SKIP LOCKED
LIMIT 1
), q AS NOT MATERIALIZED (
UPDATE v2_job_queue SET
running = true,
started_at = coalesce(started_at, now()),
suspend_until = null,
worker = $1
WHERE id = (SELECT id FROM peek)
RETURNING
started_at, scheduled_for,
canceled_by, canceled_reason, worker
), r AS NOT MATERIALIZED (
UPDATE v2_job_runtime SET
ping = now()
WHERE id = (SELECT id FROM peek)
), j AS NOT MATERIALIZED (
SELECT
id, workspace_id, pa
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

persistent WebSocket connections
Sanni (Uffbässe)SSanni (Uffbässe) / help
2y ago
Error while fetching flow status
ShenanigansSShenanigans / help
7mo ago
Deploy new workers to Windmill installation
Trevor SullivanTTrevor Sullivan / help
3y ago
WINDMILL TOO BIG
JoniJJoni / help
7mo ago