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

Method UpdateChatHeartbeats

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

Bumps the heartbeat timestamp for the given set of chat IDs, provided they are still running and owned by the specified worker. Returns the IDs that were actually updated so the caller can detect stolen or completed chats via set-difference.

(ctx context.Context, arg UpdateChatHeartbeatsParams)

Source from the content-addressed store, hash-verified

1211 // worker. Returns the IDs that were actually updated so the
1212 // caller can detect stolen or completed chats via set-difference.
1213 UpdateChatHeartbeats(ctx context.Context, arg UpdateChatHeartbeatsParams) ([]uuid.UUID, error)
1214 UpdateChatLabelsByID(ctx context.Context, arg UpdateChatLabelsByIDParams) (Chat, error)
1215 // Updates the cached injected context parts (AGENTS.md +
1216 // skills) on the chat row. Called only when context changes

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