fix: make worker smoke healthchecks lightweight
Security Quality Gate / npm audit, Bandit, pip-audit, detect-secrets (pull_request) Successful in 25m40s
Security Quality Gate / npm audit, Bandit, pip-audit, detect-secrets (pull_request) Successful in 25m40s
This commit is contained in:
@@ -150,7 +150,7 @@ services:
|
||||
volumes:
|
||||
- contract-files:/data/contract-files
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-m", "yuqei_contract_api.review_worker", "--health"]
|
||||
test: ["CMD-SHELL", "tr '\\0' ' ' < /proc/1/cmdline | grep -Fq 'yuqei_contract_api.review_worker'"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -254,7 +254,7 @@ services:
|
||||
YUQEI_WORKER_TRACE_GOVERNANCE_BATCH_LIMIT: ${YUQEI_WORKER_TRACE_GOVERNANCE_BATCH_LIMIT:-100}
|
||||
YUQEI_WORKER_TRACE_GOVERNANCE_WORKER_NAME: ${YUQEI_WORKER_TRACE_GOVERNANCE_WORKER_NAME:-trace-governance-worker}
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-m", "yuqei_worker.main", "--health"]
|
||||
test: ["CMD-SHELL", "tr '\\0' ' ' < /proc/1/cmdline | grep -Fq 'yuqei_worker.main'"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user