Report this

What is the reason for this report?

App Platform multiprocessing (Python)

Posted on December 16, 2020

I’ve managed to deploy my app onto the App platform but when it runs, it now gives me an errno 38 Function not implemented? Looking through the tracestack, this looks related to using multiprocessing pools in my app. Is this not supported by the App platform?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I managed to solve it by ditching the multiprocessing in favor of gevent.

But in my case i was trying to install a Celery worker with prefork pools (which are multitreaded).

I switched from running:

celery -A app worker

to run:

celery -A app worker -P gevent --concurrency=100

Not sure if you can also switch to gevent (or greenlet) and if doing so will benefit you, as gevent isn’t meant for CPU intensive tasks, but is fine in my case because it need it mainly for making a lot of http requests

I got the same error and suspect that multiprocessing is not support at DO Apps. It is a similar limitation as for AWS Lambdas.

has anyone found a solution to this yet. please its driving me crazy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.