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

Method DeleteOldTelemetryLocks

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

Deletes old telemetry locks from the telemetry_locks table.

(ctx context.Context, periodEndingAtBefore time.Time)

Source from the content-addressed store, hash-verified

197 DeleteOldProvisionerDaemons(ctx context.Context) error
198 // Deletes old telemetry locks from the telemetry_locks table.
199 DeleteOldTelemetryLocks(ctx context.Context, periodEndingAtBefore time.Time) error
200 // If an agent hasn't connected within the retention period, we purge its logs.
201 // Exception: if the logs are related to the latest build, we keep those around.
202 // Logs can take up a lot of space, so it's important we clean up frequently.

Callers 5

purgeTickMethod · 0.65
TestMetricsFunction · 0.65
TestTelemetryMethod · 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 2

TestMetricsFunction · 0.52
TestTelemetryMethod · 0.52