Can't be used in AWS Lambda
When setting use_signal to False, it uses multiprocessing.Queue which isn't support in AWS Lambda.
Are we gonna have other approach to not use signal? Maybe use multiprocessing.Pipe? Thanks
AWS Document: https://aws.amazon.com/blogs/compute/parallel-processing-in-python-with-aws-lambda/
Good point. Do you want to make a PR for that?
Sure. How about adding another argument other than use_signal? Or change the implementation inside use_signal?
can You provide a code snippet to test please
ok, I changed the implementation to use multiprocess.pipe (halfduplex). It is faster, more elegant and probably can work with AWS (let me know). See : https://github.com/bitranox/wrapt-timeout-decorator or https://github.com/pnpnpn/timeout-decorator/pull/53 yours sincerely Robert