Skip to content

Feature robustify profiles#33

Merged
chatch merged 3 commits intomainfrom
feature-robustify-profiles
Mar 2, 2026
Merged

Feature robustify profiles#33
chatch merged 3 commits intomainfrom
feature-robustify-profiles

Conversation

@chatch
Copy link
Copy Markdown
Member

@chatch chatch commented Mar 2, 2026

@damonrand turning your branch into a PR. can discuss on here.

Damon Rand 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.
@chatch chatch merged commit 6856121 into main Mar 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants