ee.data.updateTask
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
อัปเดตพร็อพเพอร์ตี้ของงานอย่างน้อย 1 รายการ ขณะนี้อัปเดตได้เฉพาะพร็อพเพอร์ตี้ต่อไปนี้เท่านั้น ได้แก่ สถานะ (เป็น "ยกเลิกแล้ว")
แสดงผลอาร์เรย์ของงานที่อัปเดต หรือ null หากมีการระบุแฮนเดิลการเรียกกลับ
การใช้งาน | การคืนสินค้า |
---|
ee.data.updateTask(taskId, action, callback) | List<TaskStatus> |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
taskId | List<String>|String | รหัสที่ส่งของงานหรืออาร์เรย์ของรหัสงานหลายรายการ อาจมีชื่อการดำเนินการด้วย |
action | TaskUpdateActions | การดำเนินการที่ทำกับงาน |
callback | ฟังก์ชัน (ไม่บังคับ) | การเรียกกลับที่ไม่บังคับ หากไม่ได้ระบุไว้ ระบบจะโทรแบบพร้อมกัน |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[[["\u003cp\u003eThe \u003ccode\u003eee.data.updateTask\u003c/code\u003e function allows for updating the state of one or more Earth Engine tasks to 'CANCELLED'.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts a task ID (or an array of IDs), an action object, and an optional callback function for asynchronous execution.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the function returns an array of updated tasks if a callback is not provided; otherwise, it returns null.\u003c/p\u003e\n"],["\u003cp\u003eThe function is limited to updating the task state only, other properties are not currently modifiable.\u003c/p\u003e\n"]]],[],null,["# ee.data.updateTask\n\n\u003cbr /\u003e\n\nUpdate one or more tasks' properties. For now, only the following properties may be updated: State (to CANCELLED)\n\n\u003cbr /\u003e\n\nReturns an array of updated tasks, or null if a callback is specified.\n\n| Usage | Returns |\n|----------------------------------------------------|--------------------|\n| `ee.data.updateTask(taskId, action, `*callback*`)` | List\\\u003cTaskStatus\\\u003e |\n\n| Argument | Type | Details |\n|------------|------------------------|----------------------------------------------------------------------------------------------|\n| `taskId` | List\\\u003cString\\\u003e\\|String | Submitted ID of the task or an array of multiple task IDs. May also contain operation names. |\n| `action` | TaskUpdateActions | Action performed on tasks. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]