MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / handler

Method handler

packages/agent-core/src/agent/cron/manager.ts:537–548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

535 if (process.env['KIMI_CRON_MANUAL_TICK'] !== '1') return;
536 if (this.sigusr1Handler !== null) return;
537 const handler: NodeJS.SignalsListener = () => {
538 try {
539 this.tick();
540 } catch (error) {
541 if (process.env['KIMI_CRON_DEBUG'] === '1') {
542 const msg = error instanceof Error ? error.message : String(error);
543 process.stderr.write(
544 `[cron/manager] SIGUSR1 tick threw: ${msg}\n`,
545 );
546 }
547 }
548 };
549 this.sigusr1Handler = handler;
550 process.on('SIGUSR1', handler);
551 }

Callers 4

installReverseRpcHandlerFunction · 0.45
typed-tool.test.tsFile · 0.45
handleMethod · 0.45
handlerFunction · 0.45

Calls 2

tickMethod · 0.95
writeMethod · 0.65

Tested by

no test coverage detected