Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using new settings syntax result_backend does not work to replace CELERY_RESULT_BACKEND #7140

Open
10 of 18 tasks
Antsthebul opened this issue Dec 4, 2021 · 4 comments
Open
10 of 18 tasks

Comments

@Antsthebul
Copy link

Antsthebul commented Dec 4, 2021

Checklist

  • I have verified that the issue exists against the master branch of Celery.
  • This has already been asked to the discussions forum first. (only version <6.0)
  • I have read the relevant section in the
    contribution guide
    on reporting bugs.
  • I have checked the issues list
    for similar or identical bug reports.
  • I have checked the pull requests list
    for existing proposed fixes.
  • I have checked the commit log
    to find out if the bug was already fixed in the master branch.
  • I have included all related issues and possible duplicate issues
    in this issue (If there are none, check this box anyway).

Mandatory Debugging Information

  • I have included the output of celery -A proj report in the issue.
    (if you are not able to do this, then at least specify the Celery
    version affected).
  • I have verified that the issue exists against the master branch of Celery.
  • I have included the contents of pip freeze in the issue.
  • I have included all the versions of all the external dependencies required
    to reproduce this bug.

Optional Debugging Information

  • I have tried reproducing the issue on more than one Python version
    and/or implementation.
  • I have tried reproducing the issue on more than one message broker and/or
    result backend.
  • I have tried reproducing the issue on more than one version of the message
    broker and/or result backend.
  • I have tried reproducing the issue on more than one operating system.
  • I have tried reproducing the issue on more than one workers pool.
  • I have tried reproducing the issue with autoscaling, retries,
    ETA/Countdown & rate limits disabled.
  • I have tried reproducing the issue after downgrading
    and/or upgrading Celery and its dependencies.

Related Issues and Possible Duplicates

Related Issues

  • None

Possible Duplicates

  • None

Environment & Settings

Celery version:

celery report Output:


Steps to Reproduce

Required Dependencies

  • Minimal Python Version: Python 3.8/3.10
  • Minimal Celery Version: 5.2.1
  • Minimal Kombu Version: N/A or Unknown
  • Minimal Broker Version: Redis 6.2.6
  • Minimal Result Backend Version: Redis 6.2.6
  • Minimal OS and/or Kernel Version: N/A or Unknown
  • Minimal Broker Client Version: N/A or Unknown
  • Minimal Result Backend Client Version: N/A or Unknown

Python Packages

pip freeze Output:

