* 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)
| 141 | * for the same ongoing inactivity. |
| 142 | */ |
| 143 | function 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 |
no outgoing calls
no test coverage detected