hc: warmup must run DAILY for the full 21-day ramp (not weekdays-only)

The HC warmup crons were '* * 1-5' (Mon-Fri), silently skipping weekends -- but a
proper warmup needs CONTINUOUS daily volume for 21 days (mailbox providers reward
consistency; gaps stall reputation). The Jun 14 'HC 0 sent' alert was just a
skipped Sunday, but the weekend skips also broke ramp continuity.

- pw-hc-campaign + pw-hc-nppes: '* * 1-5' -> '* * *' (daily), vendored + applied live.
- Re-aligned the warmup start stamp from calendar-day 9 to send-day 5 so the
  volume ramp matches reputation actually built (it had skipped ~4 weekend days,
  running the ramp ahead of real history).
- Fixed the stale 'Mon-Fri only' comment in daily_slice().
- Vendored nppes cron now carries the enriched-CSV + 4-segment config.
This commit is contained in:
justin 2026-06-14 21:02:08 -05:00
parent 134a2611f6
commit 2caab6aa69
3 changed files with 9 additions and 8 deletions

View file

@ -10,4 +10,4 @@
# Deliverability guard: warmup only mails SLIGHTLY-overdue providers (1-90 days
# by default, HC_OVERDUE_MIN/MAX) -- recently-lapsed practices still have live
# inboxes; heavily-overdue ones likely bounce and burn the warming IPs.
0 7 * * 1-5 deploy cd /opt/performancewest && HC_VERIFIED_CSV=/opt/performancewest/data/hc_warmup_nongoogle.csv python3 scripts/build_healthcare_campaigns_cron.py --start-campaign >> /opt/performancewest/logs/pw-hc-campaign.log 2>&1
0 7 * * * deploy cd /opt/performancewest && HC_VERIFIED_CSV=/opt/performancewest/data/hc_warmup_nongoogle.csv python3 scripts/build_healthcare_campaigns_cron.py --start-campaign >> /opt/performancewest/logs/pw-hc-campaign.log 2>&1

View file

@ -1,6 +1,6 @@
# NPPES institutional general-compliance warmup base (63k verified, MX-throttled).
# The reval segments (pw-hc-campaign) run at 07:00 from the small fresh-past-due
# file; this runs at 07:30 from the large verified NPPES institutional base into
# the OIG/general-screening segment, throttled PER MX OPERATOR so volume spreads
# across receiving systems instead of hammering one. Weekdays only.
30 7 * * 1-5 deploy cd /opt/performancewest && HC_VERIFIED_CSV=/opt/performancewest/data/hc_nppes_institutional_verified.csv HC_SEGMENTS=oig_screening python3 scripts/build_healthcare_campaigns_cron.py --start-campaign >> /opt/performancewest/logs/pw-hc-nppes.log 2>&1
# Healthcare NPPES institutional campaigns. Runs weekdays 07:30 from the large
# SMTP-verified + revalidation-enriched institutional base. Broad offers
# (OIG screening, NPPES data update) address the full ~62k verified pool;
# the revalidation segments target the ~1,400 genuine Medicare enrollees.
# Per-MX-operator throttled so volume spreads across receiving systems.
30 7 * * * deploy cd /opt/performancewest && HC_VERIFIED_CSV=/opt/performancewest/data/hc_nppes_institutional_enriched.csv HC_SEGMENTS=oig_screening,nppes_outdated,revalidation_overdue,revalidation_due_soon python3 scripts/build_healthcare_campaigns_cron.py --start-campaign >> /opt/performancewest/logs/pw-hc-nppes.log 2>&1