MCPcopy Create free account
hub / github.com/aws-samples/remote-swe-agents / pauseKillTimer

Function pauseKillTimer

packages/worker/src/common/kill-timer.ts:54–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 await sendSystemMessage(workerId, 'Going to sleep mode. You can wake me up at any time.');
53 await notifyTermination(workerId, 'sleeping', '');
54 // Update instance status to stopped in DynamoDB before stopping the instance
55 await updateInstanceStatus(workerId, 'stopped');
56 await stopMyself(workerId);
57 },
58 30 * 60 * 1000
59 );
60};
61
62let restartToken = '';
63let hasWorkedBefore = false;
64
65export const pauseKillTimer = () => {
66 restartToken = randomBytes(8).toString('hex');

Callers 2

_startResumeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected