app.celery.ContextTask.replace
- ContextTask.replace(sig)
Replace this task, with a new task inheriting the task id.
Execution of the host task ends immediately and no subsequent statements will be run.
New in version 4.0.
- Parameters
sig (Signature) – signature to replace with.
- Raises
~@Ignore – This is always raised when called in asynchronous context.
It is best to always use return self.replace(...) to convey –
to the reader that the task won't continue after being replaced. –