Example #1
0
 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
Example #2
0
 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
Example #3
0
 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
Example #4
0
 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
Example #5
0
 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
Example #6
0
 def reserve(self, entry):
     new_entry = Scheduler.reserve(self, entry)
     return new_entry
Example #7
0
 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
Example #8
0
 def reserve(self, entry):
     new_entry = Scheduler.reserve(self, entry)
     return new_entry
Example #9
0
 def reserve(self, entry):
     """Reserve the task."""
     new_entry = Scheduler.reserve(self, entry)
     return new_entry