Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

291
Views
Error de tiempo de ejecución Interbloqueo que ocurre aleatoriamente en Django

Ejecutando Django en Python 3.7.9. Estoy usando canales, por lo que se usa daphne, pero incluso cuando uso gunicorn se obtienen los mismos resultados.

El siguiente error aparece aleatoriamente.

 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

No creo que este error tenga mucho que ver con el interbloqueo, pero a veces aparecen juntos.

 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]

¿Cómo puedo resolver esto?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Resolví este error degradando asgiref:

requisitos.txt

 asgiref==3.3.2
over 4 years ago · Santiago Trujillo Report

0

Resolví estos problemas específicos (que ocurrieron durante la recuperación de archivos estáticos) ejecutando el comando python manage.py collectstatic . Supongo que de esta manera los archivos estáticos no son atendidos por el mismo proceso. Al menos soluciona mi error.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!