diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-10-23 09:49:37 +0100 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-10-23 09:49:37 +0100 |
commit | d7ca3f2f14ad28437f7332ca387a790fecb8b081 (patch) | |
tree | 90d364dc107b0c032ecc5befc4f36393d9b655b0 /ARCH | |
parent | f9ea6b7761a5dbfe7b5e5b2adcabf70525184d7e (diff) | |
parent | d91b652951cf9203c8e8cd255a0e0a81af6d2591 (diff) | |
download | lorry-controller-d7ca3f2f14ad28437f7332ca387a790fecb8b081.tar.gz |
Merge branch 'baserock/pedroalvarez/old-jobs-removal'
Reviewed-by: Richard Maw
Reviewed-by: Pedro Alvarez
Diffstat (limited to 'ARCH')
-rw-r--r-- | ARCH | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -282,9 +282,12 @@ Running job management: MINION gets around to it.) This request returns as soon as the STATEDB change is done. -* `GET /1.0/list-all-jobs` causes WEBAPP to return a JSON list of ids +* `GET /1.0/list-jobs` causes WEBAPP to return a JSON list of ids of all jobs, running or finished, that it knows about. (RQ/ALLJOBS) +* `GET /1.0/list-jobs-html` is the same as `list-jobs`, but returns an + HTML page instead. + * `POST /1.0/remove-job` with `job_id=jobid` in the body, removes a stopped job from the state database. @@ -369,6 +372,17 @@ The MINION to WEBAPP. * Go back to top to request new job. + +Old job removal +--------------- + +To avoid the STATEDB filling up with logs of old jobs, a systemd timer +unit will run occasionally to remove jobs so old, nobody cares about +them anymore. To make it easier to experiment with the logic of +choosing what to remove (age only? keep failed ones? something else?) +the removal is kept outside the WEBAPP. + + STATEDB ------- |