amqp==5.0.6
appnope==0.1.2
asgiref==3.3.4
async-generator==1.10
atomicwrites==1.4.0
attrs==21.2.0
backcall==0.2.0
billiard==3.6.4.0
boto3==1.18.52
botocore==1.21.52
celery==5.2.1
certifi==2021.5.30
cffi==1.14.5
charset-normalizer==2.0.4
click==8.0.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
colorama==0.4.4
configparser==5.0.2
crayons==0.4.0
cryptography==3.4.7
decorator==5.0.9
Django==3.2.1
django-extensions==3.1.3
djangorestframework==3.12.4
djangorestframework-simplejwt==4.7.2
factory-boy==3.2.1
Faker==9.8.2
gunicorn==20.1.0
h11==0.12.0
idna==3.2
iniconfig==1.1.1
ipython==7.16.1
ipython-genutils==0.2.0
jedi==0.18.0
jmespath==0.10.0
kombu==5.2.2
numpy==1.21.4
outcome==1.1.0
packaging==21.2
parso==0.8.2
pexpect==4.8.0
pickleshare==0.7.5
pluggy==1.0.0
prompt-toolkit==3.0.18
ptyprocess==0.7.0
py==1.10.0
pycparser==2.20
Pygments==2.9.0
PyJWT==2.1.0
pyOpenSSL==21.0.0
pyparsing==2.4.7
pytest==6.2.5
pytest-django==4.4.0
python-dateutil==2.8.2
python-dotenv==0.19.0
pytz==2021.1
redis==3.5.3
requests==2.26.0
s3transfer==0.5.0
selenium==4.0.0
six==1.16.0
sniffio==1.2.0
sortedcontainers==2.4.0
sqlparse==0.4.1
stripe==2.63.0
text-unidecode==1.3
toml==0.10.2
traitlets==4.3.3
trio==0.19.0
trio-websocket==0.9.2
typing-extensions==3.10.0.0
urllib3==1.26.6
vine==5.0.0
wcwidth==0.2.5
webdriver-manager==3.5.1
wsproto==1.0.0
amqp==5.0.6
appnope==0.1.2
asgiref==3.3.4
async-generator==1.10
atomicwrites==1.4.0
attrs==21.2.0
backcall==0.2.0
billiard==3.6.4.0
boto3==1.18.52
botocore==1.21.52
celery==5.2.1
certifi==2021.5.30
cffi==1.14.5
charset-normalizer==2.0.4
click==8.0.3
click-didyoumean==0.3.0
click-plugins==1.1.1
click-repl==0.2.0
colorama==0.4.4
configparser==5.0.2
crayons==0.4.0
cryptography==3.4.7
decorator==5.0.9
Django==3.2.1
django-extensions==3.1.3
djangorestframework==3.12.4
djangorestframework-simplejwt==4.7.2
factory-boy==3.2.1
Faker==9.8.2
gunicorn==20.1.0
h11==0.12.0
idna==3.2
iniconfig==1.1.1
ipython==7.16.1
ipython-genutils==0.2.0
jedi==0.18.0
jmespath==0.10.0
kombu==5.2.2
numpy==1.21.4
outcome==1.1.0
packaging==21.2
parso==0.8.2
pexpect==4.8.0
pickleshare==0.7.5
pluggy==1.0.0
prompt-toolkit==3.0.18
ptyprocess==0.7.0
py==1.10.0
pycparser==2.20
Pygments==2.9.0
PyJWT==2.1.0
pyOpenSSL==21.0.0
pyparsing==2.4.7
pytest==6.2.5
pytest-django==4.4.0
python-dateutil==2.8.2
python-dotenv==0.19.0
pytz==2021.1
redis==3.5.3
requests==2.26.0
s3transfer==0.5.0
selenium==4.0.0
six==1.16.0
sniffio==1.2.0
sortedcontainers==2.4.0
sqlparse==0.4.1
stripe==2.63.0
text-unidecode==1.3
toml==0.10.2
traitlets==4.3.3
trio==0.19.0
trio-websocket==0.9.2
typing-extensions==3.10.0.0
urllib3==1.26.6
vine==5.0.0
wcwidth==0.2.5
webdriver-manager==3.5.1
wsproto==1.0.0

Other Dependencies

N/A

Minimally Reproducible Test Case

Expected Behavior

Result backend to be configured to the specified address.

Actual Behavior

The backend is configurable when either specifying the backend url in the Celery invocation, or using CELERY_RESULT_BACKEND.
But if using CELERY_RESULT_BACKEND the warning

    version 6.0.0. Use the result_backend instead```

is displayed yet when switching settings to `result_backend` as recommended the result backend is not configured and registerted as disabled.

@open-collective-bot
Copy link

Hey @Antsthebul 👋,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our Open Collective and consider backing us - every little helps!

We also offer priority support for our sponsors.
If you require immediate assistance please consider sponsoring us.

@Antsthebul Antsthebul changed the title Using new settings syntax does not work CELERY_RESULT_BACKEND Using new settings syntax result_backend does not work to replace CELERY_RESULT_BACKEND Dec 4, 2021
@auvipy
Copy link
Member

auvipy commented Dec 12, 2021

version 6.0.0. Use the result_backend instead```

is displayed yet when switching settings to result_backend as recommended the result backend is not configured and registerted as disabled.

-- you get this even after using result_backend?

@Antsthebul
Copy link
Author

When i switch to the recommended syntax the configured backend is not picked up

@thedrow
Copy link
Member

thedrow commented Feb 23, 2022

I've seen this myself. I don't know what's wrong though.

@auvipy auvipy added this to the 5.3 milestone Apr 4, 2022
@Nusnus Nusnus modified the milestones: 5.3, Future Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants