feat: run the data load on a systemd timer #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/etl-systemd-timer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the unit files, an example environment file, and setup notes for
running update_polk_county_db.py on the app host. systemd rather than cron
because cron isn't installed there, and because EnvironmentFile= reads the
credentials directly — under cron that needs a wrapper to source them.
Also streams the PostgreSQL sync instead of materializing each table. The
previous fetchall(), plus the second copy that building one batch list
creates, held two complete copies of a 170k-400k row table in memory and was
OOM-killed on the 464MB app host during the first real run.
Co-Authored-By: Claude Opus 5 noreply@anthropic.com