<h1 dir="auto">Checklist</h1>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&amp;q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>

<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Description</h1>

<p dir="auto">Tried to make documentation. <code class="notranslate">make docs</code> in <code class="notranslate">/</code> and <code class="notranslate">make html</code> in <code class="notranslate">/docs</code>. Got error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Exception occurred:
  File &quot;/usr/lib/python3.8/site-packages/docutils/nodes.py&quot;, line 567, in __getitem__
    return self.attributes[key]
KeyError: 'refdoc'
The full traceback has been saved in /tmp/sphinx-err-qa973efh.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at &lt;https://github.com/sphinx-doc/sphinx/issues&gt;. Thanks!
make[1]: *** [Makefile:55: html] Error 2
make[1]: Leaving directory '/home/lash/src/ext/python/celery/docs'
make: *** [Makefile:76: Documentation] Error 2"><pre class="notranslate"><code class="notranslate">Exception occurred:
  File "/usr/lib/python3.8/site-packages/docutils/nodes.py", line 567, in __getitem__
    return self.attributes[key]
KeyError: 'refdoc'
The full traceback has been saved in /tmp/sphinx-err-qa973efh.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at &lt;https://github.com/sphinx-doc/sphinx/issues&gt;. Thanks!
make[1]: *** [Makefile:55: html] Error 2
make[1]: Leaving directory '/home/lash/src/ext/python/celery/docs'
make: *** [Makefile:76: Documentation] Error 2
</code></pre></div>
<p dir="auto">Tried with <code class="notranslate">master@f2ddd894c32f642a20f03b805b97e460f4fb3b4f</code> and <code class="notranslate">v4.3.0</code></p>
<p dir="auto">Using <code class="notranslate">python@3.8.1</code>, <code class="notranslate">sphinx@2.2.1</code> and <code class="notranslate">sphinx-celery@2.0.0</code></p>
<h1 dir="auto">Suggestions</h1>
<h1 dir="auto">Checklist</h1>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown &amp; rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>

<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment &amp; Settings</h2>

<p dir="auto"><strong>Celery version</strong>: 5.2.0rc1</p>

<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:5.2.0rc1 (dawn-chorus) kombu:5.2.0rc1 py:3.8.12
            billiard:3.6.4.0 redis:3.5.3
platform -&gt; system:Linux arch:64bit
            kernel version:5.4.129+ imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:redis results:django-db

ABSOLUTE_URL_OVERRIDES: {
 }
