Is there an issue with Celery on App Platform?


I have been looking through all the questions, and tutorials for Django and Celery for App Platform but I can’t seem to see anything that is helpful.

The Celery work seems to start, and then dies with a fatal error. I have pasted what is happening below.

If anyone has any ideas that would be most appreciated!

Kind regards,

Error Output

apps@workers-799ccfc99b-qg7bq:~$ celery -A csapi worker -l info
 -------------- celery@workers-799ccfc99b-qg7bq v5.0.5 (singularity)
--- ***** ----- 
-- ******* ---- Linux-4.4.0-x86_64-with-glibc2.27 2021-05-25 19:31:04
- *** --- * --- 
- ** ---------- [config]
- ** ---------- .> app:         csapi:0x2ac9d4dcb250
- ** ---------- .> transport:   redis://:**@
- ** ---------- .> results:     disabled://
- *** --- * --- .> concurrency: 8 (prefork)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** ----- 
 -------------- [queues]
                .> celery           exchange=celery(direct) key=celery

  . Cancel Expired Options
  . Check Cabin for Release
  . Log API Call
  . Released Cabin
  . csapi.celery.debug_task
  . operations.tasks.resize_image
  . publish.tasks.publish_element

[2021-05-25 19:31:04,464: CRITICAL/MainProcess] Unrecoverable error: OSError(38, 'Function not implemented')
Traceback (most recent call last):
  File "/workspace/.heroku/python/lib/python3.9/site-packages/celery/worker/", line 203, in start
  File "/workspace/.heroku/python/lib/python3.9/site-packages/celery/", line 116, in start
  File "/workspace/.heroku/python/lib/python3.9/site-packages/celery/", line 365, in start
    return self.obj.start()
  File "/workspace/.heroku/python/lib/python3.9/site-packages/celery/concurrency/", line 129, in start
  File "/workspace/.heroku/python/lib/python3.9/site-packages/celery/concurrency/", line 107, in on_start
    P = self._pool = Pool(processes=self.limit,
  File "/workspace/.heroku/python/lib/python3.9/site-packages/celery/concurrency/", line 460, in __init__
    super().__init__(processes, *args, **kwargs)
  File "/workspace/.heroku/python/lib/python3.9/site-packages/billiard/", line 1046, in __init__
  File "/workspace/.heroku/python/lib/python3.9/site-packages/celery/concurrency/", line 477, in _create_worker_process
    return super()._create_worker_process(i)
  File "/workspace/.heroku/python/lib/python3.9/site-packages/billiard/", line 1142, in _create_worker_process
    on_ready_counter = self._ctx.Value('i')
  File "/workspace/.heroku/python/lib/python3.9/site-packages/billiard/", line 181, in Value
    return Value(typecode_or_type, *args, lock=lock,
  File "/workspace/.heroku/python/lib/python3.9/site-packages/billiard/", line 83, in Value
    lock = ctx.RLock()
  File "/workspace/.heroku/python/lib/python3.9/site-packages/billiard/", line 110, in RLock
    return RLock(ctx=self.get_context())
  File "/workspace/.heroku/python/lib/python3.9/site-packages/billiard/", line 207, in __init__
    SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
  File "/workspace/.heroku/python/lib/python3.9/site-packages/billiard/", line 71, in __init__
    sl = self._semlock = _billiard.SemLock(
OSError: [Errno 38] Function not implemented
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.

celery -A appinstance worker -l info --without-gossip --without-mingle --without-heartbeat -Ofair --pool=gevent

After running this command, the celery worker is throwing timeout error or something regarding the pop from empty list

If anyone has found the solution please do share.

Hi, its 2022 - is this issue resolved. Is there a written tutorial someone can point me to that covers how to get celery working on Django App Platform?

I’m interested in this feature as well. Any update from the DO team?