glu icon indicating copy to clipboard operation
glu copied to clipboard

Don't let command run forever if not intentional

Open ypujante opened this issue 9 years ago • 2 comments

Right now if an agent is set to execute a never ending command (like top or tail -f xxx), then the command never ends even if the user is no longer "watching". The console should have a default timeout (optional) to abort a command that nobody is watching unless it was marked as "ok to run forever".

ypujante avatar Apr 12 '15 03:04 ypujante

Ideally we should be able to set this per fabric, or even better allow an agent's variables to set the timeout:

  • per console setting (configured in the console's regular settings file)
  • per fabric setting (configured in the console admin UI)
  • per agent setting (configured in the agent's property file or env variables)

Thanks!

sodul avatar Apr 12 '15 06:04 sodul

The "per agent" setting is a lot harder to implement. If the console needs to detect that "nobody" is watching for some timeout, the issue is that it does not have access to the agent defined timeout. Unless you were thinking about a different implementation of course.

ypujante avatar Apr 12 '15 14:04 ypujante