Skip to main content

StampedTaskOnReplace

Custom task for stamping on replace

Constructor​

Signature​

def StampedTaskOnReplace()

Methods​


on_replace()​

@classmethod
def on_replace(
sig: [Signature](../../../celery/canvas/signature.md?sid=celery_canvas_signature)
) - > Any

Stamps the task signature with a StampOnReplace instance before executing the standard replacement logic.

Parameters​

NameTypeDescription
sig[Signature](../../../celery/canvas/signature.md?sid=celery_canvas_signature)The task signature being replaced that requires the addition of a replacement stamp.

Returns​

TypeDescription
AnyThe result of the parent class's on_replace method, typically the updated task signature or execution result.