diff --git a/crontab-backup-20260306-1243.txt b/crontab-backup-20260306-1243.txt new file mode 100644 index 00000000..5b1298c1 --- /dev/null +++ b/crontab-backup-20260306-1243.txt @@ -0,0 +1,69 @@ + +# --- Brain Optimization --- +# --- Brain Send --- +# --- Brain Tracking --- +# --- E2E Pipeline --- +# --- Ethica (B2B Medical) --- +# --- Matviews Refresh --- +# --- Monitoring & Maintenance --- +# --- Original Guardian/Sentinel (from snapshot) --- +# --- Warmup --- +# === WEVADS ADX Production Crons === +# KB Auto-Scraper - Deployed 2026-03-02 +# KILLED-REGRESSION: 0 22 * * * curl -s http://localhost:5890/api/guardian-scan.php?action=full_scan > /var/log/guardian-scan.log 2>&1 +# KILLED-REGRESSION: 0 22 * * * curl -s http://localhost:5890/api/sentinel-brain.php?action=scan&fix=1 >> /var/log/sentinel.log 2>&1 +# Migrated from CCX33 - All additions, no ADX changes +# PG TCP Watchdog - restart if TCP down +# 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 +# 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-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 +# STANDBY-SEND tracking-seeds-opens: 30 */2 * * * php /opt/wevads/public/api/brain-tracking-seeds.php check_opens >> /var/log/wevads/brain-graph.log 2>&1 +# STANDBY-SEND tracking-seeds-send: 0 */2 * * * php /opt/wevads/public/api/brain-tracking-seeds.php send_tracked >> /var/log/wevads/brain-graph.log 2>&1 +# STANDBY-SEND warmup-advance: 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 +# STANDBY-SEND warmup-execute: */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 +# STANDBY-SEND warmup-reset: 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 +# WEVIA AI Innovation Learner - Every 6h - Deployed 2026-03-02 +*/1 * * * * crontab -l > /opt/wevads/crontab-sync.txt 2>/dev/null +*/10 * * * * /usr/local/bin/weval-watchdog +*/15 * * * * curl -s http://localhost:5821/api/bounce-processor.php >> /var/log/wevads/bounce-cron.log 2>&1 +*/15 * * * * php /opt/wevads/public/api/brain-productive.php send >> /var/log/wevads/brain-productive.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 /dev/null 2>&1 +*/15 7-22 * * * /usr/bin/bash /opt/wevads/scripts/send_batch.sh 200 >> /opt/wevads/logs/send_cron_output.log 2>&1 +*/30 * * * * /opt/wevads/scripts/mind-autonomous.sh >> /opt/wevads/logs/mind-cron.log 2>&1 +*/30 * * * * /opt/wevads/scripts/sentinel-autorepair.sh --analyze-only +*/30 * * * * curl -s "http://127.0.0.1:5821/api/conversions-collector.php?action=pull" >> /opt/wevads/logs/conversions-pull.log 2>&1 +*/30 * * * * php /opt/wevads/public/api/brain-graph-api.php send >> /var/log/wevads/brain-graph.log 2>&1 +*/30 * * * * php /opt/wevads/scripts/brain-pipeline.php full >> /var/log/wevads/brain-pipeline.log 2>&1 +*/30 * * * * php /opt/wevads/scripts/ethica/ethica-google-verify-v2.php 50 >> /opt/wevads/logs/ethica-google-verify.log 2>&1 +*/30 * * * * php /opt/wevads/scripts/ethica/ethica-validator.php 500 >> /opt/wevads/logs/ethica-validator.log 2>&1 +*/5 * * * * /opt/wevads/scripts/security-sentinel.sh >> /opt/wevads/logs/security-sentinel-cron.log 2>&1 +*/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 +*/5 * * * * php /opt/wevads/public/api/brain-pmta-send.php send >> /var/log/wevads/brain-pmta.log 2>&1 +*/5 * * * * php /opt/wevads/scripts/ethica/ethica-enricher.php 10000 >> /opt/wevads/logs/ethica-enricher.log 2>&1 +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 +0 * * * * curl -s 'http://127.0.0.1:5890/api/affiliate-hamid-check.php' >> /opt/wevads/logs/hamid-affiliate.log 2>&1 +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 * * * * python3 /opt/wevads/scripts/creative-performance-engine.py all 20 >> /opt/wevads/logs/creative-perf.log 2>&1 +0 */2 * * * php /opt/wevads/public/api/kb-sync-cron.php >> /var/log/wevads/claude_kb_sync.log 2>&1 +0 */4 * * * /opt/wevads/scripts/brain-optimizer-cron.sh +0 */4 * * * php /opt/wevads/scripts/scrape-to-sendcontacts.php >> /opt/wevads/logs/scrape-feeder.log 2>&1 +0 */6 * * * /opt/wevads/crons/wevia-ai-learner.sh +0 */6 * * * /opt/wevads/kb-auto-enrich.sh +0 */6 * * * /opt/wevads/scripts/rsync-backup-s88.sh +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 +0 */6 * * * php /opt/wevads/public/api/brain-graph-api.php discover >> /var/log/wevads/brain-graph.log 2>&1 +0 */6 * * * php /opt/wevads/scripts/brain-creative-engine.php full_cycle >> /opt/wevads/logs/brain-creative-engine.log 2>&1 +0 */6 * * * php /opt/wevads/scripts/ethica/ethica-mega-scraper.php all all google >> /opt/wevads/logs/ethica-scraper-continuous.log 2>&1 +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 +0 0 * * * curl -s http://127.0.0.1:5821/api/ia-provider-factory.php?action=rotate > /dev/null 2>&1 +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 +0 22 * * * /opt/wevads/crons/kb-scraper-cron.sh +0 3 * * * /opt/wevads/scripts/pg-backup-s88.sh >> /var/log/wevads/pg-backup.log 2>&1 +0 3 1,15 * * php /opt/wevads/scripts/ethica/ethica-scraper.php all all >> /opt/wevads/logs/ethica-scraper.log 2>&1 +0 6 * * * php /opt/wevads/scripts/brain-pipeline.php factory >> /var/log/wevads/brain-pipeline.log 2>&1 +15,45 * * * * php /opt/wevads/public/api/brain-graph-api.php check >> /var/log/wevads/brain-graph.log 2>&1 +15,45 * * * * php /opt/wevads/scripts/brain-pipeline.php check >> /var/log/wevads/brain-pipeline.log 2>&1 +30 */6 * * * php /opt/wevads/scripts/ethica/ethica-mega-scraper.php all all directories >> /opt/wevads/logs/ethica-scraper-continuous.log 2>&1 +30 0 */3 * * /opt/wevads/scripts/offer-refresh-cron.sh +0 */2 * * * php /opt/wevads/cron/kb-auto-enrichment.php >> /opt/wevads/logs/kb-enrichment.log 2>&1