Skip to content

Run Celery 4.1.0 on Windows 10

September 22nd, 2017 - SoftwareTutorial(1 min)

TL;DR: Use set FORKED_BY_MULTIPROCESSING=1 on the worker script/shell

When running Celery on Windows 10, I got the following error:

ValueError: not enough values to unpack (expected 3, got 0)

This is quite unfortunate as Windows is supported on “best effort”. A pull request has a change, but it’s not pretty to patch an installation. To get around, you can just define an environment variable:

set FORKED_BY_MULTIPROCESSING=1

I only defined it on the worker’s side.

HTH,

Share on
Reddit
Linked in
Whatsapp

A little experiment: