timeout-decorator
timeout-decorator copied to clipboard
Timeout decorator for Python
Hi! This is a useful project, but appears to fail on generators. Namely, this function: ``` import time from timeout_decorator import timeout @timeout(seconds=0.5) def sleeper(s): for j in range(10): time.sleep(s)...
Why don't you use the built-in exception?
tagging
It would be useful if the tagging of the git was enforced a bit more strictly. As of now the only tag is from v0.1.0
I am packaging timeout-decorator for openSUSE, and found that the two `test_timeout_kwargs_with_initial_timeout_none` tests are both failing. ```py [ 112s] =================================== FAILURES =================================== [ 112s] _____________ test_timeout_kwargs_with_initial_timeout_none[False] _____________ [ 112s] [...
Replaces `multiprocess` by `billiard` Tested on python 2.7 and 3.5
Hello, I'm using timeout_decorator with celery, and it fails displaying this error: daemonic processes are not allowed to have children According to this https://stackoverflow.com/a/54917626/6684009 it's related to a limitation in...
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...
I have a class like: class A(object): def __init__(self): self.timeout=4 @timeout_decorator(self.timeout) # it dosn't work def doanything(self): print("do") So, how to decorate doanything function in A class? Thanks
I've been facing super fast memory draining when using multithread + timeout-decorator in one of the methods of my class. Solved by puting this line at the end of cancel...