Open yilinjuang opened 6 years ago
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
When setting
use_signal
toFalse
, it usesmultiprocessing.Queue
which isn't support in AWS Lambda. Are we gonna have other approach to not use signal? Maybe usemultiprocessing.Pipe
? ThanksAWS Document: https://aws.amazon.com/blogs/compute/parallel-processing-in-python-with-aws-lambda/