(::Integer) — Optional. The desired number of tasks the execution should run. Will
replace existing task_count value.
#task_count=
deftask_count=(value)->::Integer
Parameter
value (::Integer) — Optional. The desired number of tasks the execution should run. Will
replace existing task_count value.
Returns
(::Integer) — Optional. The desired number of tasks the execution should run. Will
replace existing task_count value.
#timeout
deftimeout()->::Google::Protobuf::Duration
Returns
(::Google::Protobuf::Duration) — Duration in seconds the task may be active before the system will
actively try to mark it failed and kill associated containers. Will
replace existing timeout_seconds value.
#timeout=
deftimeout=(value)->::Google::Protobuf::Duration
Parameter
value (::Google::Protobuf::Duration) — Duration in seconds the task may be active before the system will
actively try to mark it failed and kill associated containers. Will
replace existing timeout_seconds value.
Returns
(::Google::Protobuf::Duration) — Duration in seconds the task may be active before the system will
actively try to mark it failed and kill associated containers. Will
replace existing timeout_seconds value.
[[["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-08-28 UTC."],[],[],null,["# Cloud Run V2 API - Class Google::Cloud::Run::V2::RunJobRequest::Overrides (v0.26.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.26.0 (latest)](/ruby/docs/reference/google-cloud-run-v2/latest/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.25.0](/ruby/docs/reference/google-cloud-run-v2/0.25.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.24.1](/ruby/docs/reference/google-cloud-run-v2/0.24.1/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.23.0](/ruby/docs/reference/google-cloud-run-v2/0.23.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.22.1](/ruby/docs/reference/google-cloud-run-v2/0.22.1/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.21.0](/ruby/docs/reference/google-cloud-run-v2/0.21.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.20.0](/ruby/docs/reference/google-cloud-run-v2/0.20.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.19.0](/ruby/docs/reference/google-cloud-run-v2/0.19.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.18.0](/ruby/docs/reference/google-cloud-run-v2/0.18.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.17.0](/ruby/docs/reference/google-cloud-run-v2/0.17.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.16.1](/ruby/docs/reference/google-cloud-run-v2/0.16.1/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.15.0](/ruby/docs/reference/google-cloud-run-v2/0.15.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.14.0](/ruby/docs/reference/google-cloud-run-v2/0.14.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.13.2](/ruby/docs/reference/google-cloud-run-v2/0.13.2/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.12.0](/ruby/docs/reference/google-cloud-run-v2/0.12.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.11.0](/ruby/docs/reference/google-cloud-run-v2/0.11.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.10.1](/ruby/docs/reference/google-cloud-run-v2/0.10.1/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.9.1](/ruby/docs/reference/google-cloud-run-v2/0.9.1/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.8.0](/ruby/docs/reference/google-cloud-run-v2/0.8.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.7.0](/ruby/docs/reference/google-cloud-run-v2/0.7.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.6.0](/ruby/docs/reference/google-cloud-run-v2/0.6.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.5.0](/ruby/docs/reference/google-cloud-run-v2/0.5.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.4.0](/ruby/docs/reference/google-cloud-run-v2/0.4.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.3.1](/ruby/docs/reference/google-cloud-run-v2/0.3.1/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.2.0](/ruby/docs/reference/google-cloud-run-v2/0.2.0/Google-Cloud-Run-V2-RunJobRequest-Overrides)\n- [0.1.0](/ruby/docs/reference/google-cloud-run-v2/0.1.0/Google-Cloud-Run-V2-RunJobRequest-Overrides) \nReference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::RunJobRequest::Overrides.\n\nRunJob Overrides that contains Execution fields to be overridden. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #container_overrides\n\n def container_overrides() -\u003e ::Array\u003c::Google::Cloud::Run::V2::RunJobRequest::Overrides::ContainerOverride\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Run::V2::RunJobRequest::Overrides::ContainerOverride](./Google-Cloud-Run-V2-RunJobRequest-Overrides-ContainerOverride)\\\u003e) --- Per container override specification.\n\n### #container_overrides=\n\n def container_overrides=(value) -\u003e ::Array\u003c::Google::Cloud::Run::V2::RunJobRequest::Overrides::ContainerOverride\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::Run::V2::RunJobRequest::Overrides::ContainerOverride](./Google-Cloud-Run-V2-RunJobRequest-Overrides-ContainerOverride)\\\u003e) --- Per container override specification. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Run::V2::RunJobRequest::Overrides::ContainerOverride](./Google-Cloud-Run-V2-RunJobRequest-Overrides-ContainerOverride)\\\u003e) --- Per container override specification.\n\n### #task_count\n\n def task_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Optional. The desired number of tasks the execution should run. Will replace existing task_count value.\n\n### #task_count=\n\n def task_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Optional. The desired number of tasks the execution should run. Will replace existing task_count value. \n**Returns**\n\n- (::Integer) --- Optional. The desired number of tasks the execution should run. Will replace existing task_count value.\n\n### #timeout\n\n def timeout() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value.\n\n### #timeout=\n\n def timeout=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Duration in seconds the task may be active before the system will actively try to mark it failed and kill associated containers. Will replace existing timeout_seconds value."]]