def reserve(self, entry): new_entry = Scheduler.reserve(self, entry) # Need to story entry by name, because the entry may change # in the mean time. self._dirty.add(new_entry.name) if self.should_flush(): self.logger.debug("Celerybeat: Writing schedule changes...") self.flush() return new_entry
def reserve(self, entry): """ This is called when a new instance of a task is scheduled to run. Hook in here so we can avoid saving updates to tasks that have none. """ new_entry = Scheduler.reserve(self, entry) # Add to a list of what has changed. Store by name since the entry # itself may be a different instance by the time we get to it. self._dirty.add(new_entry.name) return new_entry
def reserve(self, entry): new_entry = Scheduler.reserve(self, entry) # Need to store entry by name, because the entry may change # in the mean time. self._dirty.add(new_entry.name) return new_entry
def reserve(self, entry): new_entry = Scheduler.reserve(self, entry) return new_entry
def reserve(self, entry): """Reserve the task.""" new_entry = Scheduler.reserve(self, entry) return new_entry