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

Method on_replace

t/integration/tasks.py:625–627  ·  view source on GitHub ↗
(self, sig)

Source from the content-addressed store, hash-verified

623 """Custom task for stamping on replace"""
624
625 def on_replace(self, sig):
626 sig.stamp(StampOnReplace())
627 return super().on_replace(sig)
628
629 @shared_task(bind=True, base=StampedTaskOnReplace)
630 def replace_with_stamped_task(self: StampedTaskOnReplace, replace_with=None):

Callers

nothing calls this directly

Calls 2

StampOnReplaceClass · 0.70
stampMethod · 0.45

Tested by

no test coverage detected