From 00ff465519e2ac6d6c1b9beddbe5e51937d4825a Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 15 Apr 2015 03:16:59 -0700 Subject: disable 'rake cleanup:sessions' cron job. --- puppet/modules/site_webapp/manifests/cron.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/puppet/modules/site_webapp/manifests/cron.pp b/puppet/modules/site_webapp/manifests/cron.pp index bdf0fb74..d26ee312 100644 --- a/puppet/modules/site_webapp/manifests/cron.pp +++ b/puppet/modules/site_webapp/manifests/cron.pp @@ -14,11 +14,14 @@ class site_webapp::cron { hour => 1, minute => 1; + # there is no longer a need to remove expired sessions, since the database + # will get destroyed. 'remove_expired_sessions': command => 'cd /srv/leap/webapp && bundle exec rake cleanup:sessions', environment => 'RAILS_ENV=production', hour => 2, - minute => 30; + minute => 30, + ensure => absent; 'remove_expired_tokens': command => 'cd /srv/leap/webapp && bundle exec rake cleanup:tokens', -- cgit v1.2.3