Skip to content

Commit

Permalink
titus - defaults inService to true when not set as grpc does not allo…
Browse files Browse the repository at this point in the history
…w nulls
  • Loading branch information
tomaslin committed Mar 26, 2018
1 parent 71b5b5b commit cb3b2bf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ public JobDescriptor getGrpcJobDescriptor() {
}
jobGroupInfoBuilder.setSequence(jobGroupSequence);
jobDescriptorBuilder.setJobGroupInfo(jobGroupInfoBuilder);

if (inService == null) {
inService = true;
}

jobDescriptorBuilder.setService(
ServiceJobSpec.newBuilder().setEnabled(inService)
.setCapacity(jobCapacity)
Expand Down

0 comments on commit cb3b2bf

Please sign in to comment.