Configure trucking deficiency campaign cron env
This commit is contained in:
parent
72da37e47d
commit
5c35140a22
5 changed files with 41 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -20,6 +20,8 @@ import sys
|
|||
|
||||
ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
BTC = os.path.join(ROOT, "scripts/build_trucking_campaigns.py")
|
||||
if ROOT not in sys.path:
|
||||
sys.path.insert(0, ROOT)
|
||||
|
||||
|
||||
def main() -> int:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue