ee.data.newTaskId
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
लंबे समय तक चलने वाले टास्क के लिए, "सबमिट नहीं किया गया" आईडी जनरेट करता है.
टास्क सबमिट करने से पहले, उन्हें ट्रैक करने के लिए आईडी असाइन किए जा सकते हैं. सर्वर यह पक्का करता है कि एक ही आईडी का दोबारा इस्तेमाल न किया जा सके. इन आईडी का यूयूआईडी फ़ॉर्मैट यह है: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
सर्वर पर चल रहे टास्क का आईडी, हाइफ़न के बिना होता है. यह वैल्यू, ee.data.startProcessing और बैच के अन्य तरीकों से मिलती है.
जनरेट की गई आईडी स्ट्रिंग वाला कलेक्शन दिखाता है. अगर कोई कॉलबैक तय किया गया है, तो यह कोई वैल्यू नहीं दिखाता.
इस्तेमाल | रिटर्न |
---|
ee.data.newTaskId(count, callback) | List<String> |
आर्ग्यूमेंट | टाइप | विवरण |
---|
count | नंबर, ज़रूरी नहीं | जनरेट किए जाने वाले आईडी की संख्या, डिफ़ॉल्ट रूप से एक. |
callback | फ़ंक्शन, ज़रूरी नहीं | कॉलबैक की वैकल्पिक वैल्यू. अगर यह पैरामीटर नहीं दिया जाता है, तो कॉल सिंक्रोनस तरीके से किया जाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\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. |"]]