Open neerajgoyal12 opened 1 year ago
from . import _run File "/Users/neerajgoyal/miniconda3/envs/sample_app/lib/python3.10/site-packages/trio/_core/_run.py", line 2548, in
the traceback seem to be related to trio not celery.
trio
was updated from 0.22.0 to 0.22.2 which seems a minor update and those particular lines in the code block is same in both the versions.
It can be cause of
When you try to install the latest
django-celery-beat
in env B it would ask to downgradeimportlib-metadata
6.8.0 to 4.13.0
When I install the 'django-celery-beat' v 2.2.1 in the env B it does not ask me to downgrade importlib-metadata
but get error after starting celery beat with following error
model.last_run_at = self._default_now()
File "/Users/neerajgoyal/miniconda3/envs/zerodha-trading/lib/python3.10/site-packages/django_celery_beat/schedulers.py", line 143, in _default_now
now = now.tzinfo.localize(now.replace(tzinfo=None))
AttributeError
'zoneinfo.ZoneInfo' object has no attribute 'localize'
but at least the celery worker
does get started successfully
Tried with gevent
and prefork
with django-celery-beat
v 2.5.0 and its working
Summary:
the command
celery -A app worker -P eventlet -c 100 -l info --logfile=celery.log
fails with latestdjango-celery-beat
v 2.5.0Include a brief description of the problem here, and fill out the version info below.
I have two conda environments. env A with following configuration:
env B with following configuration:
the command
celery -A app worker -P eventlet -c 100 -l info --logfile=celery.log
works well in env Ain env B fails with following log
Stackoverflow Question Raised
Exact steps to reproduce the issue:
Detailed information
My System is Apple Mac Book Pro, Apple M2, macOS 13.4.1 Ventura