Configure trucking deficiency campaign cron env

This commit is contained in:
justin 2026-06-03 23:04:41 -05:00
parent 72da37e47d
commit 5c35140a22
5 changed files with 41 additions and 1 deletions

View file

@ -15,9 +15,17 @@ Usage (inside the workers container on prod):
from __future__ import annotations
import argparse
import os
import sys
import build_trucking_campaigns as b # reuse lm_api + auth + segment defs
# Allow both supported invocation styles:
# python -m scripts.create_deficiency_source_campaigns
# python3 scripts/create_deficiency_source_campaigns.py
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if ROOT not in sys.path:
sys.path.insert(0, ROOT)
from scripts import build_trucking_campaigns as b # reuse lm_api + auth + segment defs
FROM_EMAIL = "Performance West <noreply@performancewest.net>"
TEMPLATE_ID = 6 # same wrapper template as the MCS-150 source campaign