MCPcopy Create free account
hub / github.com/Epic0522/Codex-Remote-Contact / startRemoteExecutionIdleTimer

Function startRemoteExecutionIdleTimer

src/server.js:4187–4194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4185}
4186
4187function startRemoteExecutionIdleTimer() {
4188 if (remoteExecutionIdleTimer) return;
4189 remoteExecutionIdleTimer = setInterval(() => {
4190 expireRemoteExecutionIfIdle({ notify: true }).catch((error) => {
4191 state.maintenance.codex.lastError = `Remote execution idle timer failed: ${error.message}`;
4192 });
4193 }, 30 * 1000);
4194}
4195
4196function stopRemoteExecutionIdleTimer() {
4197 if (remoteExecutionIdleTimer) clearInterval(remoteExecutionIdleTimer);

Callers 1

Calls 1

Tested by

no test coverage detected