शेड्यूल किया गया टास्क क्या होता है?
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस सेक्शन में मौजूद दस्तावेज़ में, Google Maps Mobility की शेड्यूल किए गए टास्क की सेवा का इस्तेमाल करके, शेड्यूल किए गए टास्क बनाने और उनका इस्तेमाल करने का तरीका बताया गया है. इसमें यह माना गया है कि आपको इनके बारे में जानकारी है:
Task
रिसॉर्स का इस्तेमाल, gRPC और
REST, दोनों में किया जा सकता है.
शेड्यूल किए गए टास्क के लिए, Fleet Engine में टास्क का मतलब ड्राइवर की उस गतिविधि से है जो आपके उपभोक्ताओं के लिए शेड्यूल की गई शिपमेंट या सेवा को पूरा करती है. आपने वाहन के स्टॉप की उन जगहों पर टास्क असाइन किए हैं जहां उन्हें पूरा करना है और वाहन उन स्टॉप पर जाता है.
टास्क की दो स्थितियां हो सकती हैं, OPEN
या CLOSED
. इन स्थितियों से पता चलता है कि टास्क, सिस्टम में चालू है या नहीं. किसी चालू टास्क के लिए, यात्रा के दौरान होने वाले बदलावों की जानकारी, Fleet Engine को दी जाती है. इसके लिए, टास्क से जुड़े वाहन के स्टॉप की जानकारी को अपडेट किया जाता है. यह जानकारी, 'रास्ते में है' या 'पहुंच गया' में से किसी एक के तौर पर अपडेट की जाती है. जब ड्राइवर टास्क पूरे कर लेता है और बस स्टॉप से निकल जाता है, तो बस स्टॉप को वाहन पर मौजूद स्टॉप की सूची से हटा दें. टास्क और स्टॉप और वाहनों के साथ उनके संबंध के बारे में ज़्यादा जानने के लिए, Fleet Engine की ज़रूरी जानकारी में शेड्यूल किए गए टास्क देखें .
टास्क की लाइफ़
Fleet Engine में हर टास्क को ट्रैक करने के लिए, आपको पहले एक Task
इकाई बनानी होगी. रेफ़रंस के लिए, gRCP या REST देखें.
नीचे दी गई टेबल में, आपके सिस्टम में बनाए गए टास्क के एंड-टू-एंड फ़्लो और Fleet Engine में उसके लाइफ़साइकल के चरणों के बारे में बताया गया है. यह मान लिया जाता है कि आपने Fleet Engine को सेट अप कर लिया है और आपके पास टास्क के लिए एक वाहन है. साथ ही, ड्राइवर ऐप्लिकेशन में जगह की जानकारी के अपडेट चालू हैं. Driver SDK: शेड्यूल किए गए टास्क देखें.
1 |
टास्क बनाएं. |
वर्क साइकल की शुरुआत में, डिस्पैचर या सेवा एडमिन, डिलीवरी टास्क या सेवाओं के लिए सबसे पहले मेनिफ़ेस्ट बनाता है. इसके बाद, आपका सिस्टम ज़रूरी फ़ील्ड के साथ CreateTrip का इस्तेमाल करके, टास्क इकाइयां बनाता है. जैसे, टास्क का टाइप और जगह की जानकारी. यह इस समय अन्य कॉन्फ़िगरेशन भी दे सकता है, जैसे कि टारगेट समय की विंडो, टास्क की प्रोग्रेस शेयर करना, और पसंद के मुताबिक एट्रिब्यूट. शिपमेंट के टास्क बनाना और उससे जुड़ी गाइड देखें. |
2 |
टास्क शेड्यूल करना. |
डिलीवरी के लिए कोई टास्क शेड्यूल करने पर, डिलीवरी वाहन के लिए अपडेट का अनुरोध किया जाता है. इसके बाद, वाहन की इकाई को यात्रा के लिए स्टॉप की सूची के साथ अपडेट किया जाता है. हर स्टॉप पर पूरे किए जाने वाले टास्क की सूची असाइन की जाती है.
डिलीवरी वाहन के टास्क अपडेट करना लेख पढ़ें.
|
3 |
टास्क की प्रोग्रेस अपडेट करें. |
जब किसी डिलीवरी स्टॉप को टास्क असाइन किया जाता है और वह Fleet Engine में चालू हो जाता है, तो आपका सिस्टम, गाड़ी के स्टॉप के करीब पहुंचने, वहां पहुंचने, और स्टॉप पूरा करने के बारे में Fleet Engine को सूचना देता है. इस जानकारी की मदद से, फ़्लीट
इंजन, वाहन के लिए पूरे दिन के साथ-साथ यात्रा के दौरान भी, सबसे अच्छा रास्ता तय कर सकता है और उसकी स्थिति के बारे में अपडेट दे सकता है. देखें कि
वाहन के स्टॉप का स्टेटस अपडेट करें.
|
4 |
यात्रा की जानकारी शेयर करना. |
डिलीवरी वाले दिन, वाहन के नेविगेशन चालू होने के साथ ही, डिलीवरी की जानकारी को दिलचस्पी रखने वाले लोगों के साथ शेयर किया जा सकता है. Fleet Engine, दिलचस्पी रखने वाले हिस्सेदारों के लिए, टास्क की जानकारी और वाहन की जगह की जानकारी, इन तरीकों से उपलब्ध कराता है:
- उपभोक्ताओं के लिए शिपमेंट की जानकारी . इस समाधान की मदद से, उपभोक्ता अपने पैकेज की स्थिति के साथ-साथ, वाहन की जगह की जानकारी देख सकते हैं. हालांकि, इसके लिए ज़रूरी है कि आपने उन्हें यह जानकारी देखने की अनुमति दी हो.
शेड्यूल किए गए टास्क के लिए, उपभोक्ता की जानकारी शेयर करने की सुविधा देखें.
- एडमिन के लिए फ़्लीट की स्थिति की जानकारी. इस समाधान की मदद से, फ़्लीट एडमिन आपके फ़्लीट में डिलीवरी वाहनों और उनके स्टॉप की जगहों को रीयल टाइम में देख सकते हैं.
अगर किसी वाहन का रास्ता पता है, तो मैप व्यू कॉम्पोनेंट उस वाहन को ऐनिमेशन के साथ दिखाता है, क्योंकि वह अपने अनुमानित रास्ते पर आगे बढ़ता है.
JavaScript फ़्लीट ट्रैकिंग लाइब्रेरी देखें.
|
5 |
टास्क को पूरा करें. |
Fleet Engine में शिपमेंट से जुड़े टास्क को इन तरीकों से पूरा किया जा सकता है:
- टास्क बंद करना: शिपमेंट के किसी टास्क को बंद करने का मतलब है कि वह टास्क अब चालू नहीं है.
- टास्क का नतीजा सेट करना: किसी टास्क को बंद करने के बाद, आपको यह बताना होता है कि डिलीवरी हुई है या नहीं. इसके लिए, टास्क को 'पूरा हुआ' या 'पूरा नहीं हुआ' के तौर पर सेट किया जाता है. किसी टास्क को पूरा करने के लिए, यह एक अहम हिस्सा है. इससे, खरीदारों को डिलीवरी का नतीजा दिखाया जा सकता है. साथ ही, यह भी पक्का किया जा सकता है कि Fleet Engine की सेवा के लिए सही बिलिंग की जा रही है.
ध्यान रखें कि डिलीवरी वाहनों की तरह, टास्क इकाइयां भी Fleet Engine में सात दिन तक चालू रहती हैं. भले ही, उनकी स्थिति कुछ भी हो, उन्हें सात दिन बाद हटा दिया जाता है.
टास्क पूरे करें देखें.
|
टास्क के क्रम का फ़्लो
नीचे दिए गए डायग्राम में, टास्क के लाइफ़साइकल का पूरा फ़्लो दिखाया गया है.

