Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] request timeout #106

Open
toydarian opened this issue Jul 19, 2018 · 1 comment
Open

[Feature request] request timeout #106

toydarian opened this issue Jul 19, 2018 · 1 comment

Comments

@toydarian
Copy link

Would it be possible to add a (configurable) timeout for child processes and kill processes if they run longer than the configured timeout?

E.g. I open a sessions and the code contains an infinite loop. I want the "broken" process to be terminated after x seconds and some kind of exception sent to the client.

Background: I have an application that allows users to send R code to RServe. Some of the users cause processes to hang, run for a very long time or even indefinitely. Till now I kill all R processes from time to time and restart RServe. A timeout would be perfect to clean up "broken" jobs automatically.

@toydarian toydarian changed the title Child process timeout [Feature request] Child process timeout Jul 19, 2018
@s-u
Copy link
Owner

s-u commented Jul 26, 2019

This is not entirely straight-forward, because R doesn't always allow interrupt, so we can only address cases where the code causing the infinite loop is interruptible. In all other cases you can only kill the process and close the connection.

@s-u s-u changed the title [Feature request] Child process timeout [Feature request] request timeout Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants