kubedirector icon indicating copy to clipboard operation
kubedirector copied to clipboard

execCommand should support specifying timeout

Open joel-bluedata opened this issue 6 years ago • 3 comments

Ideally we can model the timeout as an input to this function; if not we need a usual way for callers to model a timeout and interrupt it.

Related to issue #54 (as a general backstop against never-terminating startscripts).

joel-bluedata avatar Oct 03 '18 18:10 joel-bluedata

Pulling this into 0.5.1 as a possible solution for #213 if we can figure this out.

joel-bluedata avatar Jul 27 '20 19:07 joel-bluedata

I think the only real way to do this will be to run an ExecCommand invocation, or maybe just the final exec.Stream, in its own separate process in the container. In general golang has a real problem dealing with a goroutine that is indefinitely blocked on I/O.

joel-bluedata avatar Jul 27 '20 19:07 joel-bluedata

This is a nasty one but we need to keep returning to think about it.

joel-bluedata avatar Jun 18 '21 21:06 joel-bluedata