Search in sources :

Example 1 with BatchJobSpec

use of com.netflix.titus.grpc.protogen.BatchJobSpec in project titus-control-plane by Netflix.

the class JobTemplateCommand method createBatchJobDescriptor.

private JobDescriptor createBatchJobDescriptor() {
    Container container = createContainer().addAllEntryPoint(asList("echo", "\"Hello\"")).build();
    BatchJobSpec jobSpec = BatchJobSpec.newBuilder().setRuntimeLimitSec(180).setSize(1).setRetryPolicy(RetryPolicy.newBuilder().setDelayed(RetryPolicy.Delayed.newBuilder().setDelayMs(1000).setRetries(3))).build();
    return JobDescriptor.newBuilder().setApplicationName("myBatchApp").setOwner(createUser()).setCapacityGroup("batch_workloads").setContainer(container).putAllAttributes(createLabels()).setJobGroupInfo(createJobGroupInfo()).setBatch(jobSpec).build();
}
Also used : Container(com.netflix.titus.grpc.protogen.Container) BatchJobSpec(com.netflix.titus.grpc.protogen.BatchJobSpec)

Aggregations

BatchJobSpec (com.netflix.titus.grpc.protogen.BatchJobSpec)1 Container (com.netflix.titus.grpc.protogen.Container)1