MCPcopy Create free account
hub / github.com/coder/coder / GetRunningPrebuiltWorkspaces

Method GetRunningPrebuiltWorkspaces

coderd/database/querier.go:656–656  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

654 GetReplicaByID(ctx context.Context, id uuid.UUID) (Replica, error)
655 GetReplicasUpdatedAfter(ctx context.Context, updatedAt time.Time) ([]Replica, error)
656 GetRunningPrebuiltWorkspaces(ctx context.Context) ([]GetRunningPrebuiltWorkspacesRow, error)
657 GetRuntimeConfig(ctx context.Context, key string) (string, error)
658 // Find chats that appear stuck and need recovery:
659 // 1. Running chats whose heartbeat has expired (worker crash).

Callers 10

TestPrebuildsMethod · 0.65
TestDeleteFunction · 0.65
TestPrebuildsAutobuildFunction · 0.65
SnapshotStateMethod · 0.65
TestClaimPrebuildFunction · 0.65
GetRunningPrebuildsFunction · 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 6

TestPrebuildsMethod · 0.52
TestDeleteFunction · 0.52
TestPrebuildsAutobuildFunction · 0.52
TestClaimPrebuildFunction · 0.52