Merge "Clear expired Django sessions regularly from DB"

This commit is contained in:
Jenkins
2015-06-25 11:20:04 +00:00
committed by Gerrit Code Review

View File

@@ -46,3 +46,14 @@
tags:
- horizon-db-sync
- horizon-setup
- name: Register DB session cleanup cron
cron:
name: "Clear out expired sessions"
minute: "{{ 58 | random(start=2) }}"
hour: 21
job: "/usr/local/bin/horizon-manage.py clearsessions"
user: "{{ horizon_system_user_name }}"
state: present
tags:
- horizon-db-setup