The lottery scheduling mechanism was useful when started jobs were
considered eligible, and we wanted to give priority to unstarted jobs
over started ones. However since removing this execution model with the
introduction of heartbeats, the lottery has since become a needless
wrapper around rand-nth, which we can just use directly.
The lottery scheduling mechanism was useful when started jobs were considered eligible, and we wanted to give priority to unstarted jobs over started ones. However since removing this execution model with the introduction of heartbeats, the lottery has since become a needless wrapper around
rand-nth
, which we can just use directly.