Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

295
Visualizações
Runtime Error Deadlock occurring randomly in Django

Running Django in Python 3.7.9. I am using channels so daphne is used but even when I using gunicorn the same results are obtained.

The error below is appearing randomly.

ERROR        2021-07-12 11:55:07,478 HTTP GET /static/customer/assets/js/jquery.min.js 500 [0.71, 127.0.0.1:55466]
ERROR        2021-07-12 11:55:07,479 Exception inside application: Single thread executor already being used, would deadlock
Traceback (most recent call last):
  File "/home/x/.pyenv/versions/3.7.9/lib/python3.7/site-packages/channels/http.py", line 192, in __call__
    await self.handle(body_stream)
  File "/home/x/.pyenv/versions/3.7.9/lib/python3.7/site-packages/asgiref/sync.py", line 410, in __call__
    "Single thread executor already being used, would deadlock"
RuntimeError: Single thread executor already being used, would deadlock

I don't think this error has much to do with deadlock, but at times they are appearing together.

 ERROR        2021-07-12 11:55:07,478 HTTP GET
/static/customer/assets/js/jquery.min.js 500 [0.71, 127.0.0.1:55466]

How can I resolve this?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I resolved this error by downgrading asgiref:

requirements.txt

asgiref==3.3.2
over 4 years ago · Santiago Trujillo Relatório

0

I solved this specific issues (occurred during fetch of static files) by running python manage.py collectstatic command. I assume, this way static files are not served by the same process. At least it solves my error.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda