SynchronousOnlyOperation: bug or misconfiguration?

137 views
Skip to first unread message

Federico Capoano

unread,
Dec 18, 2020, 11:00:30 AM12/18/20
to Django developers (Contributions to Django itself)
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

Tim Graham

unread,
Dec 18, 2020, 11:23:46 AM12/18/20
to Django developers (Contributions to Django itself)
Hi, this mailing list isn't appropriate for "is it a bug?" questions. Please use django-users instead.

Boris Tsimi

unread,
Dec 18, 2020, 11:31:10 AM12/18/20
to django-d...@googlegroups.com
Yes because django are application of web devellopin 

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/341402be-2684-42cc-b4ac-77b778952794n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages