(
message: string,
context?: Record<string, any>,
timeout = defaultConfig.TASK_TIMEOUT * 1000
)
| 29 | } |
| 30 | |
| 31 | export function timeoutGuard( |
| 32 | message: string, |
| 33 | context?: Record<string, any>, |
| 34 | timeout = defaultConfig.TASK_TIMEOUT * 1000 |
| 35 | ): NodeJS.Timeout { |
| 36 | return setTimeout(() => { |
| 37 | console.log(`⌛⌛⌛ ${message}`, context) |
| 38 | Sentry.captureMessage(message, context ? { extra: context } : undefined) |
| 39 | }, timeout) |
| 40 | } |
| 41 | |
| 42 | const campaignParams = new Set([ |
| 43 | 'utm_source', |
no outgoing calls
no test coverage detected
searching dependent graphs…