Skip to content

Gunicorn with gevent workers fails to work with django #3428

@al-muammar

Description

@al-muammar
  • gevent version: 25.5.1 (PyPI)
  • Python version: 3.11.14 (Docker installation)
  • Operating System: Debian GNU/Linux 13 (trixie)

I'm running gunicorn with gevent workers and synchronous django. Just a couple of days ago I started getting:

SynchronousOnlyOperation
You cannot call this from an async context - use a thread or sync_to_async.

The libraries didn't change for quite a while. Maybe only python version, but I don't see any big changes in the latest release

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions