new-site/infra/cron/pw-hc-refresh
justin 167c4a3847 infra/cron: multi-segment hc warmup + weekly data-refresh cron
Tracks the deployed cron.d files in the repo:
- pw-hc-campaign: updated comment to reflect the now multi-segment warmup
  (revalidation + OIG + NPPES + reactivation + bundle); command unchanged.
- pw-hc-refresh (NEW): Mon 06:00 Central weekly data refresh, ~1h before the
  07:00 weekday send, so every send uses fresh CMS/OIG status.
2026-06-08 03:15:47 -05:00

8 lines
627 B
Text

# Healthcare data refresh: weekly re-check of every emailable NPI against the
# live government sources (CMS Revalidation list, OIG LEIE) so warmup sends
# never go stale. Runs Mon 06:00 Central, ~1h before the 07:00 weekday send,
# and propagates fresh status into the channel CSVs the campaign cron reads.
# Takes ~8 min (per-NPI CMS lookups + 15MB OIG download). SAM is opt-in only
# (--sam-pages N); SAM exclusions rarely carry an NPI, so OIG LEIE is the
# NPI-bearing exclusion source for the cross-flag.
0 6 * * 1 deploy cd /opt/performancewest && python3 -u scripts/hc_data_refresh.py >> /var/log/pw-hc-refresh.log 2>&1