ee.data.newTaskId
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک شناسه «ارسال نشده» برای یک کار طولانی مدت ایجاد می کند.
قبل از ارسال وظایف، ممکن است شناسه هایی برای ردیابی آنها به آنها اختصاص داده شود. سرور تضمین می کند که همان شناسه قابل استفاده مجدد نیست. این شناسه ها دارای فرمت UUID هستند: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
وظایفی که روی سرور اجرا می شوند دارای شناسه بدون خط فاصله هستند. این توسط ee.data.startProcessing و سایر روشهای دستهای برگردانده میشود.
آرایهای حاوی رشتههای شناسه تولید شده را برمیگرداند، یا در صورت مشخص شدن پاسخ به تماس، تهی است.
استفاده | برمی گرداند | ee.data.newTaskId( count , callback ) | فهرست <رشته> |
استدلال | تایپ کنید | جزئیات | count | شماره، اختیاری | تعداد شناسههایی که باید تولید شوند، یکی بهطور پیشفرض. |
callback | عملکرد، اختیاری | پاسخ به تماس اختیاری در صورت عدم ارائه، تماس به صورت همزمان انجام می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eGenerates unique, unsubmitted IDs for pre-submission tracking of long-running tasks.\u003c/p\u003e\n"],["\u003cp\u003eThese IDs follow a UUID format (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) and are guaranteed to be unique by the server.\u003c/p\u003e\n"],["\u003cp\u003eRunning tasks on the server have IDs without hyphens, distinct from these pre-submission IDs.\u003c/p\u003e\n"],["\u003cp\u003eThe function \u003ccode\u003eee.data.newTaskId()\u003c/code\u003e generates these IDs and returns them as an array or via a callback.\u003c/p\u003e\n"]]],[],null,["# ee.data.newTaskId\n\n\u003cbr /\u003e\n\nGenerates an \"unsubmitted\" ID for a long-running task.\n\n\u003cbr /\u003e\n\nBefore tasks are submitted, they may be assigned IDs to track them. The server ensures that the same ID cannot be reused. These IDs have a UUID format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.\n\nTasks that are running on the server have a ID without hyphens. This is returned by ee.data.startProcessing and other batch methods.\n\nReturns an array containing generated ID strings, or null if a callback is specified.\n\n| Usage | Returns |\n|-----------------------------------------------|----------------|\n| `ee.data.newTaskId(`*count* `, `*callback*`)` | List\\\u003cString\\\u003e |\n\n| Argument | Type | Details |\n|------------|--------------------|------------------------------------------------------------------------|\n| `count` | Number, optional | The number of IDs to generate, one by default. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]