Skip to content

Fix for #118 (agent hangs if STDOUT/STDERR left open by hook) #119

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

Merged
merged 1 commit into from
Jun 20, 2018

Conversation

jcttrll
Copy link
Contributor

@jcttrll jcttrll commented Jun 21, 2017

Here's a tentative fix for Issue #118. It's tested, and relatively simple. Other enhancements, like killing the STDOUT/STDERR pump threads when their joins time out, could easily be added.

A new error code, OUTPUTS_LEFT_OPEN_CODE = 6, is added to the ScriptError class. Presumably, this could be tied to information in the AWS Console for the failed event, possibly containing a link to helpful documentation?

@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 94.673% when pulling 26d5ee4 on perihelios:outputs-left-open into c510185 on aws:master.

@ennala
Copy link

ennala commented Aug 8, 2017

Any eta on what version this will be merged to ?

@CannibalVox
Copy link

Can this get merged? Would really like it if my timeouts actually uhhh.... timed out.

@obscurerichard
Copy link

yes please, I am seeing application hooks that hang forever instead of timing out too.

@achadha235
Copy link

Is this fix / issue still being tracked? I just ran into this problem while using AWS CodeStar.

@rohkat-aws
Copy link
Contributor

@jcttrll we are currently reviewing your commit and apologies for the late reply.

@jpeddicord
Copy link

Hi @jcttrll,

Sorry for the run-around -- could you confirm that your contribution is being made under the terms of the Apache 2.0 license?

@jcttrll
Copy link
Contributor Author

jcttrll commented May 17, 2018

Hi, @jpeddicord,

Yes, my contribution is being made under the terms of the Apache 2.0 license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants