flake8-pie
flake8-pie copied to clipboard
celery-ignore-result
# err
@app.task(name="foo")
def foo() -> None:
...
# err
@shared_task(name="foo")
def foo() -> None:
...
# ok
@app.task(name="foo", ignore_result=True)
def foo() -> None:
...
# ok
@shared_task(name="foo", ignore_result=True)
def foo() -> None:
...
This might not be wise since AsyncResult can't be used to check the status if ignore_result is set to True
https://docs.celeryproject.org/en/stable/userguide/tasks.html#Task.ignore_result