()
| 172 | |
| 173 | let idleShutdownTimer: NodeJS.Timeout | undefined |
| 174 | const startIdleShutdownTimer = () => { |
| 175 | idleShutdownTimer = setTimeout(() => { |
| 176 | logger.warn(`Idle timeout of ${args["idle-timeout-seconds"]} seconds exceeded`) |
| 177 | wrapper.exit(0) |
| 178 | }, args["idle-timeout-seconds"]! * 1000) |
| 179 | } |
| 180 | |
| 181 | startIdleShutdownTimer() |
| 182 |