Skip to content

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

#367 (closed)

Edited by Frank Kolarek

Merge request reports