[03] Pipeline state as a snapshot blob; DB becomes a downstream consumer - #21
Open
chondl wants to merge 5 commits into
Open
[03] Pipeline state as a snapshot blob; DB becomes a downstream consumer#21chondl wants to merge 5 commits into
chondl wants to merge 5 commits into
Conversation
… rows F1: the event-blob gate needs the pre-cycle objs to tell which events actually changed, so deepcopy them and pass as orig instead of None. team-page lag: build each team's current-year row from the in-memory objs (fresh this cycle) instead of the persisted read (previous cycle), matching the team_years list blob.
A5: deserialize now checks the embedded schema version and read_snapshot falls back to the DB path (logging why) on mismatch or a corrupt/short payload, instead of silently None-ing missing fields. Bump SNAPSHOT_SCHEMA on any ORM column change. A6: the staging tmp blob key carries pid+uuid so two concurrent publishers cannot race on a shared key.
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.
Replacement for #9 (auto-closed by branch rename). Part of the cph-staging series.