Open shnuwl opened 5 years ago
I used timeout-decorator in Django. When timeout event occurs, I have seen an exception thrown in the server background log. However, I can see that the API request is still pending and the response is empty through chrome. I solved the problem by adding self.__process.join() after line 155 of timeout-decorator.py. Please refer to thehttps://stackoverflow.com/questions/20960740/python-multiprocessing-why-is-process-defunct-after-terminate/20960917?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
self.__process.join()
can You please try the wrapt_timeout_decorator and tell me if You have the same problems with it - please let me know. https://github.com/bitranox/wrapt_timeout_decorator
I used timeout-decorator in Django. When timeout event occurs, I have seen an exception thrown in the server background log. However, I can see that the API request is still pending and the response is empty through chrome. I solved the problem by adding
self.__process.join()
after line 155 of timeout-decorator.py. Please refer to thehttps://stackoverflow.com/questions/20960740/python-multiprocessing-why-is-process-defunct-after-terminate/20960917?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa