Google Cloud Ai Platform V1 Client - Class Scheduling (0.28.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class Scheduling.

All parameters related to queuing and scheduling of custom jobs.

Generated from protobuf message google.cloud.aiplatform.v1.Scheduling

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ timeout Google\Protobuf\Duration

The maximum job running time. The default is 7 days.

↳ restart_job_on_worker_restart bool

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.

↳ disable_retries bool

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.

getTimeout

The maximum job running time. The default is 7 days.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTimeout

clearTimeout

setTimeout

The maximum job running time. The default is 7 days.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

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.

Returns
TypeDescription
bool

setRestartJobOnWorkerRestart

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

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.

Returns
TypeDescription
bool

setDisableRetries

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.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this