count pipeline steps and daily pipeline runs in adoption stats (#12137)

* feat: count pipeline steps and daily pipeline runs in adoption stats

* fix: report a retried pipeline run by its last attempt

* chore: update ee-repo-ref to 9dff0e516841b64b54d7a5b50951016d45161b51

This commit updates the EE repository reference after PR #938 was merged in windmill-ee-private.

Previous ee-repo-ref: 26d739296f9efd0b5b412237c9f5149e38b97054

New ee-repo-ref: 9dff0e516841b64b54d7a5b50951016d45161b51

Automated by sync-ee-ref workflow.

---------

Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
This commit is contained in:
Ruben Fiszel
2026-10-31 21:56:42 +01:00
committed by GitHub
co-authored by windmill-internal-app[bot]
parent 6f4124e9a0
commit 5f68eb9f44
3 changed files with 53 additions and 1 deletions
@@ -0,0 +1,20 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COUNT(DISTINCT (workspace_id, path))::BIGINT AS \"count!\"\n FROM script\n WHERE auto_kind = 'pipeline' AND archived = false AND deleted = false\n AND workspace_id NOT LIKE 'wm-fork%'",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "count!",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null
]
},
"hash": "8c71d3c791a65892cffd9feee13a13533e8025824ae697b5be4ed43c5e4fe584"
}
@@ -0,0 +1,32 @@
{
"db_name": "PostgreSQL",
"query": "SELECT COALESCE(j.trigger_kind::text, 'none') AS \"trigger!\",\n (CASE WHEN c.status = 'failure' THEN COALESCE(\n (SELECT rc.status FROM v2_job r\n JOIN native_retry_attempt n ON n.job_id = r.id\n JOIN v2_job_completed rc ON rc.id = r.id\n WHERE r.parent_job = j.id\n ORDER BY n.attempt DESC LIMIT 1),\n c.status) ELSE c.status END)::text AS \"status!\",\n COUNT(*)::BIGINT AS \"count!\"\n FROM (SELECT DISTINCT workspace_id, path FROM script\n WHERE auto_kind = 'pipeline' AND archived = false AND deleted = false\n AND workspace_id NOT LIKE 'wm-fork%') p\n CROSS JOIN LATERAL (\n SELECT id, trigger_kind FROM v2_job\n WHERE workspace_id = p.workspace_id AND runnable_path = p.path\n AND parent_job IS NULL AND kind = 'script'\n AND created_at >= CURRENT_DATE - INTERVAL '1 day'\n AND created_at < CURRENT_DATE\n ) j\n JOIN v2_job_completed c ON c.id = j.id\n GROUP BY 1, 2",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "trigger!",
"type_info": "Text"
},
{
"ordinal": 1,
"name": "status!",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "count!",
"type_info": "Int8"
}
],
"parameters": {
"Left": []
},
"nullable": [
null,
null,
null
]
},
"hash": "fd44d54a93499ce1dab09759cdfcd633774f770c34f5ef70a0583f2a210ef5b1"
}
+1 -1
View File
@@ -1 +1 @@
c0fd22ba77e6618cea7611d72fe2e75c8855c595
9dff0e516841b64b54d7a5b50951016d45161b51