|
|
@ -27,11 +27,15 @@ spec: |
|
|
|
command: [ "/bin/bash", "-c" ] |
|
|
|
args: |
|
|
|
- >- |
|
|
|
sleep $[RANDOM%120]; |
|
|
|
python3 /var/labhacker/audiencias/manage.py prune_rooms; |
|
|
|
python3 /var/labhacker/audiencias/manage.py prune_presences; |
|
|
|
[[ ! -z "$WEBSERVICE_URL" ]] && |
|
|
|
python3 /var/labhacker/audiencias/manage.py get_camara_webservice |
|
|
|
TIME=$[RANDOM%120]; |
|
|
|
echo Sleeping $TIME seconds...; |
|
|
|
sleep $TIME; |
|
|
|
echo Running prune_rooms... && python3 /var/labhacker/audiencias/manage.py prune_rooms; |
|
|
|
echo Running prune_presences... && python3 /var/labhacker/audiencias/manage.py prune_presences; |
|
|
|
if [[ ! -z "$WEBSERVICE_URL" ]]; then |
|
|
|
echo Running get_camara_webservice... && |
|
|
|
python3 /var/labhacker/audiencias/manage.py get_camara_webservice; |
|
|
|
fi; |
|
|
|
env: |
|
|
|
- name: ADMIN_EMAIL |
|
|
|
value: {{ .Values.edemocracia.admin.email | quote }} |
|
|
|