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

Function noActivityCooldownMs

apps/sim/lib/workspace-events/no-activity.ts:143–145  ·  view source on GitHub ↗

* Cooldown for no_activity firings. At least the inactivity window itself — * an hour-long cooldown with a multi-hour window would re-alert every hour * for the same ongoing inactivity.

(config: SimSubscriptionConfig)

Source from the content-addressed store, hash-verified

141 * for the same ongoing inactivity.
142 */
143function noActivityCooldownMs(config: SimSubscriptionConfig): number {
144 return Math.max(SIM_RULE_COOLDOWN_HOURS, config.inactivityHours) * 60 * 60 * 1000
145}
146
147/**
148 * Checks one watched workflow and fires when it has gone quiet, accumulating

Callers 1

checkWatchedWorkflowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected