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

close the child's stdin after writing all of the payload #253

Merged
merged 1 commit into from
Jan 18, 2020

Conversation

attie
Copy link
Contributor

@attie attie commented Jan 17, 2020

This fix will close the child's stdin, allowing you to read to the end and acquire all of the stat information.

For example, using shell-plugin.js, we can now include something like the following in our script - in this case to get the source of the job.

cat > job_info

jq -r '.source' < job_info

Previously this would have been impossible, as the pipe was never closed, and thus we'd never get EOF... the effect is that the job appears to hang.

@jhuckaby
Copy link
Owner

Thanks!

@jhuckaby jhuckaby merged commit c6c3a5d into jhuckaby:master Jan 18, 2020
jhuckaby added a commit that referenced this pull request Jan 18, 2020
- Includes PR #253 (thanks @attie).
- If you do not wish to merge the POST data into the `params` (for example if you are using a webhook that provides other data as JSON), then you can add `&post_data=1` to the query string. If you do this, then the POST data will be available in the `post_data` key of the `params` object.
- Thanks to user @attie and PR #254 for these fixes and suggestions.
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.

2 participants