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

Method DeleteChatDebugDataAfterMessageID

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

Deletes debug runs (and their cascaded steps) whose message IDs exceed the cutoff. The started_before bound prevents retried cleanup from deleting runs created by a replacement turn that raced ahead of the retry window.

(ctx context.Context, arg DeleteChatDebugDataAfterMessageIDParams)

Source from the content-addressed store, hash-verified

129 // cleanup from deleting runs created by a replacement turn that
130 // raced ahead of the retry window.
131 DeleteChatDebugDataAfterMessageID(ctx context.Context, arg DeleteChatDebugDataAfterMessageIDParams) (int64, error)
132 // The started_before bound prevents retried cleanup from deleting
133 // runs created by a replacement turn that races ahead of the retry
134 // window (for example, after an unarchive races with a pending

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