further rework to the documentation

This commit is contained in:
Codex Agent
2025-11-20 12:31:21 +01:00
parent 6afa44d947
commit 9afcaa7836
90 changed files with 1721 additions and 29 deletions

27
scripts/queue-worker.sh Normal file
View File

@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# Generic queue worker entrypoint for Docker containers.
# Usage: queue-worker.sh [queue-name(s)]
# Example: queue-worker.sh default
# queue-worker.sh default,media-storage
set -euo pipefail
cd "${APP_PATH:-/var/www/html}"
CONNECTION="${QUEUE_CONNECTION:-redis}"
QUEUES="${1:-default}"
SLEEP="${QUEUE_SLEEP:-3}"
TRIES="${QUEUE_TRIES:-3}"
TIMEOUT="${QUEUE_TIMEOUT:-60}"
MAX_TIME="${QUEUE_MAX_TIME:-0}"
ARGS=("$CONNECTION" "--queue=${QUEUES}" "--sleep=${SLEEP}" "--tries=${TRIES}" "--timeout=${TIMEOUT}")
if [[ "${MAX_TIME}" != "0" ]]; then
ARGS+=("--max-time=${MAX_TIME}")
fi
echo "[queue-worker] Starting queue:work ${ARGS[*]}"
exec php artisan queue:work "${ARGS[@]}"