[[["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 V2 API - Class Google::Cloud::Tasks::V2::Attempt (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-tasks-v2/latest/Google-Cloud-Tasks-V2-Attempt)\n- [1.2.1](/ruby/docs/reference/google-cloud-tasks-v2/1.2.1/Google-Cloud-Tasks-V2-Attempt)\n- [1.1.0](/ruby/docs/reference/google-cloud-tasks-v2/1.1.0/Google-Cloud-Tasks-V2-Attempt)\n- [1.0.1](/ruby/docs/reference/google-cloud-tasks-v2/1.0.1/Google-Cloud-Tasks-V2-Attempt)\n- [0.11.0](/ruby/docs/reference/google-cloud-tasks-v2/0.11.0/Google-Cloud-Tasks-V2-Attempt)\n- [0.10.2](/ruby/docs/reference/google-cloud-tasks-v2/0.10.2/Google-Cloud-Tasks-V2-Attempt)\n- [0.9.0](/ruby/docs/reference/google-cloud-tasks-v2/0.9.0/Google-Cloud-Tasks-V2-Attempt)\n- [0.8.2](/ruby/docs/reference/google-cloud-tasks-v2/0.8.2/Google-Cloud-Tasks-V2-Attempt)\n- [0.7.0](/ruby/docs/reference/google-cloud-tasks-v2/0.7.0/Google-Cloud-Tasks-V2-Attempt)\n- [0.6.0](/ruby/docs/reference/google-cloud-tasks-v2/0.6.0/Google-Cloud-Tasks-V2-Attempt)\n- [0.5.0](/ruby/docs/reference/google-cloud-tasks-v2/0.5.0/Google-Cloud-Tasks-V2-Attempt)\n- [0.4.6](/ruby/docs/reference/google-cloud-tasks-v2/0.4.6/Google-Cloud-Tasks-V2-Attempt) \nReference documentation and code samples for the Cloud Tasks V2 API class Google::Cloud::Tasks::V2::Attempt.\n\nThe status of a task attempt. \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### #dispatch_time\n\n def dispatch_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was dispatched.\n\n\n `dispatch_time` will be truncated to the nearest microsecond.\n\n### #dispatch_time=\n\n def dispatch_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was dispatched.\n\n\n`dispatch_time` will be truncated to the nearest microsecond. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was dispatched.\n\n\n `dispatch_time` will be truncated to the nearest microsecond.\n\n### #response_status\n\n def response_status() -\u003e ::Google::Rpc::Status\n\n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Output only. The response from the worker for this attempt.\n\n\n If `response_time` is unset, then the task has not been attempted or is\n currently running and the `response_status` field is meaningless.\n\n### #response_status=\n\n def response_status=(value) -\u003e ::Google::Rpc::Status\n\n**Parameter**\n\n- **value** ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Output only. The response from the worker for this attempt.\n\n\n If `response_time` is unset, then the task has not been attempted or is\ncurrently running and the `response_status` field is meaningless. \n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Output only. The response from the worker for this attempt.\n\n\n If `response_time` is unset, then the task has not been attempted or is\n currently running and the `response_status` field is meaningless.\n\n### #response_time\n\n def response_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt response was received.\n\n\n `response_time` will be truncated to the nearest microsecond.\n\n### #response_time=\n\n def response_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt response was received.\n\n\n`response_time` will be truncated to the nearest microsecond. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt response was received.\n\n\n `response_time` will be truncated to the nearest microsecond.\n\n### #schedule_time\n\n def schedule_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was scheduled.\n\n\n `schedule_time` will be truncated to the nearest microsecond.\n\n### #schedule_time=\n\n def schedule_time=(value) -\u003e ::Google::Protobuf::Timestamp\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was scheduled.\n\n\n`schedule_time` will be truncated to the nearest microsecond. \n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. The time that this attempt was scheduled.\n\n\n `schedule_time` will be truncated to the nearest microsecond."]]