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
| Name | Type | Description |
|---|---|---|
| sig | [Signature](../../../celery/canvas/signature.md?sid=celery_canvas_signature) | The task signature being replaced that requires the addition of a replacement stamp. |
Returns
| Type | Description |
|---|---|
Any | The result of the parent class's on_replace method, typically the updated task signature or execution result. |