auto-sync-2240

This commit is contained in:
opus
2026-04-21 22:40:02 +02:00
parent 927e3aaaa0
commit f33599517d
3 changed files with 13 additions and 2 deletions

11
api/ambre-pw-killall.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
header("Content-Type: application/json");
$out = [];
// Try multiple kill methods
$out["pkill_user"] = trim(@shell_exec("pkill -9 -u www-data -f playwright 2>&1") ?: "(empty)");
$out["pkill_f_all"] = trim(@shell_exec("pkill -9 -f chat-capabilities 2>&1") ?: "(empty)");
$out["pkill_node"] = trim(@shell_exec("pkill -9 -f "node.*playwright" 2>&1") ?: "(empty)");
sleep(2);
$out["remaining"] = trim(@shell_exec("ps -ef | grep -E "playwright|chromium.*headless" | grep -v grep | wc -l") ?: "0");
$out["procs_snapshot"] = trim(@shell_exec("ps -ef | grep playwright | grep -v grep | awk "{print \$2, \$10, \$11}" | head -10") ?: "");
echo json_encode($out, JSON_PRETTY_PRINT);

View File

@@ -1,5 +1,5 @@
{
"generated_at": "2026-04-21T22:30:01.251400",
"generated_at": "2026-04-21T22:40:01.476346",
"stats": {
"total": 48,
"pending": 31,

View File

@@ -1,7 +1,7 @@
{
"ok": true,
"version": "V83-business-kpi",
"ts": "2026-04-21T20:31:41+00:00",
"ts": "2026-04-21T20:39:59+00:00",
"summary": {
"total_categories": 8,
"total_kpis": 64,