Skip to content

Commit

Permalink
Fix queue env name to GOOD_JOB_QUEUES (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther authored Oct 23, 2024
1 parent b72d1e8 commit 3962c93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/quiet-insects-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@openproject/helm-charts": patch
---

Fix background queue name not being picked up
2 changes: 1 addition & 1 deletion charts/openproject/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
- /app/docker/prod/worker
env:
{{- include "openproject.env" . | nindent 12 }}
- name: "QUEUE"
- name: "GOOD_JOB_QUEUES"
value: "{{ $workerValues.queues }}"
volumeMounts:
{{- include "openproject.tmpVolumeMounts" . | indent 12 }}
Expand Down
6 changes: 3 additions & 3 deletions spec/charts/openproject/worker_queues_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
expect(template.keys).to include 'Deployment/optest-openproject-worker-default'
expect(template.dig('Deployment/optest-openproject-worker-default', 'spec', 'replicas'))
.to eq(1)
expect(template.env('Deployment/optest-openproject-worker-default', 'openproject', 'QUEUE'))
expect(template.env('Deployment/optest-openproject-worker-default', 'openproject', 'GOOD_JOB_QUEUES'))
.to be_nil

expect(template.keys).to include 'Deployment/optest-openproject-worker-multitenancy'
expect(template.dig('Deployment/optest-openproject-worker-multitenancy', 'spec', 'replicas'))
.to eq(1)
expect(template.env_named('Deployment/optest-openproject-worker-multitenancy', 'openproject', 'QUEUE')['value'])
expect(template.env_named('Deployment/optest-openproject-worker-multitenancy', 'openproject', 'GOOD_JOB_QUEUES')['value'])
.to eq('multitenancy')

expect(template.keys).to include 'Deployment/optest-openproject-worker-bim'
expect(template.dig('Deployment/optest-openproject-worker-bim', 'spec', 'replicas'))
.to eq(0)
expect(template.env_named('Deployment/optest-openproject-worker-bim', 'openproject', 'QUEUE')['value'])
expect(template.env_named('Deployment/optest-openproject-worker-bim', 'openproject', 'GOOD_JOB_QUEUES')['value'])
.to eq('bim,ifc_conversion')
end
end
Expand Down

0 comments on commit 3962c93

Please sign in to comment.