Skip to content

Commit

Permalink
Merge pull request #84 from Signalen/feat/configurable-celery-args
Browse files Browse the repository at this point in the history
Make Celery arguments configurable
  • Loading branch information
bartjkdp authored Jan 17, 2025
2 parents 1820636 + 84818b3 commit d9cf47e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: backend
description: The API for the Signals application
type: application
version: 4.18.0
version: 4.18.1
appVersion: 2.37.17

dependencies:
Expand Down
6 changes: 6 additions & 0 deletions charts/backend/templates/deployment-celery-beat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/usr/local/bin/celery"]
args:
{{ if .Values.celery.beat.args }}
{{- with .Values.celery.beat.args }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{ else }}
- '--app=signals'
- 'beat'
- '--loglevel={{ .Values.celery.loglevel }}'
- '--pidfile=/tmp/celerybeat.pid'
{{ end }}
env:
{{- range $key, $value := .Values.env }}
- name: {{ $key }}
Expand Down
6 changes: 6 additions & 0 deletions charts/backend/templates/deployment-celery-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: ["/usr/local/bin/celery"]
args:
{{ if .Values.celery.worker.args }}
{{- with .Values.celery.worker.args }}
{{- toYaml . | nindent 12 }}
{{- end }}
{{ else }}
- '--app=signals'
- 'worker'
- '--loglevel={{ .Values.celery.loglevel }}'
- '--concurrency={{ .Values.celery.concurrency }}'
{{ end }}
livenessProbe:
exec:
command: [
Expand Down
4 changes: 4 additions & 0 deletions charts/backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ uwsgi:
celery:
loglevel: WARNING
concurrency: 2
beat:
args: []
worker:
args: []

deploymentStrategy: RollingUpdate

Expand Down
2 changes: 1 addition & 1 deletion charts/classification/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: classification
description: Machine learning prediction API
type: application
version: 4.18.0
version: 4.18.1
appVersion: ad60447d1733473e30ab0a3ba53d58141cc1d250
2 changes: 1 addition & 1 deletion charts/frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: frontend
description: The web frontend for the Signals application
type: application
version: 4.18.0
version: 4.18.1
appVersion: 2.26.2

0 comments on commit d9cf47e

Please sign in to comment.