add queue monitor menu

This commit is contained in:
xiaomlove
2025-05-04 02:20:18 +07:00
parent 9f3730b9ac
commit ddd079f4fc
7 changed files with 25 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ elif [ "$SERVICE_NAME" = "queue" ]; then
while true; do
if [ -f "$ENV_FILE" ] && [ -d "$VENDOR_DIR" ]; then
echo_success "[Queue] Run queue:work at $(date '+%Y-%m-%d %H:%M:%S')";
php artisan queue:work --verbose --tries=3;
php artisan queue:horizon;
else
echo_info "[Queue] .env or vendor not existswait 5 seconds ...";
sleep 5;