Skip to content

support multiple functions in one pod #65

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
Nov 1, 2022

Conversation

wanjunlei
Copy link
Member

Signed-off-by: wanjunlei [email protected]

@wanjunlei wanjunlei requested a review from benjaminhuo October 26, 2022 07:19
cmd := []string{"javap", "-classpath", classpath, target}
if _, err := ctx.ExecWithErr(cmd, gcp.WithUserAttribution); err != nil {
// The javap error output will typically be "Error: class not found: foo.Bar".
success = false
Copy link
Member

@benjaminhuo benjaminhuo Nov 1, 2022

Choose a reason for hiding this comment

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

return false here whenever ExecWithErr failed?
Which means return error whenever a function doesn't exist if there're multiple functions?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes.
The java application will exit if a class is not found. So it requires that all function classes exist.

@benjaminhuo benjaminhuo merged commit 0500a97 into OpenFunction:main Nov 1, 2022
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