Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ public static class ServerConfiguration {
usage = "The job service port. 0 to use a dynamic port. (Default: 8099)")
private int port = 8099;

@Option(name = "--artifact-host", usage = "The artifact service host name")
private String artifactHost = "localhost";

@Option(
name = "--artifact-port",
usage = "The artifact service port. 0 to use a dynamic port. (Default: 8098)")
Expand Down Expand Up @@ -264,7 +267,7 @@ private GrpcFnServer<ArtifactStagingService> createArtifactStagingService() thro
} else {
Endpoints.ApiServiceDescriptor descriptor =
Endpoints.ApiServiceDescriptor.newBuilder()
.setUrl(configuration.host + ":" + configuration.artifactPort)
.setUrl(configuration.artifactHost + ":" + configuration.artifactPort)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why do we need a separate host here? This is breaking as of now, so at least it should default to the host variable

.build();
server = GrpcFnServer.create(service, descriptor, artifactServerFactory);
}
Expand Down
Loading