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

Method DeleteOldNotificationMessages

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

Delete all notification messages which have not been updated for over a week.

(ctx context.Context)

Source from the content-addressed store, hash-verified

190 DeleteOldConnectionLogs(ctx context.Context, arg DeleteOldConnectionLogsParams) (int64, error)
191 // Delete all notification messages which have not been updated for over a week.
192 DeleteOldNotificationMessages(ctx context.Context) error
193 // Delete provisioner daemons that have been created at least a week ago
194 // and have not connected to coderd since a week.
195 // A provisioner daemon with "zeroed" last_seen_at column indicates possible

Callers 5

purgeTickMethod · 0.65
TestMetricsFunction · 0.65
TestNotificationsMethod · 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
TestNotificationsMethod · 0.52