diff --git a/funcx/templates/forwarder-deployment.yaml b/funcx/templates/forwarder-deployment.yaml index 3af18ff..a825ebc 100644 --- a/funcx/templates/forwarder-deployment.yaml +++ b/funcx/templates/forwarder-deployment.yaml @@ -39,6 +39,8 @@ spec: {{- else }} value: "{{ .Values.services.rabbitmq.externalURI }}" {{- end }} + - name: RABBITMQ_QUEUE_TTL + value: "{{ .Values.services.rabbitmq.queueTTL }}" {{- if not .Values.forwarder.useAWSMetadataServer }} - name: ADVERTISED_FORWARDER_ADDRESS valueFrom: diff --git a/funcx/templates/websocket-service-deployment.yaml b/funcx/templates/websocket-service-deployment.yaml index 40b9e7c..8d80cb8 100644 --- a/funcx/templates/websocket-service-deployment.yaml +++ b/funcx/templates/websocket-service-deployment.yaml @@ -40,6 +40,8 @@ spec: {{- else }} value: "{{ .Values.services.rabbitmq.externalURI }}" {{- end }} + - name: RABBITMQ_QUEUE_TTL + value: "{{ .Values.services.rabbitmq.queueTTL }}" - name: WEB_SERVICE_URI value: "http://{{ .Release.Name }}-funcx-web-service:8000" diff --git a/funcx/values.yaml b/funcx/values.yaml index 8556d6b..8d47920 100644 --- a/funcx/values.yaml +++ b/funcx/values.yaml @@ -66,6 +66,8 @@ services: rabbitmq: enabled: true externalHost: rabbitmq + # TTL in seconds + queueTTL: 604800 postgresql: postgresqlUsername: funcx