praekelt/vumi — Issue #125: scheduler reads buckets in the future
Author: smn
Created: 2012-01-13 12:12:15+00:00
State: open

There's a bug in the `deliver_scheduled` function, it reads a bucket that's scheduled in the future. If the current timestamp is `16` seconds and `granularity` is 5 then it checks the `20` seconds bucket instead of the `15` seconds bucket. This results in the scheduler potentially releasing messages `timestamp % self.granularity` too early.