You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue while trying to configure Celery in my Flask application. Despite following the documentation and examples, I keep receiving an error message stating "Cannot mix new setting names with old setting names."
Steps to Reproduce:
python app.py
celery -A app.celery worker --loglevel=info -f celery.logs
Error
worker: Warm shutdown (MainProcess)
Process SpawnPoolWorker-43:
Traceback (most recent call last):
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\billiard\process.py", line 323, in _bootstrap
self.run()
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\billiard\process.py", line 110, in run
self._target(*self._args, **self._kwargs)
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\billiard\pool.py", line 288, in __call__
self.after_fork()
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\billiard\pool.py", line 420, in after_fork
self.initializer(*self.initargs)
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\concurrency\prefork.py", line 53, in process_initializer
app.loader.init_worker()
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\loaders\base.py", line 110, in init_worker
self.import_default_modules()
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\loaders\base.py", line 105, in import_default_modules
return [self.import_task_module(m) for m in self.default_modules]
^^^^^^^^^^^^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\kombu\utils\objects.py", line 40, in __get__
return super().__get__(instance, owner)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Applications\Python\Python11new\Lib\functools.py", line 1001, in __get__
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\loaders\base.py", line 227, in default_modules
tuple(maybe_list(self.app.conf.imports)) +
^^^^^^^^^^^^^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\utils\collections.py", line 111, in __getattr__
return self[k]
~~~~^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\utils\collections.py", line 391, in __getitem__
return getitem(k)
^^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\utils\collections.py", line 249, in __getitem__
return mapping[_key]
~~~~~~~^^^^^^
File "D:\Applications\Python\Python11new\Lib\collections\__init__.py", line 1122, in __getitem__
if key in self.data:
^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\kombu\utils\objects.py", line 40, in __get__
return super().__get__(instance, owner)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Applications\Python\Python11new\Lib\functools.py", line 1001, in __get__
val = self.func(instance)
^^^^^^^^^^^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\app\base.py", line 135, in data
return self.callback()
^^^^^^^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\app\base.py", line 979, in _finalize_pending_conf
conf = self._conf = self._load_config()
^^^^^^^^^^^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\app\base.py", line 997, in _load_config
settings = detect_settings(
^^^^^^^^^^^^^^^^
File "d:\Coding\projects\LLM-Minutes-of-Meeting\.venv\Lib\site-packages\celery\app\utils.py", line 274, in detect_settings
raise ImproperlyConfigured(info.mix_error.format(renames='\n'.join(
celery.exceptions.ImproperlyConfigured:
Cannot mix new setting names with old setting names, please
rename the following settings to use the old format:
include -> CELERY_INCLUDE
Or change all of the settings to use the new format :)
Description
I'm encountering an issue while trying to configure Celery in my Flask application. Despite following the documentation and examples, I keep receiving an error message stating "Cannot mix new setting names with old setting names."
Steps to Reproduce:
python app.py
celery -A app.celery worker --loglevel=info -f celery.logs
Error
Installed packages and versions
Proposed Solution:
Any suggestions or insights on how to resolve this issue would be greatly appreciated.
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: