From 104e45c7494d114ce3dd068e35501ed93d527dd2 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Mon, 26 Mar 2018 17:07:55 -0400 Subject: Implement Booking Cleanup Task Jira: PHAROS-344 Two new settings in config.env allow setting 1) how "stale" an expired booking can get before being culled and 2) how many expired bookings are kept around before culling If either condition is met, expired bookings will be deleted until both are false. Change-Id: I6b091e93c6fe5d47b75ebf5325b717fa898c773c Signed-off-by: Sawyer Bergeron --- dashboard/config.env.sample | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dashboard/config.env.sample') diff --git a/dashboard/config.env.sample b/dashboard/config.env.sample index c36e52a..8d0afd6 100644 --- a/dashboard/config.env.sample +++ b/dashboard/config.env.sample @@ -23,6 +23,10 @@ JIRA_USER_PASSWORD=sample_jira_pass RABBITMQ_USER=opnfv RABBITMQ_PASSWORD=opnfvopnfv +# Cleanup: time is in days +BOOKING_EXPIRE_TIME=30 +BOOKING_MAXIMUM_NUMBER=10 + #Jenkins Build Server JENKINS_URL=https://build.opnfv.org/ci -- cgit 1.2.3-korg