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

Method _next_instance

celery/beat.py:140–146  ·  view source on GitHub ↗

Return new instance, with date and count fields updated.

(self, last_run_at=None)

Source from the content-addressed store, hash-verified

138 _default_now = default_now # compat
139
140 def _next_instance(self, last_run_at=None):
141 """Return new instance, with date and count fields updated."""
142 return self.__class__(**dict(
143 self,
144 last_run_at=last_run_at or self.default_now(),
145 total_run_count=self.total_run_count + 1,
146 ))
147 __next__ = next = _next_instance # for 2to3
148
149 def __reduce__(self):

Callers

nothing calls this directly

Calls 2

default_nowMethod · 0.95
__class__Method · 0.80

Tested by

no test coverage detected