Skip to content

fix: regenerate GR calendar pickle after icalendar v7 break - #645

Merged
osaeedi merged 1 commit into
mainfrom
fix/gr-abstimmungen-ical-pickle
Oct 27, 2026
Merged

osaeedi merged 1 commit into
mainfrom
fix/gr-abstimmungen-ical-pickle

Conversation

@osaeedi

@osaeedi osaeedi commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • parlamentsdienst_gr_abstimmungen failed in prod after the dependency refresh: old grosser_rat_sitzungskalender.pickle embeds icalendar.vText, which no longer unpickles under icalendar 7.3.0.
  • Store calendar fields as plain Python types and regenerate from Google Calendar ICS when pickle load fails.

Test plan

  • Re-run the Airflow/Docker job for parlamentsdienst_gr_abstimmungen — should log regenerate-on-pickle-failure once, then succeed.
  • Confirm next run (within 12h cutoff) reads the new pickle without error.

Made with Cursor

Old pickles stored icalendar vText objects that fail to unpickle after the 6→7 upgrade. Persist plain strings and fall back to a fresh ICS fetch when read_pickle fails.

Co-authored-by: Cursor <cursoragent@cursor.com>
@osaeedi
osaeedi merged commit 9b459fb into main Oct 27, 2026
5 checks 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.

1 participant