Optional. The maximum job running time. The default is 7 days.
↳ restart_job_on_worker_restart
bool
Optional. 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.
↳ strategy
int
Optional. This determines which type of scheduling strategy to use.
↳ 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.
Optional. This is the maximum duration that a job will wait for the requested resources to be provisioned if the scheduling strategy is set to [Strategy.DWS_FLEX_START]. If set to 0, the job will wait indefinitely. The default is 24 hours.
getTimeout
Optional. The maximum job running time. The default is 7 days.
Optional. 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
Type
Description
bool
setRestartJobOnWorkerRestart
Optional. 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
Name
Description
var
bool
Returns
Type
Description
$this
getStrategy
Optional. This determines which type of scheduling strategy to use.
Returns
Type
Description
int
setStrategy
Optional. This determines which type of scheduling strategy to use.
Parameter
Name
Description
var
int
Returns
Type
Description
$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
Type
Description
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
Name
Description
var
bool
Returns
Type
Description
$this
getMaxWaitDuration
Optional. This is the maximum duration that a job will wait for the
requested resources to be provisioned if the scheduling strategy is set to
[Strategy.DWS_FLEX_START].
If set to 0, the job will wait indefinitely. The default is 24 hours.
Optional. This is the maximum duration that a job will wait for the
requested resources to be provisioned if the scheduling strategy is set to
[Strategy.DWS_FLEX_START].
If set to 0, the job will wait indefinitely. The default is 24 hours.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Ai Platform V1 Client - Class Scheduling (1.35.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.35.0 (latest)](/php/docs/reference/cloud-ai-platform/latest/V1.Scheduling)\n- [1.34.0](/php/docs/reference/cloud-ai-platform/1.34.0/V1.Scheduling)\n- [1.33.0](/php/docs/reference/cloud-ai-platform/1.33.0/V1.Scheduling)\n- [1.32.1](/php/docs/reference/cloud-ai-platform/1.32.1/V1.Scheduling)\n- [1.31.0](/php/docs/reference/cloud-ai-platform/1.31.0/V1.Scheduling)\n- [1.30.0](/php/docs/reference/cloud-ai-platform/1.30.0/V1.Scheduling)\n- [1.26.0](/php/docs/reference/cloud-ai-platform/1.26.0/V1.Scheduling)\n- [1.23.0](/php/docs/reference/cloud-ai-platform/1.23.0/V1.Scheduling)\n- [1.22.0](/php/docs/reference/cloud-ai-platform/1.22.0/V1.Scheduling)\n- [1.21.0](/php/docs/reference/cloud-ai-platform/1.21.0/V1.Scheduling)\n- [1.20.0](/php/docs/reference/cloud-ai-platform/1.20.0/V1.Scheduling)\n- [1.19.0](/php/docs/reference/cloud-ai-platform/1.19.0/V1.Scheduling)\n- [1.18.0](/php/docs/reference/cloud-ai-platform/1.18.0/V1.Scheduling)\n- [1.17.0](/php/docs/reference/cloud-ai-platform/1.17.0/V1.Scheduling)\n- [1.16.0](/php/docs/reference/cloud-ai-platform/1.16.0/V1.Scheduling)\n- [1.15.0](/php/docs/reference/cloud-ai-platform/1.15.0/V1.Scheduling)\n- [1.14.0](/php/docs/reference/cloud-ai-platform/1.14.0/V1.Scheduling)\n- [1.13.1](/php/docs/reference/cloud-ai-platform/1.13.1/V1.Scheduling)\n- [1.12.0](/php/docs/reference/cloud-ai-platform/1.12.0/V1.Scheduling)\n- [1.11.0](/php/docs/reference/cloud-ai-platform/1.11.0/V1.Scheduling)\n- [1.10.0](/php/docs/reference/cloud-ai-platform/1.10.0/V1.Scheduling)\n- [1.9.0](/php/docs/reference/cloud-ai-platform/1.9.0/V1.Scheduling)\n- [1.8.0](/php/docs/reference/cloud-ai-platform/1.8.0/V1.Scheduling)\n- [1.7.0](/php/docs/reference/cloud-ai-platform/1.7.0/V1.Scheduling)\n- [1.6.0](/php/docs/reference/cloud-ai-platform/1.6.0/V1.Scheduling)\n- [1.5.0](/php/docs/reference/cloud-ai-platform/1.5.0/V1.Scheduling)\n- [1.4.0](/php/docs/reference/cloud-ai-platform/1.4.0/V1.Scheduling)\n- [1.3.0](/php/docs/reference/cloud-ai-platform/1.3.0/V1.Scheduling)\n- [1.2.0](/php/docs/reference/cloud-ai-platform/1.2.0/V1.Scheduling)\n- [1.1.0](/php/docs/reference/cloud-ai-platform/1.1.0/V1.Scheduling)\n- [1.0.0](/php/docs/reference/cloud-ai-platform/1.0.0/V1.Scheduling)\n- [0.39.0](/php/docs/reference/cloud-ai-platform/0.39.0/V1.Scheduling)\n- [0.38.0](/php/docs/reference/cloud-ai-platform/0.38.0/V1.Scheduling)\n- [0.37.1](/php/docs/reference/cloud-ai-platform/0.37.1/V1.Scheduling)\n- [0.32.0](/php/docs/reference/cloud-ai-platform/0.32.0/V1.Scheduling)\n- [0.31.0](/php/docs/reference/cloud-ai-platform/0.31.0/V1.Scheduling)\n- [0.30.0](/php/docs/reference/cloud-ai-platform/0.30.0/V1.Scheduling)\n- [0.29.0](/php/docs/reference/cloud-ai-platform/0.29.0/V1.Scheduling)\n- [0.28.0](/php/docs/reference/cloud-ai-platform/0.28.0/V1.Scheduling)\n- [0.27.0](/php/docs/reference/cloud-ai-platform/0.27.0/V1.Scheduling)\n- [0.26.2](/php/docs/reference/cloud-ai-platform/0.26.2/V1.Scheduling)\n- [0.25.0](/php/docs/reference/cloud-ai-platform/0.25.0/V1.Scheduling)\n- [0.24.0](/php/docs/reference/cloud-ai-platform/0.24.0/V1.Scheduling)\n- [0.23.0](/php/docs/reference/cloud-ai-platform/0.23.0/V1.Scheduling)\n- [0.22.0](/php/docs/reference/cloud-ai-platform/0.22.0/V1.Scheduling)\n- [0.21.0](/php/docs/reference/cloud-ai-platform/0.21.0/V1.Scheduling)\n- [0.20.0](/php/docs/reference/cloud-ai-platform/0.20.0/V1.Scheduling)\n- [0.19.0](/php/docs/reference/cloud-ai-platform/0.19.0/V1.Scheduling)\n- [0.18.0](/php/docs/reference/cloud-ai-platform/0.18.0/V1.Scheduling)\n- [0.17.0](/php/docs/reference/cloud-ai-platform/0.17.0/V1.Scheduling)\n- [0.16.0](/php/docs/reference/cloud-ai-platform/0.16.0/V1.Scheduling)\n- [0.15.0](/php/docs/reference/cloud-ai-platform/0.15.0/V1.Scheduling)\n- [0.13.0](/php/docs/reference/cloud-ai-platform/0.13.0/V1.Scheduling)\n- [0.12.0](/php/docs/reference/cloud-ai-platform/0.12.0/V1.Scheduling)\n- [0.11.1](/php/docs/reference/cloud-ai-platform/0.11.1/V1.Scheduling)\n- [0.10.0](/php/docs/reference/cloud-ai-platform/0.10.0/V1.Scheduling) \nReference documentation and code samples for the Google Cloud Ai Platform V1 Client class Scheduling.\n\nAll parameters related to queuing and scheduling of custom jobs.\n\nGenerated from protobuf message `google.cloud.aiplatform.v1.Scheduling`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AIPlatform \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTimeout\n\nOptional. The maximum job running time. The default is 7 days.\n\n### hasTimeout\n\n### clearTimeout\n\n### setTimeout\n\nOptional. The maximum job running time. The default is 7 days.\n\n### getRestartJobOnWorkerRestart\n\nOptional. Restarts the entire CustomJob if a worker gets restarted.\n\nThis feature can be used by distributed training jobs that are not\nresilient to workers leaving and joining a job.\n\n### setRestartJobOnWorkerRestart\n\nOptional. Restarts the entire CustomJob if a worker gets restarted.\n\nThis feature can be used by distributed training jobs that are not\nresilient to workers leaving and joining a job.\n\n### getStrategy\n\nOptional. This determines which type of scheduling strategy to use.\n\n### setStrategy\n\nOptional. This determines which type of scheduling strategy to use.\n\n### getDisableRetries\n\nOptional. Indicates if the job should retry for internal errors after the\njob starts running. If true, overrides\n`Scheduling.restart_job_on_worker_restart` to false.\n\n### setDisableRetries\n\nOptional. Indicates if the job should retry for internal errors after the\njob starts running. If true, overrides\n`Scheduling.restart_job_on_worker_restart` to false.\n\n### getMaxWaitDuration\n\nOptional. This is the maximum duration that a job will wait for the\nrequested resources to be provisioned if the scheduling strategy is set to\n\\[Strategy.DWS_FLEX_START\\].\n\nIf set to 0, the job will wait indefinitely. The default is 24 hours.\n\n### hasMaxWaitDuration\n\n### clearMaxWaitDuration\n\n### setMaxWaitDuration\n\nOptional. This is the maximum duration that a job will wait for the\nrequested resources to be provisioned if the scheduling strategy is set to\n\\[Strategy.DWS_FLEX_START\\].\n\nIf set to 0, the job will wait indefinitely. The default is 24 hours."]]