Skip to content

Commit 03a3c7d

Browse files
committed
fix: bento grafana dashboard Pending GPU tasks shows failed jobs' task too
1 parent 588dae5 commit 03a3c7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dockerfiles/grafana/dashboards/bento.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
"editorMode": "code",
244244
"format": "table",
245245
"rawQuery": true,
246-
"rawSql": "SELECT\n COUNT(*)\nFROM\n tasks cross join lateral jsonb_object_keys(tasks.task_def) task_type\nWHERE\n (\n state = 'pending' OR state = 'ready'\n ) AND (\n task_type = 'Join' OR task_type = 'Prove' OR task_type = 'Resolve'\n )",
246+
"rawSql": "SELECT\n COUNT(*)\nFROM\n tasks cross join lateral jsonb_object_keys(tasks.task_def) task_type\nleft join jobs on tasks.job_id = jobs.id\nWHERE\n (\n tasks.state = 'pending' OR tasks.state = 'ready'\n ) AND (\n task_type = 'Join' OR task_type = 'Prove' OR task_type = 'Resolve'\n )\nAND jobs.state <> 'failed'",
247247
"refId": "A",
248248
"sql": {
249249
"columns": [

0 commit comments

Comments
 (0)