ee.data.updateTask
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
ویژگی های یک یا چند کار را به روز کنید. در حال حاضر، فقط ویژگی های زیر ممکن است به روز شوند: حالت (به لغو)
آرایه ای از وظایف به روز شده را برمی گرداند، یا اگر پاسخ تماس مشخص شده باشد، صفر می شود.
استفاده | برمی گرداند | ee.data.updateTask(taskId, action, callback ) | فهرست <TaskStatus> |
استدلال | تایپ کنید | جزئیات | taskId | فهرست<String>|رشته | شناسه کار یا آرایه ای از چند شناسه کار ارسال شده. همچنین ممکن است حاوی نام عملیات باشد. |
action | TaskUpdateActions | اقدام انجام شده بر روی وظایف. |
callback | عملکرد، اختیاری | پاسخ به تماس اختیاری در صورت عدم ارائه، تماس به صورت همزمان انجام می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]