Answer the question
In order to leave comments, you need to log in
How to make a thread in python that does not interfere with django?
I need an infinite loop regardless of django.
But when I run the function in which it is, it blocks django and cannot make requests to the server.
Tried to use asyncio, did not help.
Tried threads the same situation.
Are there any solutions to my problem?
Answer the question
In order to leave comments, you need to log in
As far as I understand, the GIL blocks execution because of the mutex.
Need to try with multiprocessing .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question