MCPcopy
hub / github.com/celery/celery / _next_instance

Method _next_instance

celery/beat.py:134–140  ·  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

132 _default_now = default_now # compat
133
134 def _next_instance(self, last_run_at=None):
135 """Return new instance, with date and count fields updated."""
136 return self.__class__(**dict(
137 self,
138 last_run_at=last_run_at or self.default_now(),
139 total_run_count=self.total_run_count + 1,
140 ))
141 __next__ = next = _next_instance # for 2to3
142
143 def __reduce__(self):

Callers

nothing calls this directly

Calls 2

default_nowMethod · 0.95
__class__Method · 0.80

Tested by

no test coverage detected