MCPcopy
hub / github.com/simstudioai/sim / clearDeadFlag

Function clearDeadFlag

apps/sim/lib/oauth/terminal-errors.ts:56–67  ·  view source on GitHub ↗
(accountId: string)

Source from the content-addressed store, hash-verified

54}
55
56export async function clearDeadFlag(accountId: string): Promise<void> {
57 const redis = getRedisClient()
58 if (!redis) return
59 try {
60 await redis.del(deadKey(accountId))
61 } catch (error) {
62 logger.warn('Failed to clear terminal error flag from Redis', {
63 accountId,
64 error: toError(error).message,
65 })
66 }
67}

Callers 3

Calls 4

getRedisClientFunction · 0.90
toErrorFunction · 0.90
deadKeyFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected