MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / handle_interrupt

Function handle_interrupt

core/orchestrator.py:354–361  ·  view source on GitHub ↗
(sig, frame)

Source from the content-addressed store, hash-verified

352 interrupted = False
353
354 def handle_interrupt(sig, frame):
355 nonlocal interrupted
356 interrupted = True
357 for t in queue.tasks:
358 if t.status == 'running':
359 t.status = 'pending'
360 queue.save()
361 raise KeyboardInterrupt
362
363 old_handler = signal.signal(signal.SIGINT, handle_interrupt)
364

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected