Add a task to garbo-hourly to update out-of-date bug heat scores

Bug #509195 reported by Graham Binns
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Graham Binns

Bug Description

There should be a garbo-hourly task to pick up bugs whose heat_last_updated is older than a certain time and update their heat.

This should drip-feed heat calculation jobs (ICalculateBugHeatJob) into the queue for cronscripts/calculate-bug-heat.py to process. This avoids contention with that system, and should also help us to not swamp the database.

For example: if there are less than n outstanding heat calculations on the job queue, it should add calculation jobs for the 1000-n least recently heat-calculated bugs.

Related branches

Graham Binns (gmb)
Changed in malone:
importance: Undecided → High
status: New → Triaged
Revision history for this message
Gavin Panella (allenap) wrote :

It may make sense to add jobs with a lower priority than those created from bug activity. There's no db support for that as yet.

description: updated
Graham Binns (gmb)
Changed in malone:
assignee: nobody → Graham Binns (gmb)
status: Triaged → In Progress
Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit
Changed in malone:
status: In Progress → Fix Committed
Revision history for this message
Graham Binns (gmb) wrote :

This was due for a cherrypick, but it required DB permission changes, which rules it out. It will be rolled out with 10.03 and we'll have to run a script periodically to create the mop-up jobs in the meantime.

Changed in malone:
milestone: none → 10.03
Revision history for this message
Ursula Junque (ursinha) wrote :
tags: added: qa-needstesting
Graham Binns (gmb)
tags: added: qa-ok
removed: qa-needstesting
Graham Binns (gmb)
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.