ee.data.updateTask
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Mettez à jour les propriétés d'une ou de plusieurs tâches. Pour le moment, seule la propriété "État" (vers "ANNULÉE") peut être modifiée.
Renvoie un tableau de tâches mises à jour ou la valeur "null" si un rappel est spécifié.
Utilisation | Renvoie |
---|
ee.data.updateTask(taskId, action, callback) | List<TaskStatus> |
Argument | Type | Détails |
---|
taskId | List<String>|String | ID envoyé de la tâche ou tableau de plusieurs ID de tâches. Peut également contenir des noms d'opérations. |
action | TaskUpdateActions | Action effectuée sur les tâches. |
callback | Fonction, facultatif | Un rappel facultatif. Si ce paramètre n'est pas spécifié, l'appel est effectué de manière synchrone. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 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. |"]]