Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d05109

Browse files
authored
fix: ignore deleted workspaces in global stats (#6973)
Fixes#6568.
1 parentaa43f99 commit2d05109

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎coderd/database/queries.sql.go‎

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries/workspaces.sql‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,16 +356,16 @@ WITH workspaces_with_jobs AS (
356356
build_numberDESC
357357
LIMIT
358358
1
359-
) latest_buildON TRUE
359+
) latest_buildON TRUEWHERE deleted= false
360360
), pending_workspacesAS (
361361
SELECTCOUNT(*)AS countFROM workspaces_with_jobsWHERE
362362
started_at ISNULL
363363
), building_workspacesAS (
364364
SELECTCOUNT(*)AS countFROM workspaces_with_jobsWHERE
365365
started_atIS NOT NULLAND
366366
canceled_at ISNULLAND
367-
updated_at- INTERVAL'30 seconds'< NOW()AND
368-
completed_at ISNULL
367+
completed_at ISNULLAND
368+
updated_at- INTERVAL'30 seconds'< NOW()
369369
), running_workspacesAS (
370370
SELECTCOUNT(*)AS countFROM workspaces_with_jobsWHERE
371371
completed_atIS NOT NULLAND

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp