Interface SchedulingOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Scheduling
,Scheduling.Builder
public interface SchedulingOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getDisableRetries()
Optional.boolean
getRestartJobOnWorkerRestart()
Restarts the entire CustomJob if a worker gets restarted.com.google.protobuf.Duration
getTimeout()
The maximum job running time.com.google.protobuf.DurationOrBuilder
getTimeoutOrBuilder()
The maximum job running time.boolean
hasTimeout()
The maximum job running time.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasTimeout
boolean hasTimeout()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
- Returns:
- Whether the timeout field is set.
-
getTimeout
com.google.protobuf.Duration getTimeout()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
- Returns:
- The timeout.
-
getTimeoutOrBuilder
com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder()
The maximum job running time. The default is 7 days.
.google.protobuf.Duration timeout = 1;
-
getRestartJobOnWorkerRestart
boolean getRestartJobOnWorkerRestart()
Restarts the entire CustomJob if a worker gets restarted. This feature can be used by distributed training jobs that are not resilient to workers leaving and joining a job.
bool restart_job_on_worker_restart = 3;
- Returns:
- The restartJobOnWorkerRestart.
-
getDisableRetries
boolean getDisableRetries()
Optional. Indicates if the job should retry for internal errors after the job starts running. If true, overrides `Scheduling.restart_job_on_worker_restart` to false.
bool disable_retries = 5 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- The disableRetries.
-
-