ADMINS: []
ALLOWED_HOSTS: ['*']
APPEND_SLASH: True
AUTHENTICATION_BACKENDS: ['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS: '********'
AUTH_USER_MODEL: 'app.user'
BASE_DIR: '/usr/src/app'
BROKER_URL: 'redis://localhost:6379/0'
CACHES: {
    'default': {   'BACKEND': 'django_redis.cache.RedisCache',
                   'KEY_PREFIX': '********',
                   'LOCATION': 'redis://localhost:6379/1',
                   'OPTIONS': {   'CLIENT_CLASS': 'django_redis.client.DefaultClient'},
                   'TIMEOUT': None}}
CACHE_LOCATION: 'redis://localhost:6379/1'
CACHE_MIDDLEWARE_ALIAS: 'default'
CACHE_MIDDLEWARE_KEY_PREFIX: '********'
CACHE_MIDDLEWARE_SECONDS: 600
CELERY_ACCEPT_CONTENT: ['application/json']
CELERY_ALWAYS_EAGER: False
CELERY_BROKER_URL: 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND: 'django-db'
CELERY_RESULT_SERIALIZER: 'json'
CELERY_TASK_SERIALIZER: 'json'
CELERY_TIMEZONE: 'UTC'
CORE_APPS: ['app.apps.AppConfig']
CORS_ALLOW_CREDENTIALS: True
CORS_ORIGIN_WHITELIST: ['*']
CSRF_COOKIE_AGE: 31449600
CSRF_COOKIE_DOMAIN: None
CSRF_COOKIE_HTTPONLY: False
CSRF_COOKIE_NAME: 'csrftoken'
CSRF_COOKIE_PATH: '/'
CSRF_COOKIE_SAMESITE: 'Lax'
CSRF_COOKIE_SECURE: False
CSRF_FAILURE_VIEW: 'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME: 'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS: []
CSRF_USE_SESSIONS: False
DATABASE_ROUTERS: '********'
DATA_UPLOAD_MAX_MEMORY_SIZE: 2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS: 1000
DATETIME_FORMAT: 'N j, Y, P'
DATETIME_INPUT_FORMATS: ['%Y-%m-%d %H:%M:%S',
 '%Y-%m-%d %H:%M:%S.%f',
 '%Y-%m-%d %H:%M',
 '%m/%d/%Y %H:%M:%S',
 '%m/%d/%Y %H:%M:%S.%f',
 '%m/%d/%Y %H:%M',
 '%m/%d/%y %H:%M:%S',
 '%m/%d/%y %H:%M:%S.%f',
 '%m/%d/%y %H:%M']
DATE_FORMAT: 'N j, Y'
DATE_INPUT_FORMATS: ['%Y-%m-%d',
 '%m/%d/%Y',
 '%m/%d/%y',
 '%b %d %Y',
 '%b %d, %Y',
 '%d %b %Y',
 '%d %b, %Y',
 '%B %d %Y',
 '%B %d, %Y',
 '%d %B %Y',
 '%d %B, %Y']
DEBUG: 0
DEBUG_PROPAGATE_EXCEPTIONS: False
DECIMAL_SEPARATOR: '.'
DEFAULT_AUTO_FIELD: 'django.db.models.AutoField'
DEFAULT_CHARSET: 'utf-8'
DEFAULT_EXCEPTION_REPORTER: 'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER: 'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE: 'storages.backends.gcloud.GoogleCloudStorage'
DEFAULT_FROM_EMAIL: 'webmaster@localhost'
DEFAULT_HASHING_ALGORITHM: 'sha256'
DEFAULT_INDEX_TABLESPACE: ''
DEFAULT_TABLESPACE: ''
DISALLOWED_USER_AGENTS: []
FILE_UPLOAD_DIRECTORY_PERMISSIONS: None
FILE_UPLOAD_HANDLERS: ['django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE: 2621440
FILE_UPLOAD_PERMISSIONS: 420
FILE_UPLOAD_TEMP_DIR: None
FIRST_DAY_OF_WEEK: 0
FIXTURE_DIRS: []
FORCE_SCRIPT_NAME: None
FORMAT_MODULE_PATH: None
FORM_RENDERER: 'django.forms.renderers.DjangoTemplates'
GS_CREDENTIALS: &lt;google.oauth2.service_account.Credentials object at 0x7fd7358aba00&gt;
HOST: '******'
IGNORABLE_404_URLS: []
INSTALLED_APPS: ['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'app.apps.AppConfig',
 'rest_framework',
 'rest_framework_api_key',
 'django_extensions',
 'django_celery_beat',
 'django_celery_results',
 'django_json_widget',
 'django_object_actions',
 'drf_yasg']
INTERNAL_IPS: ['127.0.0.1']
MONTH_DAY_FORMAT: 'F j'
NUMBER_GROUPING: 0
ROOT_URLCONF: 'app.urls'
SECRET_KEY: '********'
SECURE_BROWSER_XSS_FILTER: False
SECURE_CONTENT_TYPE_NOSNIFF: True
SECURE_HSTS_INCLUDE_SUBDOMAINS: False
SECURE_HSTS_PRELOAD: False
SECURE_HSTS_SECONDS: 0
SECURE_PROXY_SSL_HEADER: 
    ('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT: []
SECURE_REFERRER_POLICY: 'same-origin'
SECURE_SSL_HOST: None
SECURE_SSL_REDIRECT: False
SERVER_EMAIL: 'root@localhost'
SESSION_CACHE_ALIAS: 'default'
SESSION_COOKIE_AGE: 1209600
SESSION_COOKIE_DOMAIN: None
SESSION_COOKIE_HTTPONLY: True
SESSION_COOKIE_NAME: 'sessionid'
SESSION_COOKIE_PATH: '/'
SESSION_COOKIE_SAMESITE: None
SESSION_COOKIE_SECURE: False
SESSION_ENGINE: 'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE: False
SESSION_FILE_PATH: None
SESSION_SAVE_EVERY_REQUEST: False
SESSION_SERIALIZER: 'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE: 'app.settings'
SHORT_DATETIME_FORMAT: 'm/d/Y P'
SHORT_DATE_FORMAT: 'm/d/Y'
SIGNING_BACKEND: 'django.core.signing.TimestampSigner'
USE_I18N: True
USE_L10N: True
USE_THOUSAND_SEPARATOR: False
USE_TZ: True
USE_X_FORWARDED_HOST: False
USE_X_FORWARDED_PORT: False
WSGI_APPLICATION: 'app.wsgi.application'
X_FRAME_OPTIONS: 'DENY'
YEAR_MONTH_FORMAT: 'F Y'
deprecated_settings: None
broker_transport_options: {
 'global_keyprefix': '********'
}"><pre class="notranslate"><code class="notranslate">software -&gt; celery:5.2.0rc1 (dawn-chorus) kombu:5.2.0rc1 py:3.8.12
            billiard:3.6.4.0 redis:3.5.3
platform -&gt; system:Linux arch:64bit
            kernel version:5.4.129+ imp:CPython
loader   -&gt; celery.loaders.app.AppLoader
settings -&gt; transport:redis results:django-db

ABSOLUTE_URL_OVERRIDES: {
 }
ADMINS: []
ALLOWED_HOSTS: ['*']
APPEND_SLASH: True
AUTHENTICATION_BACKENDS: ['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS: '********'
AUTH_USER_MODEL: 'app.user'
BASE_DIR: '/usr/src/app'
BROKER_URL: 'redis://localhost:6379/0'
CACHES: {
    'default': {   'BACKEND': 'django_redis.cache.RedisCache',
                   'KEY_PREFIX': '********',
                   'LOCATION': 'redis://localhost:6379/1',
                   'OPTIONS': {   'CLIENT_CLASS': 'django_redis.client.DefaultClient'},
                   'TIMEOUT': None}}
CACHE_LOCATION: 'redis://localhost:6379/1'
CACHE_MIDDLEWARE_ALIAS: 'default'
CACHE_MIDDLEWARE_KEY_PREFIX: '********'
CACHE_MIDDLEWARE_SECONDS: 600
CELERY_ACCEPT_CONTENT: ['application/json']
CELERY_ALWAYS_EAGER: False
CELERY_BROKER_URL: 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND: 'django-db'
CELERY_RESULT_SERIALIZER: 'json'
CELERY_TASK_SERIALIZER: 'json'
CELERY_TIMEZONE: 'UTC'
CORE_APPS: ['app.apps.AppConfig']
CORS_ALLOW_CREDENTIALS: True
CORS_ORIGIN_WHITELIST: ['*']
CSRF_COOKIE_AGE: 31449600
CSRF_COOKIE_DOMAIN: None
CSRF_COOKIE_HTTPONLY: False
CSRF_COOKIE_NAME: 'csrftoken'
CSRF_COOKIE_PATH: '/'
CSRF_COOKIE_SAMESITE: 'Lax'
CSRF_COOKIE_SECURE: False
CSRF_FAILURE_VIEW: 'django.views.csrf.csrf_failure'
CSRF_HEADER_NAME: 'HTTP_X_CSRFTOKEN'
CSRF_TRUSTED_ORIGINS: []
CSRF_USE_SESSIONS: False
DATABASE_ROUTERS: '********'
DATA_UPLOAD_MAX_MEMORY_SIZE: 2621440
DATA_UPLOAD_MAX_NUMBER_FIELDS: 1000
DATETIME_FORMAT: 'N j, Y, P'
DATETIME_INPUT_FORMATS: ['%Y-%m-%d %H:%M:%S',
 '%Y-%m-%d %H:%M:%S.%f',
 '%Y-%m-%d %H:%M',
 '%m/%d/%Y %H:%M:%S',
 '%m/%d/%Y %H:%M:%S.%f',
 '%m/%d/%Y %H:%M',
 '%m/%d/%y %H:%M:%S',
 '%m/%d/%y %H:%M:%S.%f',
 '%m/%d/%y %H:%M']
DATE_FORMAT: 'N j, Y'
DATE_INPUT_FORMATS: ['%Y-%m-%d',
 '%m/%d/%Y',
 '%m/%d/%y',
 '%b %d %Y',
 '%b %d, %Y',
 '%d %b %Y',
 '%d %b, %Y',
 '%B %d %Y',
 '%B %d, %Y',
 '%d %B %Y',
 '%d %B, %Y']
DEBUG: 0
DEBUG_PROPAGATE_EXCEPTIONS: False
DECIMAL_SEPARATOR: '.'
DEFAULT_AUTO_FIELD: 'django.db.models.AutoField'
DEFAULT_CHARSET: 'utf-8'
DEFAULT_EXCEPTION_REPORTER: 'django.views.debug.ExceptionReporter'
DEFAULT_EXCEPTION_REPORTER_FILTER: 'django.views.debug.SafeExceptionReporterFilter'
DEFAULT_FILE_STORAGE: 'storages.backends.gcloud.GoogleCloudStorage'
DEFAULT_FROM_EMAIL: 'webmaster@localhost'
DEFAULT_HASHING_ALGORITHM: 'sha256'
DEFAULT_INDEX_TABLESPACE: ''
DEFAULT_TABLESPACE: ''
DISALLOWED_USER_AGENTS: []
FILE_UPLOAD_DIRECTORY_PERMISSIONS: None
FILE_UPLOAD_HANDLERS: ['django.core.files.uploadhandler.MemoryFileUploadHandler',
 'django.core.files.uploadhandler.TemporaryFileUploadHandler']
FILE_UPLOAD_MAX_MEMORY_SIZE: 2621440
FILE_UPLOAD_PERMISSIONS: 420
FILE_UPLOAD_TEMP_DIR: None
FIRST_DAY_OF_WEEK: 0
FIXTURE_DIRS: []
FORCE_SCRIPT_NAME: None
FORMAT_MODULE_PATH: None
FORM_RENDERER: 'django.forms.renderers.DjangoTemplates'
GS_CREDENTIALS: &lt;google.oauth2.service_account.Credentials object at 0x7fd7358aba00&gt;
HOST: '******'
IGNORABLE_404_URLS: []
INSTALLED_APPS: ['django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'app.apps.AppConfig',
 'rest_framework',
 'rest_framework_api_key',
 'django_extensions',
 'django_celery_beat',
 'django_celery_results',
 'django_json_widget',
 'django_object_actions',
 'drf_yasg']
INTERNAL_IPS: ['127.0.0.1']
MONTH_DAY_FORMAT: 'F j'
NUMBER_GROUPING: 0
ROOT_URLCONF: 'app.urls'
SECRET_KEY: '********'
SECURE_BROWSER_XSS_FILTER: False
SECURE_CONTENT_TYPE_NOSNIFF: True
SECURE_HSTS_INCLUDE_SUBDOMAINS: False
SECURE_HSTS_PRELOAD: False
SECURE_HSTS_SECONDS: 0
SECURE_PROXY_SSL_HEADER: 
    ('HTTP_X_FORWARDED_PROTO', 'https')
SECURE_REDIRECT_EXEMPT: []
SECURE_REFERRER_POLICY: 'same-origin'
SECURE_SSL_HOST: None
SECURE_SSL_REDIRECT: False
SERVER_EMAIL: 'root@localhost'
SESSION_CACHE_ALIAS: 'default'
SESSION_COOKIE_AGE: 1209600
SESSION_COOKIE_DOMAIN: None
SESSION_COOKIE_HTTPONLY: True
SESSION_COOKIE_NAME: 'sessionid'
SESSION_COOKIE_PATH: '/'
SESSION_COOKIE_SAMESITE: None
SESSION_COOKIE_SECURE: False
SESSION_ENGINE: 'django.contrib.sessions.backends.db'
SESSION_EXPIRE_AT_BROWSER_CLOSE: False
SESSION_FILE_PATH: None
SESSION_SAVE_EVERY_REQUEST: False
SESSION_SERIALIZER: 'django.contrib.sessions.serializers.JSONSerializer'
SETTINGS_MODULE: 'app.settings'
SHORT_DATETIME_FORMAT: 'm/d/Y P'
SHORT_DATE_FORMAT: 'm/d/Y'
SIGNING_BACKEND: 'django.core.signing.TimestampSigner'
USE_I18N: True
USE_L10N: True
USE_THOUSAND_SEPARATOR: False
USE_TZ: True
USE_X_FORWARDED_HOST: False
USE_X_FORWARDED_PORT: False
WSGI_APPLICATION: 'app.wsgi.application'
X_FRAME_OPTIONS: 'DENY'
YEAR_MONTH_FORMAT: 'F Y'
deprecated_settings: None
broker_transport_options: {
 'global_keyprefix': '********'
}
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>

<ul dir="auto">
<li><strong>Minimal Python Version</strong>: 3.8</li>
<li><strong>Minimal Celery Version</strong>: 5.2.0rc1</li>
<li><strong>Minimal Kombu Version</strong>: 5.2.0rc1</li>
<li><strong>Minimal Broker Version</strong>: redis:3.5.3</li>
<li><strong>Minimal Result Backend Version</strong>:</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: system:Linux arch:64bit kernel version:5.4.129+ imp:CPython</li>
<li><strong>Minimal Broker Client Version</strong>: redis:3.5.3</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>

<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ pip list
Package                           Version
--------------------------------- -----------
aiohttp                           3.7.4.post0
aiohttp-retry                     2.4.0
amqp                              5.0.6
appdirs                           1.4.4
argh                              0.26.2
asgiref                           3.3.4
async-timeout                     3.0.1
attrs                             21.2.0
backcall                          0.2.0
backports.entry-points-selectable 1.1.0
beautifulsoup4                    4.9.3
billiard                          3.6.4.0
blis                              0.7.4
cached-property                   1.5.2
cachetools                        4.2.4
catalogue                         1.0.0
celery                            5.2.0rc1
certifi                           2020.12.5
cfgv                              3.3.1
chardet                           3.0.4
click                             8.0.3
click-didyoumean                  0.3.0
click-plugins                     1.1.1
click-repl                        0.2.0
coreapi                           2.3.3
coreschema                        0.0.4
courlan                           0.5.0
cssselect                         1.1.0
cycler                            0.10.0
cymem                             2.0.5
dateparser                        1.1.0
decorator                         4.4.2
distlib                           0.3.3
Django                            3.2
django-bulk-update                2.2.0
django-celery-beat                2.2.0
django-celery-results             2.0.0
django-cors-headers               3.4.0
django-debug-toolbar              3.2
django-extensions                 3.1.3
django-json-widget                1.0.1
django-object-actions             3.0.2
django-redis                      4.12.1
django-sslserver                  0.22
django-storages                   1.12.1
django-timezone-field             4.1.1
djangorestframework               3.12.4
djangorestframework-api-key       2.0.0
djangorestframework-csv           2.1.1
djangorestframework-simplejwt     4.5.0
drf-writable-nested               0.6.3
drf-yasg                          1.20.0
en-core-web-sm                    2.3.1
filelock                          3.3.0
flake8                            3.8.3
flower                            1.0.0
fsspec                            0.8.7
future                            0.18.2
fuzzysearch                       0.7.3
fuzzywuzzy                        0.18.0
gcsfs                             0.7.2
google-api-core                   1.23.0
google-api-python-client          1.12.7
google-auth                       1.23.0
google-auth-httplib2              0.0.4
google-auth-oauthlib              0.4.2
google-cloud-automl               2.2.0
google-cloud-core                 1.5.0
google-cloud-language             2.0.0
google-cloud-storage              1.40.0
google-crc32c                     1.3.0
google-resumable-media            1.3.3
googleapis-common-protos          1.52.0
grpcio                            1.41.0
gunicorn                          20.0.4
h11                               0.8.1
h2                                3.2.0
hpack                             3.0.0
html2text                         2020.1.16
htmldate                          0.8.1
httmock                           1.4.0
http3                             0.6.7
httplib2                          0.20.1
humanize                          3.12.0
hyperframe                        5.2.0
identify                          2.3.0
idna                              2.10
inflection                        0.5.1
influxdb-client                   1.17.0
ipython                           7.19.0
itypes                            1.2.0
jedi                              0.18.0
Jinja2                            3.0.2
jusText                           2.2.0
kiwisolver                        1.3.2
kombu                             5.2.0rc1
langcodes                         3.2.1
libcst                            0.3.21
lxml                              4.6.3
MarkupSafe                        2.0.1
matplotlib                        3.3.3
mccabe                            0.6.1
mock                              4.0.2
more-itertools                    8.10.0
multidict                         5.2.0
murmurhash                        1.0.5
mypy-extensions                   0.4.3
nodeenv                           1.6.0
numpy                             1.19.1
oauthlib                          3.1.0
ordered-set                       3.1.1
ordered-set-stubs                 0.1.3
packaging                         21.0
pandas                            1.3.1
parso                             0.8.2
pexpect                           4.8.0
pickleshare                       0.7.5
Pillow                            8.3.2
pip                               21.3
plac                              1.1.3
platformdirs                      2.4.0
poetry-version                    0.1.5
pre-commit                        2.15.0
preshed                           3.0.5
profanity-filter                  1.3.3
prometheus-client                 0.11.0
prompt-toolkit                    3.0.20
proto-plus                        1.19.5
protobuf                          3.18.1
psycopg2                          2.8.6
ptyprocess                        0.7.0
pyasn1                            0.4.8
pyasn1-modules                    0.2.8
pycodestyle                       2.6.0
pydantic                          1.8.2
pyee                              7.0.3
pyflakes                          2.2.0
Pygments                          2.10.0
PyJWT                             1.7.1
pyparsing                         2.4.7
pyppeteer                         0.0.25
python-crontab                    2.5.1
python-dateutil                   2.8.2
python-dotenv                     0.14.0
pytz                              2021.3
PyYAML                            5.4.1
readability-lxml                  0.8.1
redis                             3.5.3
regex                             2021.10.8
requests                          2.25.0
requests-file                     1.5.1
requests-oauthlib                 1.3.0
rfc3986                           1.5.0
rsa                               4.7.2
ruamel.yaml                       0.15.100
Rx                                3.2.0
scipy                             1.7.1
seaborn                           0.10.1
searchconsole                     0.0.4
sentry-sdk                        0.14.4
setuptools                        57.5.0
simplejson                        3.17.2
six                               1.16.0
slacker                           0.14.0
soupsieve                         2.2.1
spacy                             2.3.7
sqlparse                          0.4.2
srsly                             1.0.5
tabulate                          0.8.9
tblib                             1.7.0
text-unidecode                    1.3
thinc                             7.4.5
tld                               0.12.6
tldextract                        3.0.2
toml                              0.10.2
tomlkit                           0.5.11
tornado                           6.1
tqdm                              4.62.3
trafilatura                       0.8.1
traitlets                         5.1.0
typing                            3.7.4.3
typing-extensions                 3.10.0.2
typing-inspect                    0.7.1
tzlocal                           2.1
unicodecsv                        0.14.1
Unidecode                         1.2.0
uritemplate                       3.0.1
urllib3                           1.26.7
vine                              5.0.0
virtualenv                        20.8.1
wasabi                            0.8.2
watchdog                          2.0.2
wcwidth                           0.2.5
websockets                        6.0
wheel                             0.37.0
xlwt                              1.3.0
yarl                              1.7.0"><pre class="notranslate"><code class="notranslate">$ pip list
Package                           Version
--------------------------------- -----------
aiohttp                           3.7.4.post0
aiohttp-retry                     2.4.0
amqp                              5.0.6
appdirs                           1.4.4
argh                              0.26.2
asgiref                           3.3.4
async-timeout                     3.0.1
attrs                             21.2.0
backcall                          0.2.0
backports.entry-points-selectable 1.1.0
beautifulsoup4                    4.9.3
billiard                          3.6.4.0
blis                              0.7.4
cached-property                   1.5.2
cachetools                        4.2.4
catalogue                         1.0.0
celery                            5.2.0rc1
certifi                           2020.12.5
cfgv                              3.3.1
chardet                           3.0.4
click                             8.0.3
click-didyoumean                  0.3.0
click-plugins                     1.1.1
click-repl                        0.2.0
coreapi                           2.3.3
coreschema                        0.0.4
courlan                           0.5.0
cssselect                         1.1.0
cycler                            0.10.0
cymem                             2.0.5
dateparser                        1.1.0
decorator                         4.4.2
distlib                           0.3.3
Django                            3.2
django-bulk-update                2.2.0
django-celery-beat                2.2.0
django-celery-results             2.0.0
django-cors-headers               3.4.0
django-debug-toolbar              3.2
django-extensions                 3.1.3
django-json-widget                1.0.1
django-object-actions             3.0.2
django-redis                      4.12.1
django-sslserver                  0.22
django-storages                   1.12.1
django-timezone-field             4.1.1
djangorestframework               3.12.4
djangorestframework-api-key       2.0.0
djangorestframework-csv           2.1.1
djangorestframework-simplejwt     4.5.0
drf-writable-nested               0.6.3
drf-yasg                          1.20.0
en-core-web-sm                    2.3.1
filelock                          3.3.0
flake8                            3.8.3
flower                            1.0.0
fsspec                            0.8.7
future                            0.18.2
fuzzysearch                       0.7.3
fuzzywuzzy                        0.18.0
gcsfs                             0.7.2
google-api-core                   1.23.0
google-api-python-client          1.12.7
google-auth                       1.23.0
google-auth-httplib2              0.0.4
google-auth-oauthlib              0.4.2
google-cloud-automl               2.2.0
google-cloud-core                 1.5.0
google-cloud-language             2.0.0
google-cloud-storage              1.40.0
google-crc32c                     1.3.0
google-resumable-media            1.3.3
googleapis-common-protos          1.52.0
grpcio                            1.41.0
gunicorn                          20.0.4
h11                               0.8.1
h2                                3.2.0
hpack                             3.0.0
html2text                         2020.1.16
htmldate                          0.8.1
httmock                           1.4.0
http3                             0.6.7
httplib2                          0.20.1
humanize                          3.12.0
hyperframe                        5.2.0
identify                          2.3.0
idna                              2.10
inflection                        0.5.1
influxdb-client                   1.17.0
ipython                           7.19.0
itypes                            1.2.0
jedi                              0.18.0
Jinja2                            3.0.2
jusText                           2.2.0
kiwisolver                        1.3.2
kombu                             5.2.0rc1
langcodes                         3.2.1
libcst                            0.3.21
lxml                              4.6.3
MarkupSafe                        2.0.1
matplotlib                        3.3.3
mccabe                            0.6.1
mock                              4.0.2
more-itertools                    8.10.0
multidict                         5.2.0
murmurhash                        1.0.5
mypy-extensions                   0.4.3
nodeenv                           1.6.0
numpy                             1.19.1
oauthlib                          3.1.0
ordered-set                       3.1.1
ordered-set-stubs                 0.1.3
packaging                         21.0
pandas                            1.3.1
parso                             0.8.2
pexpect                           4.8.0
pickleshare                       0.7.5
Pillow                            8.3.2
pip                               21.3
plac                              1.1.3
platformdirs                      2.4.0
poetry-version                    0.1.5
pre-commit                        2.15.0
preshed                           3.0.5
profanity-filter                  1.3.3
prometheus-client                 0.11.0
prompt-toolkit                    3.0.20
proto-plus                        1.19.5
protobuf                          3.18.1
psycopg2                          2.8.6
ptyprocess                        0.7.0
pyasn1                            0.4.8
pyasn1-modules                    0.2.8
pycodestyle                       2.6.0
pydantic                          1.8.2
pyee                              7.0.3
pyflakes                          2.2.0
Pygments                          2.10.0
PyJWT                             1.7.1
pyparsing                         2.4.7
pyppeteer                         0.0.25
python-crontab                    2.5.1
python-dateutil                   2.8.2
python-dotenv                     0.14.0
pytz                              2021.3
PyYAML                            5.4.1
readability-lxml                  0.8.1
redis                             3.5.3
regex                             2021.10.8
requests                          2.25.0
requests-file                     1.5.1
requests-oauthlib                 1.3.0
rfc3986                           1.5.0
rsa                               4.7.2
ruamel.yaml                       0.15.100
Rx                                3.2.0
scipy                             1.7.1
seaborn                           0.10.1
searchconsole                     0.0.4
sentry-sdk                        0.14.4
setuptools                        57.5.0
simplejson                        3.17.2
six                               1.16.0
slacker                           0.14.0
soupsieve                         2.2.1
spacy                             2.3.7
sqlparse                          0.4.2
srsly                             1.0.5
tabulate                          0.8.9
tblib                             1.7.0
text-unidecode                    1.3
thinc                             7.4.5
tld                               0.12.6
tldextract                        3.0.2
toml                              0.10.2
tomlkit                           0.5.11
tornado                           6.1
tqdm                              4.62.3
trafilatura                       0.8.1
traitlets                         5.1.0
typing                            3.7.4.3
typing-extensions                 3.10.0.2
typing-inspect                    0.7.1
tzlocal                           2.1
unicodecsv                        0.14.1
Unidecode                         1.2.0
uritemplate                       3.0.1
urllib3                           1.26.7
vine                              5.0.0
virtualenv                        20.8.1
wasabi                            0.8.2
watchdog                          2.0.2
wcwidth                           0.2.5
websockets                        6.0
wheel                             0.37.0
xlwt                              1.3.0
yarl                              1.7.0
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>

<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>

<details>
<p dir="auto">
Celery instantiation is being done as follow:
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# app/app/celery.py
import os
import logging
from celery import Celery
logger = logging.getLogger(__name__)

os.environ.setdefault(&quot;DJANGO_SETTINGS_MODULE&quot;, &quot;app.settings&quot;)

app = Celery(&quot;app&quot;)
app.config_from_object(&quot;django.conf:settings&quot;, namespace=&quot;CELERY&quot;)
# Prefix celery messages in broker configured.
app.conf.broker_transport_options = {
    'global_keyprefix': '_prefixed_'  # &lt;==== 
}

app.autodiscover_tasks()


@app.task(bind=True)
def debug_task(self):
    logger.info('Request: {0!r}'.format(self.request))"><pre class="notranslate"><span class="pl-c"># app/app/celery.py</span>
<span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-k">import</span> <span class="pl-s1">logging</span>
<span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-s1">logger</span> <span class="pl-c1">=</span> <span class="pl-s1">logging</span>.<span class="pl-en">getLogger</span>(<span class="pl-s1">__name__</span>)

<span class="pl-s1">os</span>.<span class="pl-s1">environ</span>.<span class="pl-en">setdefault</span>(<span class="pl-s">"DJANGO_SETTINGS_MODULE"</span>, <span class="pl-s">"app.settings"</span>)

<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">"app"</span>)
<span class="pl-s1">app</span>.<span class="pl-en">config_from_object</span>(<span class="pl-s">"django.conf:settings"</span>, <span class="pl-s1">namespace</span><span class="pl-c1">=</span><span class="pl-s">"CELERY"</span>)
<span class="pl-c"># Prefix celery messages in broker configured.</span>
<span class="pl-s1">app</span>.<span class="pl-s1">conf</span>.<span class="pl-s1">broker_transport_options</span> <span class="pl-c1">=</span> {
    <span class="pl-s">'global_keyprefix'</span>: <span class="pl-s">'_prefixed_'</span>  <span class="pl-c"># &lt;==== </span>
}

<span class="pl-s1">app</span>.<span class="pl-en">autodiscover_tasks</span>()


<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">task</span>(<span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">debug_task</span>(<span class="pl-s1">self</span>):
    <span class="pl-s1">logger</span>.<span class="pl-en">info</span>(<span class="pl-s">'Request: {0!r}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">self</span>.<span class="pl-s1">request</span>))</pre></div>
<p dir="auto">Please note that I have used transport setting: <code class="notranslate">'global_keyprefix': '_prefixed_'</code> (i.e. a recent feature) which works fine as far as tasks processing is concerned but monitoring does not work (celery inspect + flower that uses the same celery inspect under the hood).</p>
<p dir="auto">Redis state is as expected:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ localhost:6379&gt; keys *prefixed*
1) &quot;_prefixed__kombu.binding.admin&quot;
2) &quot;_prefixed__kombu.binding.celeryev&quot;
3) &quot;_prefixed__kombu.binding.low_priority&quot;
4) &quot;_prefixed__kombu.binding.celery&quot;
5) &quot;_prefixed__kombu.binding.celery.pidbox&quot;"><pre class="notranslate">$ localhost:<span class="pl-k">6379&gt;</span> keys <span class="pl-k">*</span>prefixed<span class="pl-k">*</span>
1) <span class="pl-s"><span class="pl-pds">"</span>_prefixed__kombu.binding.admin<span class="pl-pds">"</span></span>
2) <span class="pl-s"><span class="pl-pds">"</span>_prefixed__kombu.binding.celeryev<span class="pl-pds">"</span></span>
3) <span class="pl-s"><span class="pl-pds">"</span>_prefixed__kombu.binding.low_priority<span class="pl-pds">"</span></span>
4) <span class="pl-s"><span class="pl-pds">"</span>_prefixed__kombu.binding.celery<span class="pl-pds">"</span></span>
5) <span class="pl-s"><span class="pl-pds">"</span>_prefixed__kombu.binding.celery.pidbox<span class="pl-pds">"</span></span></pre></div>
<hr>
<h2 dir="auto">Tests:</h2>
<p dir="auto">Python Django Shell Version:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="2021-10-17 11:18:04,196 DEBUG selector_events Using selector: EpollSelector
Python 3.8.12 (default, Oct 12 2021, 03:05:25) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.19.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from app.celery import app as celery_app

