Implement Booking Cleanup Task 97/54497/3
authorSawyer Bergeron <sbergeron@iol.unh.edu>
Mon, 26 Mar 2018 21:07:55 +0000 (17:07 -0400)
committerSawyer Bergeron <sbergeron@iol.unh.edu>
Tue, 27 Mar 2018 18:47:53 +0000 (18:47 +0000)
commit104e45c7494d114ce3dd068e35501ed93d527dd2
tree0fe44158e8e20fffa1daaafceed509bef687c80e
parentb011d39bb162bf77f4bca8c6708b82973eb56eb6
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 <sbergeron@iol.unh.edu>
dashboard/config.env.sample
dashboard/src/dashboard/tasks.py
dashboard/src/pharos_dashboard/settings.py