CN110333943B - Method and device for updating task state in real time - Google Patents

Method and device for updating task state in real time Download PDF

Info

Publication number
CN110333943B
CN110333943B CN201910615922.6A CN201910615922A CN110333943B CN 110333943 B CN110333943 B CN 110333943B CN 201910615922 A CN201910615922 A CN 201910615922A CN 110333943 B CN110333943 B CN 110333943B
Authority
CN
China
Prior art keywords
time length
task
duration
interval
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910615922.6A
Other languages
Chinese (zh)
Other versions
CN110333943A (en
Inventor
李俊
王凯
袁志伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Moran Cognitive Technology Co Ltd
Original Assignee
Beijing Moran Cognitive Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Moran Cognitive Technology Co Ltd filed Critical Beijing Moran Cognitive Technology Co Ltd
Priority to CN201910615922.6A priority Critical patent/CN110333943B/en
Publication of CN110333943A publication Critical patent/CN110333943A/en
Application granted granted Critical
Publication of CN110333943B publication Critical patent/CN110333943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked

Abstract

The invention discloses a method and a device for updating task state in real time, wherein the method comprises the following steps: step 101, receiving a first task created by a user; 102, judging whether a condition for executing the first task is met, if so, executing 103, otherwise, repeatedly executing the judgment until the condition for executing the first task is met; step 103, executing the first task; 104, judging whether a first event influencing a first task occurs, and if so, suspending execution of the first task; step 105, judging whether the condition for recovering the execution of the first task is met, if so, executing step 106; otherwise, repeatedly executing the judgment until the condition of recovering to execute the first task is met; and 106, resuming the execution of the first task. By the method, the completion time of the first task can meet the requirements of the user, and the user experience is improved.

Description

Method and device for updating task state in real time
Technical Field
The embodiment of the invention relates to the technical field of information processing, in particular to a method and a device for updating task states in real time.
Background
In recent years, intelligent voice interaction technology based on artificial intelligence is rapidly developed, and a typical application of the technology is a voice assistant. The voice assistant may recognize a task created by the user through voice, acquire information related to the task through one or more rounds of dialog with the user, and finally complete the task.
In some application scenarios, a plurality of tasks created by a user may affect each other, and when a first task is affected by a second task, the voice assistant needs to update the first task in real time.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method and a device for updating a task state in real time.
The invention provides a method for updating task state in real time, which comprises the following steps:
step 101, receiving a first task created by a user;
102, judging whether a condition for executing the first task is met, if so, executing 103, otherwise, repeatedly executing the judgment until the condition for executing the first task is met;
step 103, executing the first task;
104, judging whether a first event influencing a first task occurs, and if so, suspending execution of the first task;
step 105, judging whether the condition for recovering the execution of the first task is met, if so, executing step 106; otherwise, repeatedly executing the judgment until the condition of recovering to execute the first task is met;
and 106, resuming the execution of the first task.
Preferably, the first task is a shopping task.
Preferably, in the step 102, the determining whether the condition for executing the first task is satisfied specifically includes:
determining a first time length required by a user to reach a navigation destination from a current position and a second time length or a second time length interval required by a commodity purchased from a merchant to be distributed to the navigation destination, and judging whether the first time length and the second time length or the second time length interval are equivalent; or the like, or, alternatively,
and judging whether the distribution address of the first task is consistent with the navigation destination, if so, further determining a first time length required by the user to reach the navigation destination from the current position and a second time length or a second time length interval required by the purchased commodities to be distributed to the navigation destination from the merchant, and judging whether the first time length is equivalent to the second time length or the second time length interval.
Preferably, the executing the first task specifically includes: determining a first application program or a first interaction engine for executing the first task, and sending the first task to the first application program or the first interaction engine so that the first application program or the first interaction engine generates a first order.
Preferably, in the step 104, the first event is an event that causes the first duration to increase.
Preferably, the first event includes: the user may increase one or more of the via locations, and/or the road conditions may deteriorate.
Preferably, in the step 104, the suspending execution of the first task specifically includes: and sending first information to the first application program or the first interaction engine, wherein the first information is used for indicating the first application program or the first interaction engine to inform the merchant to suspend processing the first order.
Preferably, in step 105, the determining whether the condition for resuming execution of the first task is satisfied specifically includes:
determining the first time length and the second time length or a second time length interval, and judging whether the first time length and the second time length or the second time length interval are equivalent; or the like, or, alternatively,
determining the first time length, the second time length or a second time length interval, a third time length or a third time length interval, wherein the third time length or the third time length interval is the difference of the second time length or the second time length interval minus a fourth time length, the fourth time length is the time length of the first order which is processed when the first event occurs, and judging whether the first time length is equivalent to the third time length or the third time length interval.
Preferably, in step 102 and/or step 105,
the determining the first time period specifically comprises: determining the first duration according to the current position of the user, the navigation destination and the traffic mode of the user; and/or
Determining the second duration or the second duration interval specifically includes: acquiring historical distribution time length or a historical distribution time length interval which is required for distributing any commodity from the merchant to the navigation destination and corresponds to the time period of the current moment, and determining the historical distribution time length or the historical distribution time length interval as a second time length or a second time length interval.
Preferably, whether the first duration and the second duration or the second duration interval are equivalent is determined, specifically, one of the following: judging whether the absolute value of the difference between the first time length and the second time length is smaller than a first preset threshold value or not; whether the first duration is equal to the second duration; whether the first duration is within a second duration interval; and/or the presence of a gas in the gas,
judging whether the first duration is equivalent to the third duration or the third duration interval, specifically one of the following: judging whether the absolute value of the difference between the first time length and the third time length is smaller than a first preset threshold value or not; whether the first duration is equal to the third duration; whether the first duration is within a third duration interval.
Preferably, in the step 106, the resuming the execution of the first task specifically includes: and sending second information to the first application program or the first interaction engine, wherein the second information is used for indicating the first application program or the first interaction engine to inform the merchant of recovering processing of the first order.
The invention provides a device for updating task state in real time, which comprises,
the receiving unit is used for receiving a first task created by a user;
a first judging unit, configured to judge whether a condition for executing the first task is satisfied, if so, notify the executing unit to execute the first task, otherwise, repeatedly execute the judgment until the condition for executing the first task is satisfied;
the execution unit is used for executing the first task when receiving the notification of the first judgment unit, suspending the execution of the first task when receiving the notification of the second judgment unit, and resuming the execution of the first task when receiving the notification of the third judgment unit;
the second judging unit is used for judging whether a first event influencing a first task occurs, and if so, informing the executing unit to suspend executing the first task;
the third judging unit is used for judging whether a condition for recovering the execution of the first task is met, and if so, informing the executing unit of recovering the execution of the first task; otherwise, the judgment is repeatedly executed until the condition for recovering the execution of the first task is met.
Preferably, the first task is a shopping task.
Preferably, the first judging unit judges whether a condition for executing the first task is satisfied, specifically:
determining a first time length required by a user to reach a navigation destination from a current position and a second time length or a second time length interval required by a commodity purchased from a merchant to be distributed to the navigation destination, and judging whether the first time length and the second time length or the second time length interval are equivalent; or the like, or, alternatively,
and judging whether the distribution address of the first task is consistent with the navigation destination, if so, further determining a first time length required by the user to reach the navigation destination from the current position and a second time length or a second time length interval required by the purchased commodities to be distributed to the navigation destination from the merchant, and judging whether the first time length is equivalent to the second time length or the second time length interval.
Preferably, the executing unit executes the first task specifically as follows: determining a first application program or a first interaction engine for executing the first task, and sending the first task to the first application program or the first interaction engine so that the first application program or the first interaction engine generates a first order.
Preferably, the first event is an event that causes the first duration to increase.
Preferably, the first event includes: the user may increase one or more of the via locations, and/or the road conditions may deteriorate.
Preferably, the execution unit suspends the execution of the first task, specifically: and sending first information to the first application program or the first interaction engine, wherein the first information is used for indicating the first application program or the first interaction engine to inform the merchant to suspend processing the first order.
Preferably, the third judging unit judges whether a condition for resuming execution of the first task is satisfied, specifically:
determining the first time length and the second time length or a second time length interval, and judging whether the first time length and the second time length or the second time length interval are equivalent; or the like, or, alternatively,
determining the first time length, the second time length or a second time length interval, a third time length or a third time length interval, wherein the third time length or the third time length interval is the difference of the second time length or the second time length interval minus a fourth time length, the fourth time length is the time length of the first order which is processed when the first event occurs, and judging whether the first time length is equivalent to the third time length or the third time length interval.
Preferably, the determining the first time length by the first determining unit and/or the third determining unit specifically includes: determining the first duration according to the current position of the user, the navigation destination and the traffic mode of the user; and/or
The first judging unit and/or the third judging unit determines that the second duration or the second duration interval is specifically: acquiring historical distribution time length or a historical distribution time length interval which is required for distributing any commodity from the merchant to the navigation destination and corresponds to the time period of the current moment, and determining the historical distribution time length or the historical distribution time length interval as a second time length or a second time length interval.
Preferably, the first determining unit and/or the third determining unit determines whether the first duration is equivalent to the second duration or the second duration interval, specifically one of the following situations: judging whether the absolute value of the difference between the first time length and the second time length is smaller than a first preset threshold value or not; whether the first duration is equal to the second duration; whether the first duration is within a second duration interval; and/or the presence of a gas in the gas,
the third judging unit judges whether the first duration is equivalent to the third duration or the third duration interval, specifically one of the following conditions: judging whether the absolute value of the difference between the first time length and the third time length is smaller than a first preset threshold value or not; whether the first duration is equal to the third duration; whether the first duration is within a third duration interval.
Preferably, the executing unit resumes executing the first task, specifically: and sending second information to the first application program or the first interaction engine, wherein the second information is used for indicating the first application program or the first interaction engine to inform the merchant of recovering processing of the first order.
Preferably, the device is located in a voice assistant.
The invention provides a device for updating task status in real time, which comprises a processor and a memory, wherein a computer program which can run on the processor is stored in the memory, and the computer program realizes the method when being executed by the processor.
The invention provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program is executable on a processor, and when executed implements a method as described above.
By the method, when the first task is already in the execution process, and when the second task created by the user later influences the first task, the state of the first task is updated in real time, for example, the execution of the first task is suspended or resumed, so that the completion time of the first task meets the requirements of the user, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a method for updating task status in real-time in one embodiment of the invention.
FIG. 2 is an apparatus for updating task status in real time in one embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings. The embodiments and specific features of the embodiments of the present invention are detailed descriptions of technical solutions of the embodiments of the present invention, and are not limited to technical solutions of the present invention, and the technical features of the embodiments and the embodiments of the present invention may be combined with each other without conflict.
The method of updating the task status in real time according to the present invention is explained below, with reference to figure 1,
step 101, receiving a first task created by a user;
102, judging whether a condition for executing the first task is met, if so, executing 103, otherwise, repeatedly executing the judgment until the condition for executing the first task is met;
step 103, executing the first task;
104, judging whether a first event influencing a first task occurs, and if so, suspending execution of the first task;
step 105, judging whether the condition for recovering the execution of the first task is met, if so, executing step 106; otherwise, repeatedly executing the judgment until the condition of recovering to execute the first task is met;
and 106, resuming the execution of the first task.
By the method for updating the task state in real time, when the first task is executed and the second task created by the user later influences the first task, the state of the first task is updated in real time, so that the completion time of the first task meets the requirements of the user, and the user experience is improved.
Preferably, the method of the present invention may be performed by a voice assistant. The voice assistant can be located in a car machine, a mobile terminal carried by a user, and the like.
Preferably, in step 101, the user creates a first task through a first voice instruction, the first task is a shopping task, and after receiving the first task created by the user, the voice assistant acquires first task information from the first voice instruction, where the first task information includes merchant information and information of goods purchased. The first task information may further include a delivery address.
Preferably, in the step 102, the determining whether the condition for executing the first task is satisfied specifically includes: determining a first time length required by a user to reach a navigation destination from a current position and a second time length or a second time length interval required by executing the first task, wherein the second time length or the second time length interval is specifically the time length or the time length interval required by delivering purchased commodities to the navigation destination from a merchant, and judging whether the first time length and the second time length or the second time length interval are equivalent.
Preferably, in the step 102, the determining whether the condition for executing the first task is satisfied specifically includes: and judging whether the distribution address of the first task is consistent with the navigation destination, if so, further determining a first time length required for a user to reach the navigation destination from the current position and a second time length or a second time length interval required for executing the first task, wherein the second time length or the second time length interval is specifically the time length or the time length interval required for distributing purchased commodities from a merchant to the navigation destination, and judging whether the first time length is equivalent to the second time length or the second time length interval.
Preferably, in the step 102, the determining whether the condition for executing the first task is satisfied specifically includes: and judging whether the distribution address of the first task is consistent with a navigation destination or a navigation passing place, if so, further determining a first time length required by a user to reach the navigation destination or the navigation passing place from the current position and a second time length or a second time length interval required by executing the first task, wherein the second time length or the second time length interval is specifically the time length or the time length interval required by distributing purchased commodities to the navigation destination or the navigation passing place from a merchant, and judging whether the first time length is equivalent to the second time length or the second time length interval.
Preferably, in the step 103, the executing the first task specifically includes: determining a first application program or a first interaction engine for executing the first task, and sending the first task information to the first application program or the first interaction engine so that the first application program or the first interaction engine generates a first order and a merchant starts to process the first order. The first application program is an application program which is installed on a mobile terminal or a vehicle machine of a user and can execute a shopping task to generate a corresponding order, and the first interaction engine is a function package which is downloaded from a cloud server and loaded in a voice assistant and can execute the shopping task by the user, or a function package which is generated by local training of the user and loaded in the voice assistant and can execute the shopping task by the user.
Preferably, in the step 104, the first event is an event that causes the first duration to increase.
Preferably, in step 104, the first event includes: the user may increase one or more of the via locations, and/or the road conditions may deteriorate. The deterioration of the road condition may be caused by a sudden and serious traffic jam, a traffic accident, traffic control and other factors.
Preferably, when the delivery address of the first task is consistent with a certain navigation via-ground, the first event includes that the user adds one or more via-grounds between the current position and the navigation via-ground, that is, the user adds one or more via-grounds before the same navigation via-ground as the delivery address, and/or the road condition is deteriorated.
Preferably, in step 104, the step of judging whether the first event affecting the first task occurs is specifically: acquiring first time in a preset period, comparing the currently acquired first time with the last acquired first time, and if the currently acquired first time exceeds the last acquired first time and the exceeding part is greater than a preset value, judging that a first event influencing a first task occurs; and/or judging whether an instruction of a user is received or not, wherein the instruction is used for indicating that one or more transit places are added or indicating that one or more transit places are added between the current position and the navigation transit places, and if so, judging that a first event influencing the first task occurs.
Preferably, in the step 104, the suspending execution of the first task specifically includes: and sending first information to the first application program or the first interaction engine, wherein the first information is used for indicating the first application program or the first interaction engine to inform the merchant to suspend processing the first order.
Preferably, in step 104, if the determination result is negative, the operation of determining whether the first event affecting the first task occurs is repeatedly performed until the first event is detected or the merchant finishes processing the first order. The processed first order means that the purchased goods have been delivered to a navigation destination or delivery address.
Preferably, in the step 105, the determining whether the condition for resuming execution of the first task is satisfied is to determine the first duration and the second duration or the second duration interval, and determine whether the first duration and the second duration or the second duration interval are equivalent.
Preferably, in the step 105, the determining whether the condition for resuming execution of the first task is satisfied is specifically to determine the first duration, the second duration or the second duration interval, and a third duration or a third duration interval, where the third duration or the third duration interval is a difference between the second duration or the second duration interval and a fourth duration subtracted from the second duration or the second duration interval, and the fourth duration is a duration in which the first order has been processed when the first event occurs or a duration in which the first task is executed when the first event occurs, and determine whether the first duration is equivalent to the third duration or the third duration interval.
Preferably, in the step 106, the resuming the execution of the first task specifically includes: and sending second information to the first application program or the first interaction engine, wherein the second information is used for indicating the first application program or the first interaction engine to inform the merchant of recovering processing of the first order.
Preferably, in step 102 and step 105, the determining the first duration specifically includes: determining the first duration according to the current position of the user, the navigation destination and the traffic mode of the user.
Preferably, the transportation mode of the user is a transportation mode selected by the user in the second application program or the second interaction engine. The second application or the second interaction engine has a navigation function.
Preferably, in step 102 and step 105, the second application program or the second interaction engine determines the first duration according to the current location of the user, the navigation destination and the transportation mode of the user, and provides the first duration to the voice assistant.
Preferably, in step 102 and step 105, the determining the second duration or the second duration interval specifically includes: acquiring historical distribution time length or a historical distribution time length interval which is required for distributing any commodity from the merchant to the navigation destination and corresponds to the time period of the current moment, and determining the historical distribution time length or the historical distribution time length interval as a second time length or a second time length interval.
Preferably, a first application program or a first interaction engine for executing the first task is determined, the first application program or the first interaction engine determines a second duration or a second duration interval, and the second duration or the second duration interval is provided to the voice assistant.
Preferably, whether the first duration and the second duration or the second duration interval are equivalent is determined, specifically one of the following situations: judging whether the absolute value of the difference between the first time length and the second time length is smaller than a first preset threshold value or not; whether the first duration is equal to the second duration; whether the first duration is within a second duration interval.
Preferably, whether the first duration and the third duration or the third duration interval are equivalent is determined, specifically one of the following situations: judging whether the absolute value of the difference between the first time length and the third time length is smaller than a first preset threshold value or not; whether the first duration is equal to the third duration; whether the first duration is within a third duration interval.
The method for updating the task status in real time according to the present invention is described below with reference to specific embodiments.
The first embodiment is as follows:
when a user is going to go home after work at 6 pm, in step 101, a first task is created by issuing a voice command to the voice assistant: buy a star barker red flag plaza mocha coffee mug. The voice assistant determines first task information, wherein the merchant information is a starbucks red flag square store, and the purchased commodity information is a mocha coffee mug. In addition, in this embodiment, the user does not specify a delivery address in the voice command, and at this time, the voice assistant determines the navigation destination as the delivery address, and in this embodiment, the navigation destination is the home address of the user.
In step 102, the voice assistant determines whether the conditions for executing the first task are met: the voice assistant first determines a first duration and a second duration. In this embodiment, assuming that the duration required by the navigation APP or the navigation interaction engine to drive the vehicle from the current location to the home is 60 minutes, the voice assistant determines that the first application program or the first interaction engine executing the first task is a takeout APP or a takeout interaction engine, and instructs the takeout APP or the takeout interaction engine to determine the second duration, and the historical delivery duration required for delivering any commodity from the merchant to the navigation destination, which corresponds to a time period (e.g. 6 o ' clock to 6 o ' clock and 20 minutes) in which the takeout APP or the takeout interaction engine determines that the current time (e.g. 6 o ' clock and 01 minutes) is 40 minutes. The voice assistant obtains a first time duration of 80 minutes from the navigation APP or navigation interaction engine and a second time duration of 40 minutes from the take-away APP or take-away interaction engine. The voice assistant judges that the first time length is not equal to the second time length, that is, the first time length is not equivalent to the second time length, so that the judgment result at this time is that the condition for executing the first task is not met, the voice assistant caches the first task of purchasing the starbuckmocha coffee mug, and the judgment process in the step 102 is repeatedly executed in a preset period. The period may be, for example, 1 minute. The period can be set individually by the user or by default by the voice assistant.
The voice assistant repeatedly executes the judgment process in step 102, in a certain execution, the navigation APP or the navigation interaction engine determines that the time required for the user to drive the vehicle from the current position to home is 45 minutes, and the takeout APP or the takeout interaction engine determines that the historical delivery time required for delivering any commodity from the merchant to the navigation destination corresponding to the time period of the current time is 45 minutes. The voice assistant obtains the first time length from the navigation APP or the navigation interaction engine to be 45 minutes, obtains the second time length from the takeaway APP or the takeaway interaction engine to be 45 minutes, and at the moment, the voice assistant determines that the first time length is equal to the second time length, namely the first time length and the second time length are equivalent, so that the judgment result at the moment is that the condition for executing the first task is met.
Then in step 103, the voice assistant sends the first task information to the take-away app or take-away interaction engine, so that the take-away app or take-away interaction engine generates a first order by interacting with a corresponding server, and the server notifies the merchant, i.e., starbucks red flag square shop, of the first order. Then, the merchant processes the first order, and the specific processing procedure is the same as the prior art, such as making the purchased goods or picking up goods based on the purchased goods information in the first order. And will not be described in detail herein.
In step 104, the voice assistant determines whether a first event affecting the first task occurs, and in this embodiment, the user subsequently modifies the journey at 6 o 'clock and 25 o' clock, adds a first via-ground in the navigation APP or the navigation interaction engine, that is, the first event affecting the first task occurs, and at this time, the voice assistant sends first information to the take-away APP or the take-away interaction engine, where the first information is used to instruct the take-away APP or the take-away interaction engine to notify the merchant to suspend processing the first order.
Thereafter, in step 105, the voice assistant determines whether the conditions for resuming execution of the first task are satisfied: determining the first time length and the second time length, and judging whether the first time length is equivalent to the second time length, wherein in the embodiment, the navigation APP or the navigation interaction engine determines that the time length required by a user to drive the vehicle from the current position to home via the first via place is 70 minutes, and the takeout APP or the takeout interaction engine determines that the historical delivery time length required by any commodity to be delivered to the navigation destination from the merchant corresponding to the time period at the current time is 45 minutes. The voice assistant obtains a first time length from the navigation APP or the navigation interaction engine to be 70 minutes, obtains a second time length from the take-out APP or the take-out interaction engine to be 45 minutes, and determines that the first time length is not equal to the second time length at the moment, namely the first time length and the second time length are not equivalent, so that the voice assistant repeatedly executes the judgment process in the step 105 in a preset period if the judgment result at the moment does not meet the condition of resuming execution of the first task. The period may be, for example, 1 minute. The period can be set individually by the user or by default by the voice assistant.
The voice assistant repeatedly executes the judgment process in step 105, in a certain execution, the navigation APP or the navigation interaction engine determines that the time length required by the user from the current position to home is 50 minutes, and the takeout APP or the takeout interaction engine determines that the historical delivery time length required by delivering any commodity from the merchant to the navigation destination corresponding to the time period of the current time is 50 minutes. The voice assistant obtains the first time length from the navigation APP or the navigation interaction engine to be 50 minutes, obtains the second time length from the takeaway APP or the takeaway interaction engine to be 50 minutes, and at this time, the voice assistant determines that the first time length is equal to the second time length, namely, the first time length and the second time length are equivalent to each other, so that the judgment result at this time meets the condition of resuming execution of the first task, and step 106 is executed.
In step 106, the voice assistant sends second information to the take-away app or take-away interaction engine, where the second information is used to instruct the take-away app or take-away interaction engine to notify the merchant to resume processing the first order.
In this embodiment, the voice assistant determines the second time duration through the takeaway app or the takeaway interaction engine each time, and the voice assistant may also obtain and store the historical delivery time duration, corresponding to each time period, required for delivering any commodity from the merchant to the navigation destination from the takeaway app or the takeaway interaction engine in advance, so that the second time duration can be determined by querying local storage.
In this embodiment, the second duration of each determination by the voice assistant is different, which takes into account the effect of the next single peak period on the delivery duration. Those skilled in the art will appreciate that the second duration may be determined for the application or interaction engine that provides the delivery duration guarantee, and thus the voice assistant may assign a fixed duration value to the second duration.
In this embodiment, the example that the user drives from the current location to the navigation destination is taken as an example for explanation, the user may also take a vehicle or walk from the current location to the navigation destination, at this time, the navigation APP or the navigation interaction engine determines that the time length required for the user to take the vehicle or walk from the current location to home via the first via the ground is the first time length, and the execution processes of other steps are similar to those of the embodiment and are not described herein again.
Example two:
the present embodiment is different from the first embodiment only in that: the method for determining whether the first duration is equal to the second duration is different, and in the first embodiment, according to whether the first duration is equal to the second duration, according to whether an absolute value of a difference between the first duration and the second duration is smaller than a first preset threshold. In this embodiment, only the steps 102 and 105 related to the above difference are described, and other steps are the same as those in the first embodiment, and are not described again here.
In this embodiment, it is assumed that the first preset threshold is 5 minutes, and the first preset threshold may be other time durations, which may be set individually by the user or may be set by default by the voice assistant.
In step 102, the voice assistant determines whether the conditions for executing the first task are met: the voice assistant first determines a first duration and a second duration. In this embodiment, it is assumed that the navigation APP or the navigation interaction engine determines that the time period required for the user to drive from the current location to home is 60 minutes, and the takeaway APP or the takeaway interaction engine determines that the historical delivery time period required for delivering any commodity from the merchant to the navigation destination corresponding to the time period (e.g., 6 o ' clock-6 o ' clock 20 minutes) of the current time (e.g., 6 o ' clock 01 minutes) is 40 minutes. The voice assistant obtains a first time duration of 80 minutes from the navigation APP or navigation interaction engine and a second time duration of 40 minutes from the take-away APP or take-away interaction engine. The voice assistant calculates the absolute value of the difference between the first time length and the second time length to be 40 minutes, which is greater than 5 minutes, so that the voice assistant determines that the first time length is not equivalent to the second time length, and the judgment result at this time is that the condition for executing the first task is not satisfied. The voice assistant repeatedly executes the judgment process in step 102, and in a certain execution, the voice assistant obtains a first time length from the navigation APP or the navigation interaction engine of 49 minutes, obtains a second time length from the takeaway APP or the takeaway interaction engine of 45 minutes, and at this time, the voice assistant calculates that the absolute value of the difference between the first time length and the second time length is 4 minutes, which is less than 5 minutes, so that the voice assistant determines that the first time length is equivalent to the second time length, and the judgment result at this time is that the condition for executing the first task is satisfied.
Similarly, in step 105, the voice assistant obtains the first duration from the navigation APP or the navigation interaction engine as 70 minutes, and obtains the second duration from the takeaway APP or the takeaway interaction engine as 45 minutes, at this time, the voice assistant determines that the absolute value of the difference obtained by subtracting the second duration from the first duration is greater than a first preset threshold, that is, the two are not equivalent, so that the determination result at this time is that the condition for resuming execution of the first task is not satisfied. The voice assistant repeatedly executes the determination process in step 105, and in a certain execution, the voice assistant obtains the first time length from the navigation APP or the navigation interaction engine as 54 minutes, obtains the second time length from the takeaway APP or the takeaway interaction engine as 50 minutes, and at this time, the voice assistant determines that the absolute value of the difference between the first time length and the second time length is 4 minutes, which is smaller than a first preset threshold value, and the two are equivalent, so that the determination result at this time is that the condition for resuming execution of the first task is satisfied, and step 106 is executed.
Example three:
the present embodiment is different from the first embodiment only in that: the method for determining whether the first duration is equal to the second duration is different, and in the first embodiment, according to whether the first duration is equal to the second duration, in this embodiment, according to whether the first duration is within a second duration interval. In this embodiment, only the steps 102 and 105 related to the above difference are described, and other steps are the same as those in the first embodiment, and are not described again here.
In step 102, assuming that the navigation APP or the navigation interaction engine determines that the time period required by the user to drive the vehicle from the current position to home is 60 minutes, the takeaway APP or the takeaway interaction engine determines that the historical delivery time period required for delivering any commodity from the merchant to the navigation destination corresponding to the time period (for example, 6 o ' clock to 6 o ' clock and 20 o ' clock) of the current time (for example, 6 o ' clock to 01 o ' clock) is 40-45 minutes. The voice assistant obtains the first time length from the navigation APP or the navigation interaction engine for 80 minutes, and obtains the second time length from the take-out APP or the take-out interaction engine for 40-45 minutes. The voice assistant determines that the first time length is not within the second time length interval, so that the first time length is not equivalent to the second time length interval, and the judgment result at this time is that the condition for executing the first task is not met. The voice assistant repeatedly executes the judgment process in step 102, and in a certain execution, the voice assistant obtains the first time length from the navigation APP or the navigation interaction engine as 44 minutes, and obtains the second time length from the takeaway APP or the takeaway interaction engine as 40-45 minutes, at this time, the voice assistant determines that the first time length is within the second time length interval, that is, the first time length is equivalent to the second time length interval, and the judgment result at this time is that the condition for executing the first task is satisfied.
Similarly, in step 105, the voice assistant obtains the first duration from the navigation APP or the navigation interaction engine as 70 minutes, and obtains the second duration from the takeaway APP or the takeaway interaction engine as 45-50 minutes, at this time, the voice assistant determines that the first duration is not within the second duration, that is, the first duration and the second duration are not equivalent, so that the determination result at this time is that the condition for resuming execution of the first task is not satisfied, and the voice assistant repeatedly executes the determination process in step 105 at a preset cycle. In a certain execution, the voice assistant obtains the first time duration from the navigation APP or the navigation interaction engine as 54 minutes, and obtains the second time duration from the takeaway APP or the takeaway interaction engine as 50-55 minutes, at this time, the voice assistant determines that the first time duration is not within the second time duration, that is, the first time duration and the second time duration are equivalent, so that the judgment result at this time is that the condition for resuming execution of the first task is satisfied, and step 106 is executed.
In this embodiment, the voice assistant determines the second duration interval through the takeaway app or the takeaway interaction engine each time, and the voice assistant may also obtain and store the historical delivery duration corresponding to each duration from the takeaway app or the takeaway interaction engine in advance, so as to query the local storage, and thus determine the second duration interval.
In this embodiment, the second duration interval determined by the voice assistant each time is different, which takes into account the effect of the next single peak period on the delivery duration. Those skilled in the art will appreciate that for applications or interaction engines that provide delivery duration guarantees, the second duration interval may be deterministic, and thus, the voice assistant may assign a fixed duration interval to the second duration interval.
Example four:
the present embodiment is different from the first embodiment only in that: in the step 105, it is determined whether a condition for resuming execution of the first task is satisfied, in a first embodiment, whether the first duration is equivalent to the second duration or the second duration interval is determined, and in this embodiment, whether the first duration is equivalent to the third duration or the third duration interval is determined.
Step 101 and step 102 are the same as in the first embodiment, and are not described again here.
In step 103, the voice assistant sends the first task information to the take-away app or take-away interaction engine, so that the take-away app or take-away interaction engine generates a first order by interacting with a corresponding server. Assume that the time is 6 o' clock and 20 minutes.
In step 104, the voice assistant determines whether a first event affecting the first task occurs, and in this embodiment, the user subsequently modifies the journey at 6 o 'clock and 25 o' clock, adds a first via-ground in the navigation APP or the navigation interaction engine, that is, the first event affecting the first task occurs, and at this time, the voice assistant sends first information to the take-away APP or the take-away interaction engine, where the first information is used to instruct the take-away APP or the take-away interaction engine to notify the merchant to suspend processing the first order.
Thereafter, in step 105, the voice assistant determines whether the conditions for resuming execution of the first task are satisfied: determining the first duration, the second duration, and a third duration, where the third duration is a difference between the second duration and a fourth duration, and the fourth duration is a duration in which the first task has been executed when the first event occurs. In this embodiment, the navigation APP or the navigation interaction engine determines that the time required for the user to drive the vehicle from the current position to home via the first via-ground is 70 minutes, and the takeaway APP or the takeaway interaction engine determines that the historical delivery time required for delivering any commodity from the merchant to the navigation destination corresponding to the time period of the current time is 45 minutes. The voice assistant obtains a first time length from the navigation APP or the navigation interaction engine as 70 minutes, obtains a second time length from the takeaway APP or the takeaway interaction engine as 45 minutes, and since the first task is executed after 6 points 20, and the user modifies the journey at 6 points 25, it can be known that the fourth time length is 5 minutes, the voice assistant calculates to obtain a third time length of 45 minutes to 5 minutes of 40 minutes, the first time length is not equal to the third time length, that is, the first time length and the third time length are not equivalent, and the judgment result at this time is that the condition for resuming execution of the first task is not satisfied, and then the voice assistant repeatedly executes the judgment process in step 105 at a preset cycle. The period may be, for example, 1 minute. The period can be set individually by the user or by default by the voice assistant. In a certain execution, the voice assistant obtains a first time duration of 45 minutes from the navigation APP or the navigation interaction engine, obtains a second time duration of 50 minutes from the takeaway APP or the takeaway interaction engine, calculates a third time duration of 50-5-45 minutes, and the first time duration is equal to the third time duration, that is, the first time duration and the third time duration are equivalent, and the judgment result at this time is that the condition for resuming execution of the first task is satisfied, and executes step 106.
In this embodiment, it is only described that whether the first duration is equal to the third duration is determined to be equivalent to the third duration, and other conditions for determining whether the first duration is equivalent to the third duration are similar to the execution process, and details are not described here.
Example five:
the fifth embodiment is different from the first embodiment in that the first event affecting the first task is different, in the first embodiment, the first event is that the user increases the passing ground, and in the fifth embodiment, the first event is that the road condition deteriorates.
Steps 101 to 103 are the same as the first embodiment, and are not described herein again.
In step 104, the voice assistant determines whether a first event affecting the first task has occurred, and in this embodiment, the voice assistant acquires a first time with a preset period (e.g., 1 minute), for example, the navigation APP or the navigation interaction engine determines a first time and sends it to the voice assistant, which compares the currently acquired first time with the last acquired first time, when the first time (e.g. 60 minutes) currently acquired exceeds the first time (e.g. 40 minutes) last acquired and the exceeding portion (60 minutes-40 minutes-20 minutes) is greater than the second preset threshold (e.g. 10 minutes), considering that the road condition deterioration occurs, at this time, the voice assistant sends first information to the takeout app or the takeout interaction engine, the first information is used to instruct the take-away app or take-away interaction engine to notify the merchant to suspend processing of the first order.
Thereafter, in step 105, the voice assistant determines whether the conditions for resuming execution of the first task are satisfied: determining the first duration and the second duration, and determining whether the first duration and the second duration are equivalent, in this embodiment, the voice assistant obtains the first duration from the navigation APP or the navigation interaction engine for 65 minutes, and obtains the second duration from the takeaway APP or the takeaway interaction engine for 45 minutes, at this time, the voice assistant determines that the first duration is not equal to the second duration, that is, the first duration and the second duration are not equivalent, so that the determination result at this time is that the condition for resuming execution of the first task is not satisfied, and the voice assistant repeatedly executes the determination process in step 105 in a preset period. The period may be, for example, 1 minute. The period can be set individually by the user or by default by the voice assistant.
The voice assistant repeatedly executes the judgment process in step 105, in a certain execution, the navigation APP or the navigation interaction engine determines that the time length required by the user from the current position to home is 50 minutes, and the takeout APP or the takeout interaction engine determines that the historical delivery time length required by delivering any commodity from the merchant to the navigation destination corresponding to the time period of the current time is 50 minutes. The voice assistant obtains the first time length from the navigation APP or the navigation interaction engine to be 50 minutes, obtains the second time length from the takeaway APP or the takeaway interaction engine to be 50 minutes, and at this time, the voice assistant determines that the first time length is equal to the second time length, namely, the first time length and the second time length are equivalent to each other, so that the judgment result at this time meets the condition of resuming execution of the first task, and step 106 is executed.
In step 106, the voice assistant sends second information to the take-away app or take-away interaction engine, where the second information is used to instruct the take-away app or take-away interaction engine to notify the merchant to resume processing the first order.
In this embodiment, the voice assistant determines the second time duration through the takeaway app or the takeaway interaction engine each time, and the voice assistant may also obtain and store the historical delivery time duration, corresponding to each time period, required for delivering any commodity from the merchant to the navigation destination from the takeaway app or the takeaway interaction engine in advance, so that the second time duration can be determined by querying local storage.
In this embodiment, the second duration of each determination by the voice assistant is different, which takes into account the effect of the next single peak period on the delivery duration. Those skilled in the art will appreciate that the second duration may be determined for the application or interaction engine that provides the delivery duration guarantee, and thus the voice assistant may assign a fixed duration value to the second duration.
In this embodiment, the example that the user drives from the current location to the navigation destination is taken as an example for explanation, the user may also take a vehicle or walk from the current location to the navigation destination, at this time, the navigation APP or the navigation interaction engine determines that the time length required for the user to take the vehicle or walk from the current location to home via the first via the ground is the first time length, and the execution processes of other steps are similar to those of the embodiment and are not described herein again.
In this embodiment, it is only described that whether the first duration is equal to the second duration is determined by determining whether the first duration is equal to the second duration, and for the case that whether the first duration is equal to the second duration is determined according to whether an absolute value of a difference obtained by subtracting the second duration from the first duration is smaller than a first preset threshold or according to whether the first duration is within a second duration interval, the execution process is similar, and details are not repeated here.
In this embodiment, it is only described that whether to resume executing the first task is determined by whether the first duration is equivalent to the second duration or the second duration interval, and for the case that whether to resume executing the first task is determined by whether the first duration is equivalent to the third duration or the third duration interval, the execution processes are similar, and details are not repeated here.
In the first to fifth embodiments, only the user does not specify the delivery address when creating the first task, that is, the navigation destination is taken as the delivery address by default, for the case that the delivery address is explicitly indicated in the voice instruction issued when creating the first task, it is only necessary to first determine whether the delivery address is the same as the navigation destination or the navigation destination before determining whether the first duration is equivalent to the second duration or the second duration interval, and if so, then determine whether the first duration is equivalent to the second duration or the second duration interval, and the remaining execution processes are similar to those in the first to fifth embodiments, and are not described herein again.
By the method, after the voice assistant places an order through other application programs or an interaction engine, when at least one of the situation of the user and road condition deterioration suddenly increases, the voice assistant can notify the merchant in real time to suspend the order processing, continuously monitor the home arrival time and the order dispatching time of the user, and send a second message for recovering the takeout order to the merchant when the two are equivalent, so that the state of the first task can be updated in real time, the commodity purchased by the user can arrive at the home at the same time as the user, inconvenience brought to the user due to the fact that the user arrives and purchases the commodity or the purchased commodity is delivered and the user does not arrive at the home and cannot receive the commodity is avoided, and user experience is improved.
The present invention provides a device for updating task status in real time, referring to fig. 2, the device includes:
the receiving unit is used for receiving a first task created by a user;
a first judging unit, configured to judge whether a condition for executing the first task is satisfied, if so, notify the executing unit to execute the first task, otherwise, repeatedly execute the judgment until the condition for executing the first task is satisfied;
the execution unit is used for executing the first task when receiving the notification of the first judgment unit, suspending the execution of the first task when receiving the notification of the second judgment unit, and resuming the execution of the first task when receiving the notification of the third judgment unit;
the second judging unit is used for judging whether a first event influencing a first task occurs, and if so, informing the executing unit to suspend executing the first task;
the third judging unit is used for judging whether a condition for recovering the execution of the first task is met, and if so, informing the executing unit of recovering the execution of the first task; otherwise, the judgment is repeatedly executed until the condition for recovering the execution of the first task is met.
Preferably, the first task is a shopping task.
Preferably, the first judging unit judges whether a condition for executing the first task is satisfied, specifically:
determining a first time length required by a user to reach a navigation destination from a current position and a second time length or a second time length interval required by a commodity purchased from a merchant to be distributed to the navigation destination, and judging whether the first time length and the second time length or the second time length interval are equivalent; or the like, or, alternatively,
and judging whether the distribution address of the first task is consistent with the navigation destination, if so, further determining a first time length required by the user to reach the navigation destination from the current position and a second time length or a second time length interval required by the purchased commodities to be distributed to the navigation destination from the merchant, and judging whether the first time length is equivalent to the second time length or the second time length interval.
Preferably, the executing unit executes the first task specifically as follows: determining a first application program or a first interaction engine for executing the first task, and sending the first task to the first application program or the first interaction engine so that the first application program or the first interaction engine generates a first order.
Preferably, the first event is an event that causes the first duration to increase.
Preferably, the first event includes: the user may increase one or more of the via locations, and/or the road conditions may deteriorate.
Preferably, the second determining unit is specifically configured to: the specific steps of judging whether the first event affecting the first task occurs are as follows: acquiring first time in a preset period, comparing the currently acquired first time with the last acquired first time, and if the currently acquired first time exceeds the last acquired first time and the exceeding part is greater than a second preset threshold, judging that a first event influencing a first task occurs; and/or judging whether an instruction of a user is received or not, wherein the instruction is used for indicating that one or more transit places are added or indicating that one or more transit places are added between the current position and the navigation transit places, and if so, judging that a first event influencing the first task occurs.
Preferably, the execution unit suspends the execution of the first task, specifically: and sending first information to the first application program or the first interaction engine, wherein the first information is used for indicating the first application program or the first interaction engine to inform the merchant to suspend processing the first order.
Preferably, the third judging unit judges whether a condition for resuming execution of the first task is satisfied, specifically:
determining the first time length and the second time length or a second time length interval, and judging whether the first time length and the second time length or the second time length interval are equivalent; or the like, or, alternatively,
determining the first time length, the second time length or a second time length interval, a third time length or a third time length interval, wherein the third time length or the third time length interval is the difference of the second time length or the second time length interval minus a fourth time length, the fourth time length is the time length of the first order which is processed when the first event occurs, and judging whether the first time length is equivalent to the third time length or the third time length interval.
Preferably, the determining the first time length by the first determining unit and/or the third determining unit specifically includes: determining the first duration according to the current position of the user, the navigation destination and the traffic mode of the user; and/or
The first judging unit and/or the third judging unit determines that the second duration or the second duration interval is specifically: acquiring historical distribution time length or a historical distribution time length interval which is required for distributing any commodity from the merchant to the navigation destination and corresponds to the time period of the current moment, and determining the historical distribution time length or the historical distribution time length interval as a second time length or a second time length interval.
Preferably, the first determining unit and/or the third determining unit determines whether the first duration is equivalent to the second duration or the second duration interval, specifically one of the following situations: judging whether the absolute value of the difference between the first time length and the second time length is smaller than a first preset threshold value or not; whether the first duration is equal to the second duration; whether the first duration is within a second duration interval; and/or the presence of a gas in the gas,
the third judging unit judges whether the first duration is equivalent to the third duration or the third duration interval, specifically one of the following conditions: judging whether the absolute value of the difference between the first time length and the third time length is smaller than a first preset threshold value or not; whether the first duration is equal to the third duration; whether the first duration is within a third duration interval.
Preferably, the executing unit resumes executing the first task, specifically: and sending second information to the first application program or the first interaction engine, wherein the second information is used for indicating the first application program or the first interaction engine to inform the merchant of recovering processing of the first order.
Preferably, the device is located in a voice assistant.
The invention provides a device for updating task status in real time, which comprises a processor and a memory, wherein a computer program which can run on the processor is stored in the memory, and the computer program realizes the method when being executed by the processor.
The invention provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program is executable on a processor, and when executed implements a method as described above.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. The computer-readable storage medium may include: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), a flash memory, an erasable programmable read-only memory (EPROM), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, or a combination thereof.
The above description is only an example for the convenience of understanding the present invention, and is not intended to limit the scope of the present invention. In the specific implementation, a person skilled in the art may change, add, or reduce the components of the apparatus according to the actual situation, and may change, add, reduce, or change the order of the steps of the method according to the actual situation without affecting the functions implemented by the method.
While embodiments of the invention have been shown and described, it will be understood by those skilled in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents, and all changes that come within the meaning and range of equivalency of the claims are to be embraced within their scope.

Claims (18)

1. A method for updating task state in real time by voice assistant on user's car machine or mobile terminal is characterized in that,
step 101, receiving a first task created by a user; the first task is a shopping task;
102, judging whether a first time length required for executing a second task and a second time length or a second time length interval required for executing the first task are equivalent, if so, executing a step 103, otherwise, repeatedly executing the judgment until a condition for executing the first task is met; the second task is a navigation address which is consistent with the distribution address of the first task and is reached by the user from the current position; the second time length or the second time length interval is the time length or the time length interval required for distributing the purchased commodities to the navigation address from the merchant;
step 103, executing the first task;
step 104, judging whether a first event which causes the increase of the first time length required for executing the second task occurs, and if so, suspending the execution of the first task;
step 105, judging whether the condition for resuming the execution of the first task is met or not based on the first time length and the second time length or the second time length interval, and if so, executing step 106; otherwise, repeatedly executing the judgment until the condition of recovering to execute the first task is met; the determining whether the condition for resuming execution of the first task is satisfied based on the first duration and the second duration or the second duration interval specifically includes: determining the first time length and the second time length or a second time length interval, and judging whether the first time length and the second time length or the second time length interval are equivalent; or, determining the first time length, the second time length or a second time length interval, a third time length or a third time length interval, wherein the third time length or the third time length interval is a difference obtained by subtracting a fourth time length from the second time length or the second time length interval, the fourth time length is a time length in which the first task is executed when the first event occurs, and judging whether the first time length is equivalent to the third time length or the third time length interval;
and 106, resuming the execution of the first task.
2. The method of claim 1, wherein the executing the first task is specifically: and determining a first application program or a first interaction engine for executing the first task, and sending the first task to the first application program or the first interaction engine so as to inform a merchant of processing the first task.
3. The method of claim 1, wherein the navigation address consistent with the delivery address of the first task is a navigation destination or a navigation via ground.
4. The method of claim 1, wherein the first event comprises: the user adds one or more ground-based and/or road condition deteriorations between the current location and the navigation address that coincides with the delivery address of the first task.
5. The method according to claim 2, wherein in step 104, the suspending of the execution of the first task is specifically: sending first information to the first application program or the first interaction engine, wherein the first information is used for instructing the first application program or the first interaction engine to inform a merchant to suspend processing the first task.
6. The method according to claim 1, wherein in step 102 and/or step 105, the determining the first time period is specifically: determining the first time length according to the current position of the user, a navigation address consistent with the delivery address of the first task and the transportation mode of the user; and/or, in the step 102 and/or the step 105, the determining the second duration or the second duration interval specifically includes: and determining the historical distribution time length or the historical distribution time length interval as a second time length or a second time length interval, wherein the historical distribution time length or the historical distribution time length interval is required for distributing any commodity from a merchant to the distribution address and corresponds to the time period of the current moment.
7. The method according to claim 1, wherein determining whether the first duration is equivalent to the second duration or the second duration interval is one of: judging whether the absolute value of the difference between the first time length and the second time length is smaller than a first preset threshold value or not; whether the first duration is equal to the second duration; whether the first duration is within a second duration interval; and/or the presence of a gas in the gas,
judging whether the first duration is equivalent to the third duration or the third duration interval, specifically one of the following: judging whether the absolute value of the difference between the first time length and the third time length is smaller than a first preset threshold value or not; whether the first duration is equal to the third duration; whether the first duration is within a third duration interval.
8. The method according to claim 5, wherein in step 106, the resuming execution of the first task is specifically: and sending second information to the first application program or the first interaction engine, wherein the second information is used for instructing the first application program or the first interaction engine to inform a merchant of recovering processing of the first task.
9. A device for updating task status in real time, the device is located on a car machine or a voice assistant of a mobile terminal of a user,
the receiving unit is used for receiving a first task created by a user; the first task is a shopping task;
the first judging unit is used for judging whether a first time length required for executing a second task and a second time length or a second time length interval required for executing the first task are equivalent or not, if so, the executing unit is informed to execute the first task, otherwise, the judgment is repeatedly executed until the condition for executing the first task is met; the second task is a navigation address which is consistent with the distribution address of the first task and is reached by the user from the current position; the second time length or the second time length interval is the time length or the time length interval required for distributing the purchased commodities to the navigation address from the merchant;
the execution unit is used for executing the first task when receiving the notification of the first judgment unit, suspending the execution of the first task when receiving the notification of the second judgment unit, and resuming the execution of the first task when receiving the notification of the third judgment unit;
the second judging unit is used for judging whether a first event which causes the increase of the first time length required for executing the second task occurs or not, and if so, informing the executing unit to suspend executing the first task;
the third judging unit is used for judging whether a condition for recovering the execution of the first task is met, and if so, informing the executing unit of recovering the execution of the first task; otherwise, repeatedly executing the judgment until the condition of recovering to execute the first task is met;
specifically, the third determining unit determines whether the condition for resuming execution of the first task is satisfied based on the first duration and the second duration or the second duration interval, specifically: determining the first time length and the second time length or a second time length interval, and judging whether the first time length and the second time length or the second time length interval are equivalent; or determining the first time length, the second time length or a second time length interval, a third time length or a third time length interval, wherein the third time length or the third time length interval is a difference obtained by subtracting a fourth time length from the second time length or the second time length interval, the fourth time length is a time length in which a first order corresponding to the first task is processed when the first event occurs, and judging whether the first time length is equivalent to the third time length or the third time length interval.
10. The apparatus of claim 9, wherein the execution unit to perform the first task is specifically to: and determining a first application program or a first interaction engine for executing the first task, and sending the first task to the first application program or the first interaction engine so as to inform a merchant of processing the first task.
11. The apparatus of claim 9, wherein the navigation address consistent with the delivery address of the first task is a navigation destination or a navigation via ground.
12. The apparatus of claim 9, wherein the first event comprises: the user adds one or more ground-based and/or road condition deteriorations between the current location and the navigation address that coincides with the delivery address of the first task.
13. The apparatus according to claim 10, wherein the execution unit suspends execution of the first task, specifically: and sending first information to the first application program or the first interaction engine, wherein the first information is used for indicating the first application program or the first interaction engine to inform a merchant to suspend processing the first order.
14. The apparatus according to claim 9, wherein the first determining unit and/or the third determining unit determines the first duration specifically as: determining the first time length according to the current position of the user, a navigation address consistent with the delivery address of the first task and the transportation mode of the user; and/or the presence of a gas in the gas,
the first judging unit and/or the third judging unit determines that the second duration or the second duration interval is specifically: acquiring historical distribution time length or a historical distribution time length interval which is required for distributing any commodity from a merchant to a distribution address and corresponds to a time period of the current time, and determining the historical distribution time length or the historical distribution time length interval as a second time length or a second time length interval.
15. The apparatus according to claim 9, wherein the first determining unit and/or the third determining unit determines whether the first duration is equivalent to the second duration or the second duration interval, specifically one of the following cases: judging whether the absolute value of the difference between the first time length and the second time length is smaller than a first preset threshold value or not; whether the first duration is equal to the second duration; whether the first duration is within a second duration interval; and/or the presence of a gas in the gas,
the third judging unit judges whether the first duration is equivalent to the third duration or the third duration interval, specifically one of the following conditions: judging whether the absolute value of the difference between the first time length and the third time length is smaller than a first preset threshold value or not; whether the first duration is equal to the third duration; whether the first duration is within a third duration interval.
16. The apparatus according to claim 13, wherein the execution unit resumes executing the first task, specifically: and sending second information to the first application program or the first interaction engine, wherein the second information is used for indicating the first application program or the first interaction engine to inform the merchant of recovering processing of the first order.
17. An apparatus for updating a task state in real time, the apparatus comprising a processor and a memory, the memory having stored therein a computer program operable on the processor, the computer program, when executed by the processor, implementing the method according to any one of claims 1-8.
18. A computer-readable storage medium, in which a computer program operable on a processor is stored, which computer program, when executed, implements the method of any one of claims 1-8.
CN201910615922.6A 2019-07-09 2019-07-09 Method and device for updating task state in real time Active CN110333943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910615922.6A CN110333943B (en) 2019-07-09 2019-07-09 Method and device for updating task state in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910615922.6A CN110333943B (en) 2019-07-09 2019-07-09 Method and device for updating task state in real time

Publications (2)

Publication Number Publication Date
CN110333943A CN110333943A (en) 2019-10-15
CN110333943B true CN110333943B (en) 2021-08-20

Family

ID=68144767

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910615922.6A Active CN110333943B (en) 2019-07-09 2019-07-09 Method and device for updating task state in real time

Country Status (1)

Country Link
CN (1) CN110333943B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053028A (en) * 2020-07-24 2020-12-08 长沙市到家悠享家政服务有限公司 Order allocation method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107527184A (en) * 2017-10-12 2017-12-29 北京小度信息科技有限公司 Order processing method, apparatus, equipment and computer-readable recording medium
US9886656B2 (en) * 2015-09-22 2018-02-06 International Business Machines Corporation Managing privacy of information during shipments
CN108460554A (en) * 2018-02-06 2018-08-28 北京小度信息科技有限公司 Task allocator, device, electronic equipment and computer readable storage medium
CN108898349A (en) * 2018-07-09 2018-11-27 东莞市粤钢不锈钢制品有限公司 A kind of mobile allocator and system
CN109034691A (en) * 2018-07-05 2018-12-18 北京智行者科技有限公司 Logistics distribution method for inquiring status and system
CN109034951A (en) * 2018-06-29 2018-12-18 爱驰汽车有限公司 Method, system, equipment and the storage medium of take-away are subscribed on the run
KR20190040846A (en) * 2017-10-11 2019-04-19 (주)플리즈 Method of motorcycle delivery agency

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9886656B2 (en) * 2015-09-22 2018-02-06 International Business Machines Corporation Managing privacy of information during shipments
KR20190040846A (en) * 2017-10-11 2019-04-19 (주)플리즈 Method of motorcycle delivery agency
CN107527184A (en) * 2017-10-12 2017-12-29 北京小度信息科技有限公司 Order processing method, apparatus, equipment and computer-readable recording medium
CN108460554A (en) * 2018-02-06 2018-08-28 北京小度信息科技有限公司 Task allocator, device, electronic equipment and computer readable storage medium
CN109034951A (en) * 2018-06-29 2018-12-18 爱驰汽车有限公司 Method, system, equipment and the storage medium of take-away are subscribed on the run
CN109034691A (en) * 2018-07-05 2018-12-18 北京智行者科技有限公司 Logistics distribution method for inquiring status and system
CN108898349A (en) * 2018-07-09 2018-11-27 东莞市粤钢不锈钢制品有限公司 A kind of mobile allocator and system

Also Published As

Publication number Publication date
CN110333943A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CA2363556C (en) Base station system and method for monitoring travel of mobile vehicles and communicating notification messages
CN110189073B (en) Route planning method, device, equipment and computer readable storage medium
CN110910019B (en) Data processing method and device, electronic equipment and computer readable storage medium
US11055654B2 (en) Packet delivery management
AU2018333084B2 (en) Lost device detection using geospatial location data
CN107845253B (en) Reservation order early warning method and server
CN110333943B (en) Method and device for updating task state in real time
CN110414895A (en) Vehicle dispatch system and method
CN113627792B (en) Unmanned vehicle scheduling management method, device, equipment, storage medium and program
JPWO2015182200A1 (en) Information processing apparatus, information presentation method, and program
CN107146448A (en) A kind of vehicle location information modification method and system
CN113788009A (en) Method and device for indicating parking mode and electronic equipment
RU2710297C2 (en) Method of transmitting information on approaching animals to vehicle and vehicle using thereof
CN113888769B (en) Inspection method and device and electronic equipment
CN113895457A (en) Method, device and equipment for controlling running state of vehicle and automatic driving vehicle
US20200271461A1 (en) Information processing apparatus, information processing method and program
CN112801600B (en) Method and device for generating route track, readable storage medium and electronic equipment
WO2022123962A1 (en) Control device, program, system, and method
JP2020181277A (en) Server device and control method thereof, terminal and control method thereof, mobile body support system and method, and computer program
CN114115781A (en) Multimedia resource display method, device, system, equipment and storage medium
CN113657632A (en) Abnormal driving behavior detection method and device, electronic equipment and storage medium
CN111930086A (en) Automatic guided vehicle scheduling method, device, storage medium and device
KR101531954B1 (en) System and method for tms-based delivery call service
CN113665590B (en) Method, device, equipment, medium and vehicle for controlling vehicle
WO2023035756A1 (en) Scheduling method and apparatus for movable device, and electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant