ikinci temizlik tamamlandı
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
# Queue Monitor Script for Register Creator
|
||||
|
||||
echo "=== Queue Worker Status ==="
|
||||
ps aux | grep "stellar2.*queue:work" | grep -v grep || echo "No stellar2 queue worker found"
|
||||
|
||||
echo ""
|
||||
echo "=== Recent Queue Worker Log (last 15 lines) ==="
|
||||
tail -15 /var/www/html/stellar2/storage/logs/queue-worker.log
|
||||
|
||||
echo ""
|
||||
echo "=== Active Register Creator Jobs ==="
|
||||
php /var/www/html/stellar2/artisan tinker --execute="
|
||||
\$queue = Cache::get('register-creator-queue', []);
|
||||
if (empty(\$queue)) {
|
||||
echo 'No active jobs\n';
|
||||
} else {
|
||||
foreach (\$queue as \$jobId => \$data) {
|
||||
echo \"Job ID: \$jobId\n\";
|
||||
echo \" User: \" . (\$data['user']->name ?? 'Unknown') . \"\n\";
|
||||
echo \" Started: \" . \$data['started_at'] . \"\n\";
|
||||
echo \" Status: \" . \$data['status'] . \"\n\";
|
||||
echo \"\n\";
|
||||
}
|
||||
}
|
||||
"
|
||||
|
||||
echo ""
|
||||
echo "=== Jobs in Queue ==="
|
||||
php /var/www/html/stellar2/artisan tinker --execute="
|
||||
\$jobs = DB::table('jobs')->where('queue', 'default')->count();
|
||||
echo \"Total jobs waiting: \$jobs\n\";
|
||||
"
|
||||
|
||||
echo ""
|
||||
echo "=== Failed Jobs ==="
|
||||
php /var/www/html/stellar2/artisan queue:failed | head -20
|
||||
Reference in New Issue
Block a user