Celery 4 drops support for Windows
See release notes
Prompted by this message to the Google group
Comments (14)
-
reporter -
reporter Looks like 3.1.25 is the one to target: http://stackoverflow.com/a/40795761
-
reporter We know that
celery==4.0.0
withamqp==2.1.1
works.We know that
celery==4.0.2
doesn't work withamqp==2.1.4
on Windows. We know thatcelery==4.1.0
doesn't work, but that is probably withamqp<2.1.1
, maybe currentamqp==2.2.2
.I don't think we know anything else?
We need to document this properly for release 0.8.0, so we need to do some experiments. Any volunteers?
We already have ticket to update the documentation for Celery for Windows in issue
#541 -
reporter - changed milestone to Future
Moving to future to deal with possible lack of support for Windows in Celery 4 - there are indications support might return in some form.
Changing docs for Windows in the interim is covered by issue
#541 -
reporter Referenced in ca72f39
-
reporter @dplatten - are you able to shed any light on the celery and
amqp
version compatibility?We also need to change the s
settings.py
fromamqp
which seems to be long since deprecated toCELERY_RESULT_BACKEND = 'rpc://'
- I don't know if there are any consequences - presumably we just change the setting and restart Celery?Also, the
CELERYD_PREFETCH_MULTIPLIER = 1
setting and I notice you are using concurrency of 1 - is this a problem? Does it not mean that everything is always waiting in a queue, particularly if you have one long running task? -
On my Windows Server 2012 install I am running celery 4.0.0, seemingly without problem.
I am using this with the following celery settings in
settings.py
(concurrency is 4 in the settings and in the celery command). Note thatCELERY_RESULT_BACKEND
is set torpc
, rather thanrpc://
- I don't know if this matters, but it appears to work as it is.# Celery settings BROKER_URL = 'amqp://guest:guest@localhost//' CELERY_RESULT_BACKEND = 'rpc' CELERY_ACCEPT_CONTENT = ['json'] CELERY_TASK_SERIALIZER = 'json' CELERY_RESULT_SERIALIZER = 'json' CELERY_DEFAULT_QUEUE = 'default' CELERYD_CONCURRENCY = 4 CELERY_ACKS_LATE = True CELERYD_PREFETCH_MULTIPLIER = 1
My command to run celery is:
celery worker -n default -P solo -Ofair -A openremproject -c 4 -Q default --pidfile=e:\media_root\celery\default.pid --logfile=e:\media_root\celery\default.log
-
In terms of updating the settings from
ampq
torpc
, I just restarted celery - there was nothing else that needed to be done. -
reporter Thanks. I'll update the settings file and docs accordingly.
-
reporter Changed celery results backend to rpc. Refs
#582. Added -Ofair to linux celery command. Added note about versions of Celery on Windows. Refs#455,#541. [skip ci]→ <<cset facda714c3b1>>
-
I think you may need a "-P solo" in the Windows celery command in the docs. This is the line that I use on my live system:
celery worker -n default -P solo -Ofair -A openremproject -c 4 -Q default --pidfile=e:\media_root\celery\default.pid --logfile=e:\media_root\celery\default.log
-
Perhaps forget that comment - I think it's already there in the docs.
-
reporter - changed status to resolved
Resolved by removing dependence on Celery for v1.0 (Thanks Jannis!)
-
reporter Resolved in issue ref
#788 - Log in to comment
Initial action is to lock the pip install to version 3.1