Conversation
added 2 commits
February 27, 2026 23:58
…k cache
Persistent gRPC channel:
- Replace per-request _get_channel() context manager with lazy _channel property
- Single TLS channel reused across all mediator calls in a session
- Add close(), __enter__, __exit__, __del__ for proper lifecycle management
- Eliminates FD shutdown errors from repeated channel creation/teardown
Resumable download cache:
- New DownloadCache class saves completed chunks to hidden JSON file per serial+date
- Cache file (.{serial}-{YYYYMMDD}.download_cache.json) persists in output directory
- Each successful chunk saved immediately so progress survives crashes/timeouts
- On next run, cached chunks are loaded and skipped - only missing chunks downloaded
- Cache deleted only after full day download succeeds and CSVs are written
- CachedLog1Record/CachedLog2Record dataclasses duck-type compatible with EmopProfileLog records
- Automatic - no CLI flags or config needed
Exclude Cython compiled shared objects from version control.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@damonrand turning your branch into a PR. can discuss on here.