[[["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-09 UTC."],[],[],null,["# Cloud Tasks V2beta2 API - Class Google::Cloud::Tasks::V2beta2::TaskStatus (v0.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.15.0 (latest)](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.14.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.14.1/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.13.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.13.0/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.12.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.12.1/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.11.3](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.11.3/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.10.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.10.0/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.9.2](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.9.2/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.8.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.8.0/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.7.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.7.0/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.6.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.6.0/Google-Cloud-Tasks-V2beta2-TaskStatus)\n- [0.5.5](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.5.5/Google-Cloud-Tasks-V2beta2-TaskStatus) \nReference documentation and code samples for the Cloud Tasks V2beta2 API class Google::Cloud::Tasks::V2beta2::TaskStatus.\n\nStatus of the task. \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### #attempt_dispatch_count\n\n def attempt_dispatch_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. The number of attempts dispatched.\n\n This count includes attempts which have been dispatched but haven't\n received a response.\n\n### #attempt_dispatch_count=\n\n def attempt_dispatch_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Output only. The number of attempts dispatched.\n\n\n This count includes attempts which have been dispatched but haven't\nreceived a response. \n**Returns**\n\n- (::Integer) --- Output only. The number of attempts dispatched.\n\n This count includes attempts which have been dispatched but haven't\n received a response.\n\n### #attempt_response_count\n\n def attempt_response_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. The number of attempts which have received a response.\n\n This field is not calculated for \\[pull\n tasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\].\n\n### #attempt_response_count=\n\n def attempt_response_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Output only. The number of attempts which have received a response.\n\n\n This field is not calculated for \\[pull\ntasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\]. \n**Returns**\n\n- (::Integer) --- Output only. The number of attempts which have received a response.\n\n This field is not calculated for \\[pull\n tasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\].\n\n### #first_attempt_status\n\n def first_attempt_status() -\u003e ::Google::Cloud::Tasks::V2beta2::AttemptStatus\n\n**Returns**\n\n- ([::Google::Cloud::Tasks::V2beta2::AttemptStatus](./Google-Cloud-Tasks-V2beta2-AttemptStatus)) --- Output only. The status of the task's first attempt.\n\n\n Only\n [dispatch_time](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-AttemptStatus#Google__Cloud__Tasks__V2beta2__AttemptStatus_dispatch_time_instance_ \"Google::Cloud::Tasks::V2beta2::AttemptStatus#dispatch_time (method)\")\n will be set. The other\n [AttemptStatus](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-AttemptStatus \"Google::Cloud::Tasks::V2beta2::AttemptStatus (class)\") information is\n not retained by Cloud Tasks.\n\n This field is not calculated for \\[pull\n tasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\].\n\n### #first_attempt_status=\n\n def first_attempt_status=(value) -\u003e ::Google::Cloud::Tasks::V2beta2::AttemptStatus\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Tasks::V2beta2::AttemptStatus](./Google-Cloud-Tasks-V2beta2-AttemptStatus)) --- Output only. The status of the task's first attempt.\n\n\n Only\n [dispatch_time](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-AttemptStatus#Google__Cloud__Tasks__V2beta2__AttemptStatus_dispatch_time_instance_ \"Google::Cloud::Tasks::V2beta2::AttemptStatus#dispatch_time (method)\")\n will be set. The other\n [AttemptStatus](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-AttemptStatus \"Google::Cloud::Tasks::V2beta2::AttemptStatus (class)\") information is\n not retained by Cloud Tasks.\n\n This field is not calculated for \\[pull\ntasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\]. \n**Returns**\n\n- ([::Google::Cloud::Tasks::V2beta2::AttemptStatus](./Google-Cloud-Tasks-V2beta2-AttemptStatus)) --- Output only. The status of the task's first attempt.\n\n\n Only\n [dispatch_time](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-AttemptStatus#Google__Cloud__Tasks__V2beta2__AttemptStatus_dispatch_time_instance_ \"Google::Cloud::Tasks::V2beta2::AttemptStatus#dispatch_time (method)\")\n will be set. The other\n [AttemptStatus](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-AttemptStatus \"Google::Cloud::Tasks::V2beta2::AttemptStatus (class)\") information is\n not retained by Cloud Tasks.\n\n This field is not calculated for \\[pull\n tasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\].\n\n### #last_attempt_status\n\n def last_attempt_status() -\u003e ::Google::Cloud::Tasks::V2beta2::AttemptStatus\n\n**Returns**\n\n- ([::Google::Cloud::Tasks::V2beta2::AttemptStatus](./Google-Cloud-Tasks-V2beta2-AttemptStatus)) --- Output only. The status of the task's last attempt.\n\n\n This field is not calculated for \\[pull\n tasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\].\n\n### #last_attempt_status=\n\n def last_attempt_status=(value) -\u003e ::Google::Cloud::Tasks::V2beta2::AttemptStatus\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Tasks::V2beta2::AttemptStatus](./Google-Cloud-Tasks-V2beta2-AttemptStatus)) --- Output only. The status of the task's last attempt.\n\n\n This field is not calculated for \\[pull\ntasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\]. \n**Returns**\n\n- ([::Google::Cloud::Tasks::V2beta2::AttemptStatus](./Google-Cloud-Tasks-V2beta2-AttemptStatus)) --- Output only. The status of the task's last attempt.\n\n\n This field is not calculated for \\[pull\n tasks\\]\\[google.cloud.tasks.v2beta2.PullMessage\\]."]]