MCPcopy
hub / github.com/celery/celery / should_sync

Method should_sync

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

Source from the content-addressed store, hash-verified

379 return True
380
381 def should_sync(self):
382 return (
383 (not self._last_sync or
384 (time.monotonic() - self._last_sync) > self.sync_every) or
385 (self.sync_every_tasks and
386 self._tasks_since_sync >= self.sync_every_tasks)
387 )
388
389 def reserve(self, entry):
390 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