Skip to content

Commit

Permalink
Merge pull request #59 from Signalen/feat/add-worker-liveness-probe
Browse files Browse the repository at this point in the history
Add liveness probe for Celery worker
  • Loading branch information
4c0n authored Aug 7, 2023
2 parents 1f45ddc + 2a6326b commit 16d7168
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/backend/templates/deployment-celery-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ spec:
- 'worker'
- '--loglevel={{ .Values.celery.loglevel }}'
- '--concurrency={{ .Values.celery.concurrency }}'
livenessProbe:
exec:
command: [
"bash",
"-c",
"celery --app=signals inspect ping -d celery@$HOSTNAME"
]
initialDelaySeconds: 60
periodSeconds: 120
timeoutSeconds: 10
env:
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
Expand Down

0 comments on commit 16d7168

Please sign in to comment.