Question

App Platform multiprocessing (Python)

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?

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Any news? :)

I need multiprocessing.

Thanks!

Any update support?

I wish someone in sales had told us you can’t do multi-process on App Platform. PRETTY DAMN LIMITING IF YOU ARE USING python. And paying top dollar for a worker.

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