fecc786d4a
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 9s
CI/CD Pipeline / Frontend Lint (push) Successful in 2m30s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
14 lines
280 B
Bash
14 lines
280 B
Bash
#!/bin/bash
|
|
# Worker 启动脚本 — 支持 WORKER_CONCURRENCY 环境变量
|
|
# 未设置时默认 2(保持向后兼容)
|
|
|
|
set -e
|
|
|
|
CONCURRENCY="${WORKER_CONCURRENCY:-2}"
|
|
|
|
exec celery \
|
|
-A worker_app.celery_app \
|
|
worker \
|
|
--loglevel=info \
|
|
"--concurrency=${CONCURRENCY}"
|