In [2]: i = celery_app.control.inspect()

In [3]: i.clock()

In [4]: i.active()

In [5]: i.scheduled()

In [6]: i.reserved()

In [7]: i.stats()

In [8]: i.ping()

In [9]: i.active_queues()

In [10]: i.conf()

In [11]: i.memdump()

In [12]: i.objgraph()"><pre class="notranslate"><span class="pl-c1">2021</span><span class="pl-c1">-</span><span class="pl-c1">10</span><span class="pl-c1">-</span><span class="pl-c1">17</span> <span class="pl-c1">11</span>:<span class="pl-c1">18</span>:<span class="pl-c1">04</span>,<span class="pl-c1">196</span> <span class="pl-v">DEBUG</span> <span class="pl-s1">selector_events</span> <span class="pl-v">Using</span> <span class="pl-s1">selector</span>: <span class="pl-v">EpollSelector</span>
<span class="pl-v">Python</span> <span class="pl-c1">3.8</span><span class="pl-c1">.12</span> (<span class="pl-s1">default</span>, <span class="pl-v">Oct</span> <span class="pl-c1">12</span> <span class="pl-c1">2021</span>, <span class="pl-c1">03</span>:<span class="pl-c1">05</span>:<span class="pl-c1">25</span>) 
<span class="pl-v">Type</span> <span class="pl-s">'copyright'</span>, <span class="pl-s">'credits'</span> <span class="pl-c1">or</span> <span class="pl-s">'license'</span> <span class="pl-k">for</span> <span class="pl-s1">more</span> <span class="pl-s1">information</span>
<span class="pl-v">IPython</span> <span class="pl-c1">7.19</span><span class="pl-c1">.0</span> <span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-v">An</span> <span class="pl-s1">enhanced</span> <span class="pl-v">Interactive</span> <span class="pl-v">Python</span>. <span class="pl-v">Type</span> <span class="pl-s">'?'</span> <span class="pl-k">for</span> <span class="pl-s1">help</span>.

