Files
html/api/ethica-ma-boost.php
opus 8634581a57
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
AUTO-BACKUP 20260417-0105
2026-04-17 01:05:02 +02:00

10 lines
513 B
PHP

<?php
// Ethica MA scraper launcher — async via nohup (no wait)
header("Content-Type:application/json");
$t = $_GET["t"] ?? "";
if ($t !== "ETHICA_API_2026_SECURE") { http_response_code(403); die(json_encode(["error"=>"NO"])); }
$b = (int)($_GET["batch"] ?? 50);
$logfile = "/var/log/weval/ethica-ma-boost-" . date("Ymd-His") . ".log";
@exec("nohup python3 /opt/weval-l99/ethica-enrich-ma.py $b > $logfile 2>&1 &");
echo json_encode(["ok"=>true,"action"=>"scraper_launched_async","batch"=>$b,"log"=>$logfile]);