ee.data.updateTask
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Aktualisieren Sie die Eigenschaften einer oder mehrerer Aufgaben. Derzeit können nur die folgenden Properties aktualisiert werden: Status (zu CANCELLED)
Gibt ein Array mit aktualisierten Aufgaben oder „null“ zurück, wenn ein Callback angegeben ist.
Nutzung | Ausgabe |
---|
ee.data.updateTask(taskId, action, callback) | List<TaskStatus> |
Argument | Typ | Details |
---|
taskId | List<String>|String | Eingereichte ID der Aufgabe oder ein Array mit mehreren Aufgaben-IDs. Kann auch Vorgangsnamen enthalten. |
action | TaskUpdateActions | Aktion, die für Aufgaben ausgeführt wurde. |
callback | Funktion (optional) | Ein optionaler Callback. Wenn nicht angegeben, erfolgt der Aufruf synchron. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]