diff --git a/charts/studio/templates/deployment-studio-dvcx-worker.yaml b/charts/studio/templates/deployment-studio-dvcx-worker.yaml index ac267d5a..220261b4 100644 --- a/charts/studio/templates/deployment-studio-dvcx-worker.yaml +++ b/charts/studio/templates/deployment-studio-dvcx-worker.yaml @@ -71,6 +71,15 @@ spec: - secretRef: name: {{ .Values.studioDvcxWorker.envFromSecret }} {{- end }} + livenessProbe: + exec: + command: + - python + - -c + - 'from viewer.utils import sqlalchemy_liveness_probe; sqlalchemy_liveness_probe()' + initialDelaySeconds: 10 + periodSeconds: 10 + timeoutSeconds: 10 volumeMounts: {{- if not .Values.global.blobvault.bucket }} - name: blobvault