Skip to content
Snippets Groups Projects
Commit 7aad049a authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add clearsessions command to sidecar

parent cca2727d
No related branches found
No related tags found
1 merge request!15Dev
...@@ -101,7 +101,7 @@ spec: ...@@ -101,7 +101,7 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
command: [ "/bin/bash", "-c", "--" ] command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do python manage.py clear-sessions-history; find /uploaded-files -type f -mmin +360 -delete; sleep 3600; done;" ] args: [ "while true; do python manage.py clear-sessions-history; python manage.py clearsessions; find /uploaded-files -type f -mmin +360 -delete; sleep 3600; done;" ]
ports: ports:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.service.port }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment