refactor: break up lifespan() into focused helpers #516

Closed
kimi wants to merge 0 commits from kimi/issue-514 into main
Collaborator

Extracts _init_services(), _auto_prune(), _register_error_recorder(), and _shutdown() from the 142-line lifespan() context manager, reducing it to ~25 lines.

Fixes #514

Extracts `_init_services()`, `_auto_prune()`, `_register_error_recorder()`, and `_shutdown()` from the 142-line `lifespan()` context manager, reducing it to ~25 lines. Fixes #514
kimi added 1 commit 2026-03-19 23:32:10 +00:00
refactor: break up lifespan() into focused helpers
All checks were successful
Tests / lint (pull_request) Successful in 3s
Tests / test (pull_request) Successful in 1m15s
c5e7dc09ae
Extract _init_services(), _auto_prune(), _register_error_recorder(),
and _shutdown() from the 142-line lifespan() context manager, reducing
it to ~25 lines that read as a clear startup/shutdown sequence.

Fixes #514

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Timmy closed this pull request 2026-03-19 23:36:27 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#516