आगे क्या करना है
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThis documentation outlines how to create and manage scheduled tasks, representing driver activities, within the Google Maps Mobility scheduled tasks service.\u003c/p\u003e\n"],["\u003cp\u003eTasks, which can be either OPEN or CLOSED, are assigned to vehicle stops, and their progress is updated as the vehicle travels to and completes these stops.\u003c/p\u003e\n"],["\u003cp\u003eThe lifecycle of a task involves creation, scheduling by assigning to a vehicle stop, updating progress, sharing journey details with stakeholders, and finalization by closing and setting the outcome.\u003c/p\u003e\n"],["\u003cp\u003eFleet Engine provides tools for consumers to track shipment status and for administrators to monitor fleet locations and progress in near real-time.\u003c/p\u003e\n"],["\u003cp\u003eTo successfully use this service, prior familiarity with Fleet Engine, vehicle basics for on-demand services, and task basics for scheduled tasks is assumed.\u003c/p\u003e\n"]]],[],null,["# What is a scheduled task?\n\nThe documentation in this section shows how to create and work with scheduled\ntasks using the Google Maps Mobility scheduled tasks service. It assumes\nfamiliarity with the following:\n\n- **Fleet Engine** : You should be familiar with Fleet Engine implementation details, request mechanisms, and security. For that, see [What is the Fleet\n Engine service?](/maps/documentation/mobility/fleet-engine/essentials) and the security topics in [Set up Fleet Engine](/maps/documentation/mobility/fleet-engine/essentials/set-up-fleet).\n- **Vehicles basics** for on-demand services. See [Introduction to vehicles](/maps/documentation/mobility/fleet-engine/essentials/vehicles-intro).\n- **Task basics** for scheduled task services. See [Scheduled tasks](/maps/documentation/mobility/fleet-engine/essentials/tasks-intro)\n\nThe `Task` resource that you'll use is available in both [gRPC](/maps/documentation/mobility/fleet-engine/reference/tasks/rpc/maps.fleetengine.delivery.v1#task) and\n[REST](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/providers.tasks).\n\nIn Fleet Engine for scheduled tasks, a task represents a driver activity that\nfulfills a scheduled shipment or service for your consumers. You assign tasks to\nvehicle stop locations where they are to be completed, and the vehicle travels\nto those stops.\n\nA task has two possible states, `OPEN` or `CLOSED`. These states indicate\nwhether the task is active or not in the system. As the journey evolves for an\nactive task, you report this to Fleet Engine by updating the vehicle stop\nassociated with the task, which is either ENROUTE or ARRIVED. Once the driver\ncompletes tasks and leaves the stop, you remove the stop from the list of stops\non the vehicle. For more about\ntasks and their relationship to stops and vehicles, see\n[Scheduled tasks](/maps/documentation/mobility/fleet-engine/essentials/tasks-intro#basic_task_fields) in **Fleet Engine essentials** .\n\nLife of a task\n--------------\n\nIn order to track each task in Fleet Engine, you must first create a `Task`\nentity. See either [gRCP](/maps/documentation/mobility/fleet-engine/reference/tasks/rpc/maps.fleetengine.delivery.v1#task) or [REST](/maps/documentation/mobility/fleet-engine/reference/tasks/rest/v1/providers.tasks) for reference.\n\nThe following table describes an example end-to-end flow of a task created in\nyour system and its lifecycle stages in Fleet Engine. It assumes you have set up\nFleet Engine and have a vehicle for the task, with location updates\nenabled in the driver app. See [Driver SDK: Scheduled tasks](/maps/documentation/mobility/driver-sdk/scheduled).\n\n|---|-------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Create tasks.** | At the beginning of the work cycle, the dispatcher or service administrator first creates a manifest for delivery tasks or services. From there, your system then creates the task entities using `CreateTrip` with required fields, such as the type of task and the location. It can also supply other configurations at this point, such as target time window, sharing task progress, and custom attributes. See [Create shipment tasks](/maps/documentation/mobility/fleet-engine/journeys/tasks/create-shipment-tasks) and the related guides. |\n| 2 | **Schedule tasks.** | When you schedule a task for delivery, you issue a delivery vehicle update request, which then updates the vehicle entity with a list of stops to travel. You assign each stop a list of tasks to be completed at the stop. See [Update delivery vehicle tasks](/maps/documentation/mobility/fleet-engine/journeys/tasks/update-tasks). |\n| 3 | **Update the task progress.** | Once the task is assigned to a delivery stop and active in Fleet Engine, your system notifies Fleet Engine about the vehicle progress as it approaches, arrives at, and completes the stop. With this information, Fleet Engine can best perform routing and status updates along the journey as well as throughout the day for the vehicle. See [Update vehicle stop status](/maps/documentation/mobility/fleet-engine/journeys/tasks/update-stops). |\n| 4 | **Share journeys.** | At the same time that the vehicle begins active navigation for the delivery day, you can share journey information with interested stakeholders. Fleet Engine makes both task details and vehicle location available to interested stakeholders in the following ways: - **Shipment information for consumers** . With this solution, consumers can see the status of their package along with the vehicle location information you permit them to view. See [Consumer sharing for scheduled tasks](/maps/documentation/mobility/journey-sharing/scheduled). - **Fleet status information for administrators** . With this solution, fleet administrators can visualize the locations of delivery vehicles and their stops in your fleets in near real time. If the route for a vehicle is known, the map view component animates that vehicle as it moves along its predicted path. See the [JavaScript Fleet Tracking library](/maps/documentation/mobility/operations/fleet-tracking). |\n| 5 | **Finalize the task.** | You finalize shipment tasks in Fleet engine in the following ways: - **Close the task**: Closing a shipment task indicates that that task is no longer active. - **Set the task outcome**: Once a task is closed, you indicate either a successful or failed task to indicate if the delivery took place or not. This is an important part of finalizing a task to show the delivery outcome in your consumer experience and to ensure correct billing for the Fleet Engine service. Keep in mind that, like delivery vehicles, task entities remain active within Fleet Engine for 7 days regardless of state, at which point they are removed. See [Finalize tasks](/maps/documentation/mobility/fleet-engine/journeys/tasks/finalize-tasks). |\n\nTask sequence flow\n------------------\n\nThe following diagram shows a detailed flow of a task lifecycle.\n\nWhat's next\n-----------\n\n- [Create shipment tasks](/maps/documentation/mobility/fleet-engine/journeys/tasks/create-shipment-tasks)"]]