Provider moved the INC CDC feed to a new bucket (tickets -> isptickets, new per-bucket creds; same s3.rahamafresh.com endpoint, identical 32-col schema). This is config + a one-time reseed, not a rewrite — the loader already drains automations/inc/changes/ oldest->newest with a source_max_key watermark. - default _BUCKET -> isptickets (TICKETS_BUCKET still overrides) - add --reseed: ignore the stored watermark and drain every changes/ file once (the old-bucket watermark may post-date the new bucket's first file). Crash-safe via the existing per-file watermark-advance + archive loop. - refresh stale "newest-file / full-snapshot-per-hour" docstring/comments to the CDC reality; .env.example + README updated (new bucket + reseed runbook). Verified live dry-run: 41/41 files drained (watermark None), alarm/sentinel filter active, exit 0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
17 lines
801 B
Text
17 lines
801 B
Text
# fleettickets — copy to .env and fill in. NEVER commit the real .env.
|
|
|
|
# Shared database (the `tickets` schema lives in tracksolid_db; internal Docker host)
|
|
DATABASE_URL=postgresql://tracksolid_owner:<password>@timescale_db:5432/tracksolid_db
|
|
|
|
# S3 — source INC ticket CDC stream (isptickets bucket, automations/inc/changes/<EAT-ts>.csv)
|
|
RUSTFS_ENDPOINT=https://s3.rahamafresh.com
|
|
RUSTFS_ACCESS_KEY=isptickets
|
|
RUSTFS_SECRET_KEY=<secret>
|
|
RUSTFS_REGION=us-east-1
|
|
TICKETS_BUCKET=isptickets
|
|
|
|
# Geocoder (keyed — public Nominatim rate-limits bulk)
|
|
GEOCODER_PROVIDER=locationiq # locationiq | opencage
|
|
GEOCODER_API_KEY=<key>
|
|
GEOCODER_MIN_INTERVAL_S=1.1 # throttle to provider TOS
|
|
GEOCODER_MAX_KM=25 # reject a location geocode this far from its cluster centroid
|