MCPcopy Index your code
hub / github.com/simstudioai/sim / writeAbortMarker

Function writeAbortMarker

apps/sim/lib/copilot/request/session/buffer.ts:231–236  ·  view source on GitHub ↗
(streamId: string)

Source from the content-addressed store, hash-verified

229}
230
231export async function writeAbortMarker(streamId: string): Promise<void> {
232 const ttlSeconds = getStreamConfig().ttlSeconds
233 await withRedisRetry({ operation: 'write_abort_marker', streamId }, async (redis) => {
234 await redis.set(getAbortKey(streamId), '1', 'EX', ttlSeconds)
235 })
236}
237
238export async function hasAbortMarker(streamId: string): Promise<boolean> {
239 return withRedisRetry({ operation: 'read_abort_marker', streamId }, async (redis) => {

Callers 1

abortActiveStreamFunction · 0.90

Calls 4

getStreamConfigFunction · 0.85
getAbortKeyFunction · 0.85
withRedisRetryFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected