Run Celery 4.1.0 on Windows 10

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:

I only defined it on the worker’s side.

HTH,


A little experiment: If you find this post and ad below useful, please check the ad out :-)




2 thoughts on “Run Celery 4.1.0 on Windows 10

    1. It sets up the usage of “shared_task()” when you decorate it with @task. Otherwise, the decorator is empty.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top