Skip to content

pass payload as StdIn to task runner #648

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 2 commits into from
Sep 22, 2017
Merged

pass payload as StdIn to task runner #648

merged 2 commits into from
Sep 22, 2017

Conversation

c0ze
Copy link
Contributor

@c0ze c0ze commented Sep 19, 2017

this should fix #628 .

There is an unnecessary type change from

string reader -> string (api/server/runner.go)

https://github.com/iron-io/functions/blob/master/api/server/runner.go#L211

and then to string -> string reader (api/server/runner.go)
(this commits change)

Hmm, maybe actually for async runner, reading/consuming the reader is necessary.
And passing as another reader is necessary to keep compatibility with sync runners.

@c0ze c0ze requested a review from kunihiko-t September 19, 2017 13:48
@c0ze
Copy link
Contributor Author

c0ze commented Sep 22, 2017

@kunihiko-t when you have a chance, could you have a look into this please ?
thanks !

Copy link
Contributor

@kunihiko-t kunihiko-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@c0ze c0ze merged commit 330088d into master Sep 22, 2017
@c0ze c0ze deleted the fix-async-stdin branch January 16, 2018 00:55
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.

passing data into an asynchronous function
2 participants