Add cached field for current priority
Show the current priority in the frontend
Cache current priority values
Refactor scheduler
Tests for refactored scheduler
Poll for new builds before submitting
Use common real builds registration facility in watcher
Use task_id instead of id when comparing/ordering
Remove irrelevant watcher test
Log real builds
Better evr comparison when registering real builds
Better ordering by priority
Lock whole package table when filling current_priority

Update locks per row by default which may deadlock with resolver
Fill start time for real builds
Visually distinguish real builds