Description
Cannot start Celery 4 worker.
OS: Windows 10 x64
Python: 2.7
Celery version: 4
VirtualEnv, Django 1.10
ERROR:
`[2016-11-05 20:23:25,759: CRITICAL/MainProcess] Unrecoverable error: TypeError('must be integer, not _subprocess_handle',)
Traceback (most recent call last):
File "c:\development\env\zillow2\lib\site-packages\celery\worker\worker.py", line 203, in start
self.blueprint.start(self)
File "c:\development\env\zillow2\lib\site-packages\celery\bootsteps.py", line 119, in start
step.start(parent)
File "c:\development\env\zillow2\lib\site-packages\celery\bootsteps.py", line 370, in start
return self.obj.start()
File "c:\development\env\zillow2\lib\site-packages\celery\concurrency\base.py", line 131, in start
self.on_start()
File "c:\development\env\zillow2\lib\site-packages\celery\concurrency\prefork.py", line 112, in on_start
**self.options)
File "c:\development\env\zillow2\lib\site-packages\billiard\pool.py", line 1008, in init
self._create_worker_process(i)
File "c:\development\env\zillow2\lib\site-packages\billiard\pool.py", line 1117, in _create_worker_process
w.start()
File "c:\development\env\zillow2\lib\site-packages\billiard\process.py", line 122, in start
self._popen = self._Popen(self)
File "c:\development\env\zillow2\lib\site-packages\billiard\context.py", line 383, in _Popen
return Popen(process_obj)
File "c:\development\env\zillow2\lib\site-packages\billiard\popen_spawn_win32.py", line 64, in init
_winapi.CloseHandle(ht)
TypeError: must be integer, not _subprocess_handle
(zillow2) C:\DEVELOPMENT\zillow2\project>Traceback (most recent call last):
File "", line 1, in
File "c:\development\env\zillow2\lib\site-packages\billiard\spawn.py", line 159, in spawn_main
new_handle = steal_handle(parent_pid, pipe_handle)
File "c:\development\env\zillow2\lib\site-packages\billiard\reduction.py", line 121, in steal_handle
_winapi.PROCESS_DUP_HANDLE, False, source_pid)
WindowsError: [Error 87] The parameter is incorrect
`
I was able to run Celery worker only when degraded celery version to 3
Activity
malinoff commentedon Nov 7, 2016
Sorry, windows is not officially supported by celery 4, http://docs.celeryproject.org/en/latest/whatsnew-4.0.html#removed-features
vladimir-poleh commentedon Nov 14, 2016
Problem is incorrect handle closing for the Python 2.7. I have fix for it, but there is another issue with nested class instance pickling.
obskyr commentedon Nov 21, 2016
Nguhhhh. I have the same problem. I'm doing my main development on Windows, too, so this is a bit of a tough situation.
In addition, I can't get Celery 3.x.x working, but I suppose that's just because I'm doing something wrong.
PovilasKud commentedon Nov 21, 2016
Well I just downgraded to 3.x.x
NwawelAIroume commentedon Nov 24, 2016
same issue on my side! i think will use the downgraded too!
ghost commentedon Feb 21, 2017
When will this be likely fixed? Just ran into the same issue
celery==4.0.2, will probably downgrade as well as no issue previously running
celery==3.1.18
PovilasKud commentedon Feb 22, 2017
Probably not going to be fixed.
JonnathanCalderon commentedon May 19, 2017
I'm on Windows 7 and I cant downgrade python3.6 because of some lib-errors with python.version<=3.5. So, I gotta to develop a hackish way cause Celery is anti-windows?
PovilasKud commentedon May 19, 2017
JonnathanCalderon you have to "downgrade" celery not python. Just create new virtualenv and install proper versions.
rsoumyassdi commentedon Dec 13, 2017
I had celery 4,
celery==3.1.18 worked for me.. If anyone still has the issue,
Just wanted to share.
auvipy commentedon Dec 17, 2017
follow this to fix #4078