MCPcopy Create free account
hub / github.com/celery/celery / should_sync

Method should_sync

celery/beat.py:416–422  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

414 return True
415
416 def should_sync(self):
417 return (
418 (not self._last_sync or
419 (time.monotonic() - self._last_sync) > self.sync_every) or
420 (self.sync_every_tasks and
421 self._tasks_since_sync >= self.sync_every_tasks)
422 )
423
424 def reserve(self, entry):
425 new_entry = self.schedule[entry.name] = next(entry)

Callers 2

apply_asyncMethod · 0.95
startMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected