MCPcopy Index your code
hub / github.com/coder/coder / CountInProgressPrebuilds

Method CountInProgressPrebuilds

coderd/database/querier.go:104–104  ·  view source on GitHub ↗

CountInProgressPrebuilds returns the number of in-progress prebuilds, grouped by preset ID and transition. Prebuild considered in-progress if it's in the "pending", "starting", "stopping", or "deleting" state.

(ctx context.Context)

Source from the content-addressed store, hash-verified

102 // CountInProgressPrebuilds returns the number of in-progress prebuilds, grouped by preset ID and transition.
103 // Prebuild considered in-progress if it's in the "pending", "starting", "stopping", or "deleting" state.
104 CountInProgressPrebuilds(ctx context.Context) ([]CountInProgressPrebuildsRow, error)
105 // Groups OIDC user links by their issuer prefix (the part before "||" in
106 // linked_id) and returns a count for each. Empty linked_ids are reported
107 // with an empty issuer_prefix. Used for analysis before resetting

Callers 4

TestPrebuildsMethod · 0.65
SnapshotStateMethod · 0.65

Implementers 5

sqlQueriercoderd/database/db.go
queryMetricsStorecoderd/database/dbmetrics/querymetrics
queriercoderd/database/dbauthz/dbauthz.go
MockStorecoderd/database/dbmock/dbmock.go
MockStoreMockRecordercoderd/database/dbmock/dbmock.go

Calls

no outgoing calls

Tested by 1

TestPrebuildsMethod · 0.52