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

Function cleanupLargeValueMetadata

apps/sim/background/cleanup-logs.ts:351–363  ·  view source on GitHub ↗
(workspaceIds: string[], label: string)

Source from the content-addressed store, hash-verified

349}
350
351async function cleanupLargeValueMetadata(workspaceIds: string[], label: string): Promise<void> {
352 try {
353 const tombstonesDeletedBefore = new Date(
354 Date.now() - LARGE_VALUE_TOMBSTONE_RETENTION_HOURS * 60 * 60 * 1000
355 )
356 const result = await pruneLargeValueMetadata({ workspaceIds, tombstonesDeletedBefore })
357 logger.info(
358 `[${label}/execution_large_value_metadata] Pruned ${result.referencesDeleted} stale references, ${result.dependenciesDeleted} dependencies, ${result.tombstonesDeleted} tombstones`
359 )
360 } catch (error) {
361 logger.error(`[${label}/execution_large_value_metadata] Failed to prune metadata`, { error })
362 }
363}
364
365async function cleanupWorkflowExecutionLogs(
366 workspaceIds: string[],

Callers 1

runCleanupLogsFunction · 0.85

Calls 3

pruneLargeValueMetadataFunction · 0.90
infoMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected