SynchronousOnlyOperation: bug or misconfiguration?

33 views
Skip to first unread message

Federico Capoano

unread,
Dec 18, 2020, 11:51:53 AM12/18/20
to Django users
I have a celery task which performs queries and network operations.

When deployed with celery with gevent concurrency, I occasionally (but not always) get reports of SynchronousOnlyOperation exceptions being raised.

I described the problem in detail on StackOverflow: SynchronousOnlyOperation from celery task using gevent execution pool.

I tried debugging the issue and looking for information about similar issues with django+celery+gevent with little luck, but I have started to wonder if the fact that Django is raising this error there is a bug.

I see this error is raised if django detects an event loop, should this apply also to when gevent is using the eventloop?

Thanks in advance
Best regards
Federico
Reply all
Reply to author
Forward
0 new messages