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'm having an issue when the main process / thread is killed (keyboard interrupt), the timeout_decorator child processes don't die with it. I have to manually kill the processes so...

``` Traceback (most recent call last): File "/Users/x/Downloads/Projects/ios-apps-research-2022/exynex/shell.py", line 83, in on_output _pipe(stdout, stderr)(fd, data) File "/Users/x/Downloads/Projects/ios-apps-research-2022/exynex/shell.py", line 43, in pipe _output(data) File "/Users/x/Downloads/Projects/ios-apps-research-2022/exynex/shell.py", line 122, in exit_handler if not...

Hello, PyPI has several releases (listed [here](https://pypi.org/project/timeout-decorator/#history)) but this repo has only a single tag, `0.1.0`: can you push all the other tags for a released version? thanks!

``` Traceback (most recent call last): File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/Users/x/.pyenv/versions/3.9.0/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/Users/x/Downloads/Projects/ios-apps-research-2022/exynex/__main__.py", line 83, in cli()...

The following code hangs indefinitely on my laptop (OSX). ``` import threading import timeout_decorator @timeout_decorator.timeout(1) def main(): l = threading.Lock() l.acquire() l.acquire() if __name__ == '__main__': main() ``` With `use_signals`,...

Hi, Would it be possible to please include tests and the license files in the release tars? At the moment, they are not included in the pypi release downloads. Alternatively,...

import time import timeout_decorator import asyncio @timeout_decorator.timeout(5, use_signals=False) async def main(): asyncio.sleep(10) if __name__ == '__main__': asyncio.run(main())

@timeout_decorator.timeout(3, use_signals=False) async def _first_run_restore(self, password='', seeds=''): pass it does not work.

When an Exception occurs in decorated method, it is not possible to see the real traceback. For example: ``` import traceback from timeout_decorator import timeout_decorator @timeout_decorator.timeout(10, use_signals=False) def func(): raise...

I have some code where I save some non-essential logging information to AWS CloudWatch. Often it takes too long, so I use this timeout decorator. But if it does time...