<span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-k">from</span> <span class="pl-s1">app</span>.<span class="pl-s1">celery</span> <span class="pl-s1">import</span> <span class="pl-s1">app</span> <span class="pl-k">as</span> <span class="pl-s1">celery_app</span>

<span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">i</span> <span class="pl-c1">=</span> <span class="pl-s1">celery_app</span>.<span class="pl-s1">control</span>.<span class="pl-en">inspect</span>()

<span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">i</span>.<span class="pl-en">clock</span>()

<span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">i</span>.<span class="pl-en">active</span>()

<span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">i</span>.<span class="pl-en">scheduled</span>()

<span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">i</span>.<span class="pl-en">reserved</span>()

<span class="pl-v">In</span> [<span class="pl-c1">7</span>]: <span class="pl-s1">i</span>.<span class="pl-en">stats</span>()

<span class="pl-v">In</span> [<span class="pl-c1">8</span>]: <span class="pl-s1">i</span>.<span class="pl-en">ping</span>()

<span class="pl-v">In</span> [<span class="pl-c1">9</span>]: <span class="pl-s1">i</span>.<span class="pl-en">active_queues</span>()

<span class="pl-v">In</span> [<span class="pl-c1">10</span>]: <span class="pl-s1">i</span>.<span class="pl-en">conf</span>()

