timeout-decorator icon indicating copy to clipboard operation
timeout-decorator copied to clipboard

Timeout decorator for Python

Results 42 timeout-decorator issues
Sort by recently updated
recently updated
newest added

I have a multi-threaded program in which threads call a function decorated with the timeout-decorator: ``` @timeout_decorator.timeout(seconds=300, use_signals=False) def some_func(param1, param2): ... ``` Occasionally one of the threads hangs even...

Thanks for this useful library. Do you plan on adding context managers into this library?

The current build setup support coveralls but it's currently not working because the repo isn't signed up at coveralls.

Hi, I'm using `timeout_decorator` for machine learning workloads, ensuring that parameter optimizations terminate below pre-defined timeout. This helps in my process, but my workflow became sensitive to any other workload...

I was a bit mistified to see that timeout-decorator doesn't work well with multithreading. I know this will seem quite obvious (now that I have considered what happened under the...

@timeout(4) @retry(tries=6, delay=2) def retry_after_each_timeout(): # time.sleep(5) raise Exception This code will raise a timeout exception after 4 seconds, not after 6 tries. Uncomment the sleep code make it behaviour...

Hi, Here in python_runner.py file i am reading a python file(myscript.py) and running the script with timeout. **python_runner.py:** ``` import timeout_decorator try: @timeout_decorator.timeout(5) def execute_script_file_with_timeout(): exec(open(myscript.py).read()) execute_script_file_with_timeout() except timeout_decorator.timeout_decorator.TimeoutError: print("Task...

with code: import time import timeout_decorator @timeout_decorator.timeout(3,use_signals=False) def mytest(): time.sleep(5) return 5 mytest() get: Output exceeds the [size limit](command:workbench.action.openSettings?%5B%22notebook.output.textLineLimit%22%5D). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?212a3fb7-56ef-4292-8fa3-b7b8fd5681c1) --------------------------------------------------------------------------- PicklingError...