The source project of this merge request has been removed.
Draft: Scheduler pruning via thread-on-demand
Before raising this MR, consider whether the following are required, and complete if so:
-
Unit tests -
Metrics -
Documentation update(s)
If not required, please explain in brief why not.
Description
Using configurable parameters, spin off a thread to execute DELETE statements against the jobs
table, pruning older rows
Changes proposed in this merge request:
-
buildgrid/server/persistence/interface.py
- add abstract method -
buildgrid/server/persistence/mem/impl.py
- add noop method -
buildgrid/server/persistence/sql/impl.py
- implement the pruning calls -
buildgrid/server/scheduler.py
- add call into the pruning method
Validation
TBD
Issues addressed
Edited by Frank Kolarek