<span class="pl-v">In</span> [<span class="pl-c1">11</span>]: <span class="pl-s1">i</span>.<span class="pl-en">memdump</span>()

<span class="pl-v">In</span> [<span class="pl-c1">12</span>]: <span class="pl-s1">i</span>.<span class="pl-en">objgraph</span>()</pre></div>
<p dir="auto">CLI Version:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ celery -A app.celery inspect registered
TEST MODE:  False
Loading env file /dev/null
Error: No nodes replied within time constraint."><pre class="notranslate">$ celery -A app.celery inspect registered
TEST MODE:  False
Loading env file /dev/null
Error: No nodes replied within <span class="pl-k">time</span> constraint.</pre></div>
<p dir="auto">Notice inspect calls through django shell does not work <em>AND</em> CLI output ☝️  which clarifies to me that the nodes being listened might not be correct OR not being detected.</p>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">celery inspect works as expected and is able to see transport option <code class="notranslate">global_keyprefix</code></p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">celery inspect has stopped working and from my limited debugging it looks like we didn't account for transport option <code class="notranslate">global_keyprefix</code> while inspecting and not able to read from the keys that exist in Redis.. Please look at "Minimally Reproducible Test Case" section for more details..</p>
<p dir="auto">Let me know if anything else's needed from my end in order to move forward. Thanks!!</p>