flake8-pie icon indicating copy to clipboard operation
flake8-pie copied to clipboard

celery-ignore-result

Open sbdchd opened this issue 4 years ago • 0 comments

# 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

sbdchd avatar Jul 30 '21 14:07 sbdchd