Files
SubMiner/backlog/tasks/task-61 - Ensure-parser-utility-scripts-exit-immediately-after-output.md
2026-02-17 22:54:09 -08:00

1.3 KiB

id, title, status, assignee, created_date, updated_date, labels, dependencies, ordinal
id title status assignee created_date updated_date labels dependencies ordinal
TASK-61 Ensure parser utility scripts exit immediately after output Done
2026-02-16 22:35 2026-02-18 04:11
24000

Description

Update scripts/test-yomitan-parser.ts and scripts/get_frequency.ts so they clean up Electron parser resources and terminate immediately after producing results, avoiding hangs.

Acceptance Criteria

  • #1 scripts/test-yomitan-parser.ts exits promptly after printing output.
  • #2 scripts/get_frequency.ts exits promptly after printing output.
  • #3 Electron-related resources (parser window/app loop) are cleaned up on both success and error paths.

Final Summary

Added deterministic shutdown to both utility scripts. scripts/get_frequency.ts now destroys parser windows in a finally block, calls app.quit() when Electron is loaded, and uses explicit .then/.catch exits so the process terminates immediately after output with correct exit codes. scripts/test-yomitan-parser.ts now mirrors this pattern with runtime cleanup (shutdownYomitanRuntime) and explicit process exit handling.