Files
wevads-platform/crontab-gold-backup-20260228_060059.txt

73 lines
6.5 KiB
Plaintext

# === WEVADS ADX Production Crons ===
# Migrated from CCX33 - All additions, no ADX changes
# --- E2E Pipeline ---
# FULL_STOP */15 * * * * curl -s http://localhost:5821/api/bounce-processor.php >> /var/log/wevads/bounce-cron.log 2>&1
*/30 * * * * curl -s "http://127.0.0.1:5821/api/conversions-collector.php?action=pull" >> /opt/wevads/logs/conversions-pull.log 2>&1
# --- Warmup ---
# FULL_STOP # DISABLED_ANTISPAM */15 6-22 * * * curl -s 'http://127.0.0.1:5890/api/warmup-engine.php?action=execute_warmup&batch=50' >> /opt/wevads/logs/warmup-execute.log 2>&1
# FULL_STOP 0 0 * * * curl -s 'http://127.0.0.1:5890/api/warmup-engine.php?action=advance_day' >> /opt/wevads/logs/warmup-advance.log 2>&1
# FULL_STOP 0 0 * * * sudo -u postgres psql adx_system -c "UPDATE admin.warmup_accounts SET sent_today=0 WHERE status='warming'" >> /opt/wevads/logs/warmup-reset.log 2>&1
# --- Brain Send ---
# DISABLED: */15 7-22 * * * /usr/bin/bash /opt/wevads/scripts/send_batch.sh 200 >> /opt/wevads/logs/send_cron_output.log 2>&1
# STANDBY-REALSEND: */15 * * * * php /opt/wevads/public/api/brain-productive.php send >> /var/log/wevads/brain-productive.log 2>&1
# DISABLED_ANTISPAM */30 * * * * php /opt/wevads/public/api/brain-graph-api.php send >> /var/log/wevads/brain-graph.log 2>&1
# STANDBY-REALSEND: */5 * * * * php /opt/wevads/public/api/brain-pmta-send.php send >> /var/log/wevads/brain-pmta.log 2>&1
# DISABLED_ANTISPAM */30 * * * * php /opt/wevads/scripts/brain-pipeline.php full >> /var/log/wevads/brain-pipeline.log 2>&1
# DISABLED_SPAM_RISK 15,45 * * * * php /opt/wevads/public/api/brain-graph-api.php check >> /var/log/wevads/brain-graph.log 2>&1
# DISABLED_SPAM_RISK 15,45 * * * * php /opt/wevads/scripts/brain-pipeline.php check >> /var/log/wevads/brain-pipeline.log 2>&1
# --- Brain Tracking ---
# DISABLED_ANTISPAM 0 */2 * * * php /opt/wevads/public/api/brain-tracking-seeds.php send_tracked >> /var/log/wevads/brain-graph.log 2>&1
# DISABLED_SPAM_RISK 30 */2 * * * php /opt/wevads/public/api/brain-tracking-seeds.php check_opens >> /var/log/wevads/brain-graph.log 2>&1
# --- Brain Optimization ---
# FULL_STOP 0 */4 * * * /opt/wevads/scripts/brain-optimizer-cron.sh
# DISABLED_SPAM_RISK 0 6 * * * php /opt/wevads/scripts/brain-pipeline.php factory >> /var/log/wevads/brain-pipeline.log 2>&1
# FULL_STOP 0 * * * * python3 /opt/wevads/scripts/creative-performance-engine.py all 20 >> /opt/wevads/logs/creative-perf.log 2>&1
# FULL_STOP 0 */6 * * * php /opt/wevads/scripts/brain-creative-engine.php full_cycle >> /opt/wevads/logs/brain-creative-engine.log 2>&1
# DISABLED_SPAM_RISK 0 */6 * * * php /opt/wevads/public/api/brain-graph-api.php discover >> /var/log/wevads/brain-graph.log 2>&1
# FULL_STOP 0 */4 * * * php /opt/wevads/scripts/scrape-to-sendcontacts.php >> /opt/wevads/logs/scrape-feeder.log 2>&1
# FULL_STOP 30 0 */3 * * /opt/wevads/scripts/offer-refresh-cron.sh
# --- Monitoring & Maintenance ---
*/5 * * * * /opt/wevads/scripts/security-sentinel.sh >> /opt/wevads/logs/security-sentinel-cron.log 2>&1
# FULL_STOP */30 * * * * /opt/wevads/scripts/mind-autonomous.sh >> /opt/wevads/logs/mind-cron.log 2>&1
# FULL_STOP */30 * * * * /opt/wevads/scripts/sentinel-autorepair.sh --analyze-only
# FULL_STOP 0 * * * * curl -s 'http://127.0.0.1:5890/api/affiliate-hamid-check.php' >> /opt/wevads/logs/hamid-affiliate.log 2>&1
# FULL_STOP 0 * * * * curl -s 'http://127.0.0.1:5890/api/affiliate-monitor.php?action=compare&from=2026-02-10&to=2026-02-11' >> /opt/wevads/logs/affiliate-monitor.log 2>&1
0 0 * * * curl -s http://127.0.0.1:5821/api/ia-provider-factory.php?action=rotate > /dev/null 2>&1
0 */2 * * * php /opt/wevads/public/api/kb-sync-cron.php >> /var/log/wevads/claude_kb_sync.log 2>&1
0 */6 * * * curl -s http://127.0.0.1:5890/api/vault-guard.php?action=cron >> /opt/wevads/logs/vault-guard-cron.log 2>&1
*/15 * * * * sudo -u postgres psql adx_system -c "UPDATE admin.ia_provider_accounts SET status='active' WHERE status='rate_limited' AND cooldown_until<NOW()" > /dev/null 2>&1
# --- Matviews Refresh ---
0 * * * * PGPASSWORD=admin123 psql -h /var/run/postgresql -U admin adx_system -c "REFRESH MATERIALIZED VIEW admin.v_affiliate_funnel; REFRESH MATERIALIZED VIEW admin.v_channel_summary;" > /dev/null 2>&1
# --- Ethica (B2B Medical) ---
# STANDBY-SEND ethica-send: 0 9 * * 1-5 php /opt/wevads/scripts/ethica/ethica-send.php auto 200 >> /opt/wevads/logs/ethica-send.log 2>&1
# STANDBY-SEND ethica-send: 0 14 * * 1-5 php /opt/wevads/scripts/ethica/ethica-send.php auto 200 >> /opt/wevads/logs/ethica-send.log 2>&1
# FULL_STOP 0 3 1,15 * * php /opt/wevads/scripts/ethica/ethica-scraper.php all all >> /opt/wevads/logs/ethica-scraper.log 2>&1
# FULL_STOP 0 0 * * * php -r "\$d=new PDO('pgsql:host=localhost;dbname=adx_system','admin','admin123');\$d->exec('UPDATE ethica.senders SET sent_today=0');" >> /opt/wevads/logs/ethica-reset.log 2>&1
# FULL_STOP # FULL_STOP 0 */6 * * * php /opt/wevads/scripts/ethica/ethica-mega-scraper.php all all google >> /opt/wevads/logs/ethica-scraper-continuous.log 2>&1
# FULL_STOP # FULL_STOP 30 */6 * * * php /opt/wevads/scripts/ethica/ethica-mega-scraper.php all all directories >> /opt/wevads/logs/ethica-scraper-continuous.log 2>&1
# FULL_STOP */30 * * * * php /opt/wevads/scripts/ethica/ethica-validator.php 500 >> /opt/wevads/logs/ethica-validator.log 2>&1
# STANDBY-SEND ethica-sms: 0 10 * * 1-5 php /opt/wevads/scripts/ethica/ethica-sms-send.php auto 500 >> /opt/wevads/logs/ethica-sms.log 2>&1
# STANDBY-SEND ethica-sms: 0 15 * * 1-5 php /opt/wevads/scripts/ethica/ethica-sms-send.php auto 500 >> /opt/wevads/logs/ethica-sms.log 2>&1
# FULL_STOP 0 0 * * * PGPASSWORD=admin123 psql -U admin -d adx_system -c "UPDATE ethica.sms_providers SET sent_today=0" >> /opt/wevads/logs/ethica-sms-reset.log 2>&1
# --- Original Guardian/Sentinel (from snapshot) ---
0 22 * * * curl -s http://localhost:5890/api/guardian-scan.php?action=full_scan > /var/log/guardian-scan.log 2>&1
0 22 * * * curl -s http://localhost:5890/api/sentinel-brain.php?action=scan&fix=0 >> /var/log/sentinel.log 2>&1
# PG TCP Watchdog - restart if TCP down
*/5 * * * * pg_isready -h 127.0.0.1 -p 5432 > /dev/null 2>&1 || sudo systemctl restart postgresql >> /opt/wevads/logs/pg-watchdog.log 2>&1
*/1 * * * * crontab -l > /opt/wevads/crontab-sync.txt 2>/dev/null
# --- Office → Graph Sync ---
# DISABLED_SPAM_RISK 0 */6 * * * php /opt/wevads/scripts/sync-office-to-graph.php >> /var/log/wevads/graph-sync.log 2>&1
# FULL_STOP */15 * * * * php /opt/wevads/public/api/wevia-self-heal.php >> /opt/wevads/logs/self-heal.log 2>&1
# FULL_STOP */30 * * * * php /opt/wevads/public/api/ghost-scout.php >> /opt/wevads/logs/ghost-scout.log 2>&1