def read_schedule(self, ts): return [ registry.get_task_for_message(m) for m in self._read_schedule(ts)]
def read_schedule(self, ts): return [ registry.get_task_for_message(m) for m in self._read_schedule(ts) ]
def dequeue(self): message = self._read() if message: return registry.get_task_for_message(message)