MCPcopy
hub / github.com/celery/celery / _sync_with

Method _sync_with

celery/worker/state.py:239–246  ·  view source on GitHub ↗
(self, d)

Source from the content-addressed store, hash-verified

237 return d
238
239 def _sync_with(self, d):
240 self._revoked_tasks.purge()
241 d.update({
242 '__proto__': 3,
243 'zrevoked': self.compress(self._dumps(self._revoked_tasks)),
244 'clock': self.clock.forward() if self.clock else 0,
245 })
246 return d
247
248 def _merge_clock(self, d):
249 if self.clock:

Callers 2

syncMethod · 0.95

Calls 3

_dumpsMethod · 0.95
purgeMethod · 0.45
updateMethod · 0.45

Tested by 1