CN112965799A - Task state prompting method and device, electronic equipment and medium - Google Patents

Task state prompting method and device, electronic equipment and medium Download PDF

Info

Publication number
CN112965799A
CN112965799A CN202110248949.3A CN202110248949A CN112965799A CN 112965799 A CN112965799 A CN 112965799A CN 202110248949 A CN202110248949 A CN 202110248949A CN 112965799 A CN112965799 A CN 112965799A
Authority
CN
China
Prior art keywords
task
information
target
target task
state information
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.)
Granted
Application number
CN202110248949.3A
Other languages
Chinese (zh)
Other versions
CN112965799B (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 Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110248949.3A priority Critical patent/CN112965799B/en
Publication of CN112965799A publication Critical patent/CN112965799A/en
Application granted granted Critical
Publication of CN112965799B publication Critical patent/CN112965799B/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/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution

Abstract

The disclosure discloses a method, a device, equipment, a medium and a product for prompting task states, and relates to the field of cloud computing. The task state prompting method comprises the following steps: in response to a query request for a target task, acquiring at least one piece of state information for the target task from state information of a plurality of tasks, wherein the state information of the target task comprises execution time information of the target task and an execution result of the target task; determining target state information from at least one piece of state information of the target task, wherein the execution result of the target task in the target state information indicates that the target task is not executed successfully; and generating first prompt information aiming at the target task, wherein the first prompt information comprises the execution time information of the target task and the execution result of the target task in the target state information.

Description

Task state prompting method and device, electronic equipment and medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for prompting a task state, an electronic device, a medium, and a program product.
Background
With the continuous expansion of internet service scenes, various tasks are more and more. When a task is in the process of executing, the state of the task is generally required to be queried. However, in the related art, the prompt mode for the task state is low in accuracy, so that part of tasks cannot be processed in time.
Disclosure of Invention
The disclosure provides a method and a device for prompting task state, electronic equipment, a storage medium and a program product.
According to an aspect of the present disclosure, a method for prompting a task state is provided, including: in response to a query request for a target task, acquiring at least one piece of state information for the target task from state information of a plurality of tasks, wherein the state information of the target task comprises execution time information of the target task and an execution result of the target task; determining target state information from at least one piece of state information of a target task, wherein an execution result of the target task in the target state information indicates that the target task is not successfully executed; and generating first prompt information aiming at the target task, wherein the first prompt information comprises the execution time information of the target task and the execution result of the target task in the target state information.
According to another aspect of the present disclosure, there is provided a task status prompting apparatus, including: the device comprises an acquisition module, a determination module and a first generation module. The acquisition module is used for responding to a query request aiming at a target task, and acquiring at least one piece of state information aiming at the target task from state information of a plurality of tasks, wherein the state information of the target task comprises execution time information of the target task and an execution result of the target task; the determining module is used for determining target state information from at least one state information of the target task, wherein the execution result of the target task in the target state information indicates that the target task is not executed successfully; the first generating module is used for generating first prompt information aiming at the target task, and the first prompt information comprises execution time information of the target task and an execution result of the target task in the target state information.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor and a memory communicatively coupled to the at least one processor. The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for prompting the task state.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the above-described method of prompting a task state.
According to another aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the above-described method of hinting of task states.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 schematically illustrates a system architecture of a method and apparatus for prompting task status according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow diagram of a method of prompting for task status according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow diagram of a method of prompting for task status according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a schematic diagram of state information according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of a query request according to an embodiment of the disclosure;
FIG. 6 schematically illustrates a diagram of task status prompts, according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a task state prompting device according to an embodiment of the present disclosure;
and
fig. 8 schematically shows a schematic block diagram of an example electronic device according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides a method for prompting task state, which includes: and in response to the query request aiming at the target task, acquiring at least one piece of state information aiming at the target task from the state information of the plurality of tasks, wherein the state information of the target task comprises the execution time information of the target task and the execution result of the target task. Then, target state information is determined from the at least one state information of the target task, and the execution result of the target task in the target state information indicates that the target task is not successfully executed. And then generating first prompt information aiming at the target task, wherein the first prompt information comprises the execution time information of the target task and the execution result of the target task in the target state information.
Fig. 1 schematically illustrates a system architecture of a method and apparatus for prompting task status according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a client 101 and a first server 102 and second servers 103, 104, 105. The client 101 may for example communicate with a first server 102.
The client 101 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablets, laptop portable computers, desktop computers, and the like.
The first server 102 may be a server that provides various services, such as a background management server (for example only) that provides support for web sites browsed by users using the client 101. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the client. In addition, the first server 102 may also be a cloud server, that is, the first server 102 has a cloud computing function.
The second servers 103, 104, 105 have, for example, data processing functions, for example, for processing respective types of tasks. The first server 102 may for example communicate with the second servers 103, 104, 105. In addition, the second servers 103, 104, 105 may also be cloud servers, i.e. the second servers 103, 104, 105 have a cloud computing function.
The user may interact with the first server 102, for example, using the client 101. For example, a user sends an inquiry request for inquiring the execution state of a task using the client 101, and the first server 102 communicates with the second servers 103, 104, 105 in response to the inquiry request to obtain the execution state of the task executed by the second servers 103, 104, 105. Next, prompt information for the unsuccessfully executed task is generated by the first server 102 based on the acquired task execution state, and the prompt information is fed back to the user.
It should be noted that the method for prompting task status provided by the embodiment of the present disclosure may be generally performed by the first server 102. Accordingly, the task status prompting device provided by the embodiment of the present disclosure may be generally disposed in the first server 102.
It should be understood that the number of clients, first servers, and second servers in fig. 1 is merely illustrative. There may be any number of clients, first servers and second servers, as desired for implementation.
The embodiment of the present disclosure provides a method for prompting a task state, and a method for prompting a task state according to an exemplary embodiment of the present disclosure is described below with reference to fig. 2 to 6 in conjunction with the system architecture of fig. 1. The prompting of the task state of the disclosed embodiments may be performed, for example, by the first server 102 shown in fig. 1.
FIG. 2 schematically illustrates a flow diagram of a method for prompting task status according to an embodiment of the present disclosure.
As shown in fig. 2, the method 200 for prompting a task state according to the embodiment of the present disclosure may include operations S210 to S230, for example.
In operation S210, at least one state information for the target task is acquired from state information of the plurality of tasks in response to the query request for the target task.
In operation S220, target state information is determined from at least one state information of the target task.
In operation S230, first prompt information for a target task is generated.
For example, the target task is executed for a plurality of times, and each time the target task is started, the state information of the target task can be obtained by detecting the execution state of the started target task, so that at least one piece of state information is obtained. For example, when the target task is a periodic task, the target task needs to be executed once every time interval, and the state information of the target task is detected after the target task is executed every time, so as to obtain a plurality of pieces of state information for the target task. Each state information includes execution time information of the target task and an execution result of the target task. The execution time information of the target task includes an execution time, and the execution time is, for example, a start time at which the target task is started each time. The execution results of the target task include, for example, successful execution and unsuccessful execution.
In an embodiment of the present disclosure, target state information is determined from at least one state information for the target task. The target state information includes the execution time of the target task and the execution result of the target task. The execution result of the target task in the target status information is, for example, unsuccessful execution.
Next, first presentation information for the target task is generated based on the target state information, and the first presentation information includes, for example, an execution time of the target task and an execution result of the target task in the target state information.
For example, the target task is started at time 1, time 2, and time 3, respectively. The target task is successfully executed after being started at time 1, successfully executed after being started at time 2, and unsuccessfully executed after being started at time 3. The plurality of status information for the target task includes, for example, "the target task executed successfully at time 1", "the target task executed successfully at time 2", and "the target task executed unsuccessfully at time 3". The target state information determined from the plurality of state information is, for example, "the target task was not successfully executed at time 3". The first prompt information generated based on the target status information is, for example, "the target task is not successfully executed at time 3, and please process in time". The first prompt message contains the execution time of the target task, namely 'time 3' and the execution result of the target task, namely 'unsuccessful execution', so that the user is prompted to timely process the unsuccessfully executed target task based on the first prompt message.
In the embodiment of the disclosure, for target tasks executed multiple times, state information of the target tasks at each execution time is acquired, and target state information of which the execution result is unsuccessful execution is determined from the plurality of state information. And then, generating first prompt information based on the target state information to prompt the user to timely process the target task which is not successfully executed.
According to the embodiment of the disclosure, the state information for the task is set, and the state information contains the execution time information of the task and the execution result of the target task, so that the task state monitoring can be performed for the tasks executed for multiple times, and the time and the execution result of each execution of the task are obtained, the prompt accuracy of the task state is improved, and the user can conveniently process the tasks which are not executed successfully in time.
FIG. 3 schematically illustrates a flow diagram of a method for prompting task status according to an embodiment of the present disclosure.
As shown in fig. 3, a method 300 for prompting a task state according to an embodiment of the present disclosure may include operations S301 to S310, for example.
In operation S301, in response to any one of a plurality of tasks being executed once, state information for the task is generated.
In embodiments of the present disclosure, each task may be executed multiple times, one state information being generated for each executed task, resulting in multiple state information for each task. For each task, the state information of the task includes, for example, an identification of the task, an execution time of the task, and an execution result of the task. The identification of the task may include the name of the task.
In operation S302, status information having an identification matching the identification of the target task is selected from the status information of the plurality of tasks as status information of the target task, according to the identification of the target task in the query request.
In an embodiment of the present disclosure, the query request for the target task includes, for example, an identification of the target task. After receiving the query request, extracting at least one piece of state information from the state information aiming at the multiple tasks as the state information of the target task based on the identification of the target task carried by the query request. And the identifier contained in each piece of extracted at least one piece of state information is the identifier of the target task.
In an embodiment of the present disclosure, the obtaining at least one state information for the target task includes obtaining state information generated before the query request is received and tracking state information generated after the query request is received. For example, taking the target task as a periodic task, the target task is started at a plurality of times such as 00:00, 01:00, 02:00, 03:00, and the like, each day. After receiving the query request at time 01:30, the state information of the target task started at time 00:00 and the state information of the target task started at time 01:00 can be obtained, and the state information of the target task at a plurality of times such as time 02:00 and time 03:00 in the future can be tracked. In other words, the query request indicates that state detection is performed for the target task for a long period of time.
In operation S303, target state information is determined from the at least one state information.
In operation S304, first prompt information for the target task is generated based on the target state information.
In operation S305, target state information is added as information to be processed to the task queue.
In the embodiment of the present disclosure, for example, the state information including that the execution result is the unsuccessful execution is determined as the target state information. And then generating first prompt information aiming at the target user based on the target state information, and presenting the first prompt information to the user so as to prompt the user about the execution condition of the target task. In addition, after determining the target state information from the at least one state information, the target state information may be added to the task queue as pending information.
In operation S306, it is determined whether feedback information for the first prompt information is received. If so, operation S307 is performed. If not, the process returns to continue to operate S306.
In operation S307, it is determined whether the feedback information indicates that the information to be processed has been processed. If so, operation S308 is performed. If not, operation S309 is performed.
In operation S308, if the feedback information indicates that the to-be-processed information has been processed, the to-be-processed information is deleted from the task queue.
In the embodiment of the disclosure, after the first prompt information is generated based on the target state information and the target state information is added to the task queue as the to-be-processed information, the to-be-processed information can be determined to be removed from the task queue according to the feedback information of the user for the first prompt information in real time. In addition, since the information to be processed is stored through the task queue, the first prompt information can be presented to the user in real time when the feedback information for the first prompt information is not received. For example, the information to be processed is determined from the task queue every 15 minutes, and first prompt information corresponding to the information to be processed is presented to the user, so that the user is continuously prompted to process the information in time. Therefore, the information to be processed is stored in a task queue mode, the information to be processed is continuously tracked until the information to be processed is processed, and the processing efficiency of the task which is not successfully executed is improved.
In operation S309, it is determined whether a duration in which the information to be processed is retained in the task queue exceeds a preset processing duration. If so, operation S310 is performed. If not, the process returns to continue to operate S306.
In operation S310, if the duration that the information to be processed is retained in the task queue exceeds the preset processing duration, second prompt information for the target task is generated.
In the embodiment of the present disclosure, the preset processing time period is, for example, 3 hours, 5 hours, or the like. The preset processing duration may be included in the query request, that is, the preset processing duration may be set by a user initiating the query request. And when the time length of the information to be processed reserved in the task queue exceeds the preset processing time length, generating second prompt information aiming at the target task.
In an embodiment of the present disclosure, the cue level of the second cue information is, for example, higher than the cue level of the first cue information. The contents of the first prompt message and the second prompt message may be the same or different. The presentation mode of presenting the first prompt information to the user and the presentation mode of presenting the second prompt information to the user may be different. For example, the presentation level of the presentation manner of the second prompt information is higher than the presentation level of the presentation manner of the first prompt information.
Fig. 4 schematically shows a schematic diagram of status information according to an embodiment of the present disclosure.
As shown in fig. 4, state information 410 is also referred to as a task instance, for example. Each status information (task instance) includes, for example, an identification 411 of the task, an execution time 412 of the task, and an execution result 413 of the task.
In the embodiment of the present disclosure, the identification 411 of the task includes, for example, the name of the task, and one task instance may be uniquely determined based on the name of the task and the execution time of the task. For example, for task A, which is executed at time 1 and time 2, respectively, the task A corresponds to two task instances (task instance A)1And task instance A2). Task instance A1Including the identification of the task "task a" and the execution time of the task "time 1". Task instance A2Including the identification of the task "task a" and the execution time of the task "time 2". The execution result 413 of the task included in each task instance includes, for example, successful execution and unsuccessful execution including, for example, execution failure and execution timeout.
FIG. 5 schematically shows a schematic diagram of a query request according to an embodiment of the disclosure.
As shown in fig. 5, the query request 510 includes, for example, an identification 511 of the task, a description 512 of the task, a preset processing time 513, information 514 of the user, and information 515 of a superior user of the user.
In an embodiment of the present disclosure, the identification 511 of the task is, for example, an identification of a task that needs to perform a status query currently. The description 512 of the task includes information such as a functional introduction of the task, for example. The preset processing time 513 is, for example, a basis for generating the second prompt message. The user's information 514 includes, for example, the user's name, the identification of the instant messaging group the user is in, the user's phone number, etc., and the user may be found based on the user's information 514 to prompt the user about the execution status of the task. The information 515 of the upper user of the user includes, for example, a name of the upper user of the user, an instant messaging group identifier where the upper user is located, a phone number of the upper user, and the like, and the upper user can be found based on the information 515 of the upper user to prompt the upper user about the execution state of the task.
FIG. 6 schematically shows a schematic diagram of task status cues according to an embodiment of the present disclosure.
As shown in fig. 6, the task status prompting method of the present disclosure is performed by a task scheduling system 610A and a task status monitoring system 601B. In an embodiment, the task scheduling system 610A and the task status monitoring system 601B may be deployed on the same server or on different servers.
According to the embodiment of the disclosure, after the task scheduling system 610A starts a task each time, a task instance is generated, and the initial task instance includes, for example, an identification of the task and an execution time of the task. After receiving the query request, the task state monitoring system 601B determines a target task for the query request based on the task identifier in the query request, detects an execution result of the task at the corresponding execution time, and adds the execution result of the task to the initial task instance, where the obtained task instance includes the task identifier, the execution time of the task, and the execution result of the task.
And when the execution result of the task in the task instance is execution failure or execution overtime, generating and presenting first prompt information. Then, a task instance whose execution result is execution failure or execution timeout is added to the task queue 6011.
In one embodiment, the query request includes, for example, group chat information of the user, such as a person in charge of the target task, and a phone number of the user. The group chat information includes, for example, a group identifier of an instant messaging group in which the user is located.
And if the execution result of the target task in the target state information (the task instance of the target task) indicates that the target task fails to execute, presenting first prompt information based on the group chat information of the user and the telephone number of the user. For example, first prompt information is sent to the user in the instant messaging group where the user is located or the user is called to inform the user about the failure of the target task execution.
And if the execution result of the target task in the target state information (the task instance of the target task) indicates that the target task is executed overtime, presenting first prompt information based on the group chat information of the user. For example, first prompt information is sent to the user in the instant messaging group where the user is located so as to inform the user about the situation that the target task fails to be executed.
In another embodiment, the query request further includes, for example, group chat information of an upper level user of the user and a phone number of the upper level user of the user. The superordinate user of a user is, for example, a supervisor or leader of the user.
And if the execution result of the target task in the target state information (the task instance of the target task) indicates that the target task fails to be executed and the task instance is not processed in the task queue for more than the preset processing time, presenting second prompt information based on the group chat information of the upper-level user of the user and the telephone number of the upper-level user of the user. For example, the second prompt message is sent to the superior user in the instant messaging group where the superior user is located or the superior user is called to inform the superior user about the failure of the target task execution.
And if the execution result of the target task in the target state information (the task instance of the target task) indicates that the target task is executed overtime and the task instance is not processed in the task queue for more than the preset processing time, presenting second prompt information based on the group chat information of the user and the telephone number of the user. For example, a second prompt message is sent to the user in the instant messaging group where the user is located or the user is called to inform the user about the failure of the target task execution.
In the embodiment of the present disclosure, the urgency of processing a task whose execution failed is higher than the urgency of processing a task whose execution has timed out. Therefore, the first prompt information aiming at the task with failed execution is presented in the presentation mode with higher level, and the first prompt information aiming at the task with overtime execution is presented in the presentation mode with lower level, so that the first prompt information is presented by adopting different presentation modes aiming at the tasks with different execution states, and the pertinence of task state prompt is improved.
In the embodiment of the disclosure, when the task instance in the task queue is not processed after the preset processing time, the alarm mode needs to be upgraded to improve the processing efficiency of the task. For example, when the task instance in the task queue is not processed for a preset processing time, the second prompt information is presented in a higher-level presentation manner. For example, for a task that fails to execute, the level of the presentation manner in which the second prompt information is presented is higher than the level of the presentation manner in which the first prompt information is presented. And for the task which is executed overtime, the level of the presentation mode for presenting the second prompt information is higher than the level of the presentation mode for presenting the first prompt information. It can be understood that the alarm mode is upgraded based on the condition that the task instance is not processed for a long time, so that the processing efficiency of the task which is not successfully executed is improved.
In the embodiment of the disclosure, when the feedback information aiming at the first prompt information is received, the corresponding task instance (such as the task instance A) is used2) Is removed from the task queue 6011. When feedback information for the second prompt information is received, the corresponding task instance (such as task instance B) can also be used1) Is removed from the task queue 6011.
In the embodiment of the present disclosure, the task state monitoring system 601B includes, for example, an alert robot, which is, for example, a program module. The alert robot may report task status to the user, for example, in a group. For example, the alert robot may send a first prompt or a second prompt to the group to inform the user about the status of the task. The first prompt message or the second prompt message sent by the robot alarm may further include a feedback mode, and the user may perform feedback based on the feedback mode, where the feedback mode includes, for example, informing the user to reply to the robot alarm in the group. Or the warning robot can call the user and transfer the first prompt message or the second prompt message in the call, and also transfer the description of the task included in the query request, so that the user can locate the task which is not successfully executed in time. It can be understood that the interaction with the user is improved by performing status prompt and receiving feedback of the user in a group chat mode and a telephone mode.
In the embodiment of the disclosure, by providing the configuration page, the user can set the query request on the configuration page, and the use convenience of the user is improved. By acquiring the state information of the task after each start, the state detection effect for the fine-grained task is improved. The information to be processed is stored in a task queue mode, the information to be processed is continuously tracked until the information to be processed is processed, and the processing efficiency of the task which is not successfully executed is improved. The task state prompt is carried out by combining the group chat mode and the telephone mode, so that the interactivity between the user and the alarm robot is improved, and the feedback enthusiasm of the user is improved.
Fig. 7 schematically illustrates a block diagram of a task state prompting device according to an embodiment of the present disclosure.
As shown in fig. 7, the task status prompting apparatus 700 of the embodiment of the disclosure includes, for example, an obtaining module 710, a determining module 720, and a first generating module 730.
The obtaining module 710 may be configured to obtain at least one piece of state information for the target task from state information of the plurality of tasks in response to the query request for the target task, where the state information of the target task includes execution time information of the target task and an execution result of the target task. According to the embodiment of the present disclosure, the obtaining module 710 may, for example, perform the operation S210 described above with reference to fig. 2, which is not described herein again.
The determining module 720 may be configured to determine target status information from the at least one status information of the target task, wherein the execution result of the target task in the target status information indicates that the target task was not successfully executed. According to an embodiment of the present disclosure, the determining module 720 may perform, for example, operation S220 described above with reference to fig. 2, which is not described herein again.
The first generating module 730 may be configured to generate first prompt information for the target task, where the first prompt information includes execution time information of the target task and an execution result of the target task in the target state information. According to the embodiment of the present disclosure, the first generating module 730 may perform, for example, the operation S230 described above with reference to fig. 2, which is not described herein again.
According to an embodiment of the present disclosure, the apparatus 700 further includes an adding module, a receiving module, and a deleting module. The adding module is used for adding the target state information as the information to be processed into the task queue. The receiving module is used for receiving feedback information aiming at the first prompt information. The deletion module is used for deleting the information to be processed from the task queue in response to the feedback information indicating that the information to be processed is processed.
According to an embodiment of the present disclosure, the apparatus 700 further includes a second generating module, configured to generate second prompt information for the target task in response to that a duration that the information to be processed remains in the task queue exceeds a preset processing duration.
According to an embodiment of the present disclosure, the obtaining module 710 is further configured to obtain, in response to a query request for a target task, status information generated before the query request is received, and track the status information generated after the query request is received.
According to an embodiment of the present disclosure, the apparatus 700 further includes a third generating module, configured to generate state information for any task in the plurality of tasks in response to the task being executed once, where the state information of the task includes an identifier of the task, execution time information of the task, and an execution result of the task.
According to an embodiment of the present disclosure, the query request includes an identifier of the target task, and the obtaining module 710 is further configured to select, as the state information of the target task, state information having an identifier matching the identifier of the target task from the state information of the plurality of tasks according to the identifier of the target task in the query request.
According to an embodiment of the present disclosure, the unsuccessful execution includes an execution failure and an execution timeout, and the query request includes group chat information of the user and a phone number of the user. The apparatus 700 also includes a first rendering module and a second rendering module. The first presenting module is used for presenting first prompt information based on the group chat information of the user and the telephone number of the user under the condition that the execution result of the target task in the target state information indicates that the target task fails to be executed. And the second presenting module is used for presenting the first prompt information based on the group chat information of the user under the condition that the execution result of the target task in the target state information indicates that the execution of the target task is overtime.
According to an embodiment of the present disclosure, the query request further includes group chat information of an upper level user of the user and a phone number of the upper level user of the user. The apparatus 700 further includes a third rendering module and a fourth rendering module. The third presenting module is used for presenting second prompt information based on the group chat information of the superior user of the user and the telephone number of the superior user of the user under the condition that the execution result of the target task in the target state information indicates that the target task is failed to be executed. And the fourth presenting module is used for presenting the second prompt information based on the group chat information of the user and the telephone number of the user under the condition that the execution result of the target task in the target state information indicates that the execution of the target task is overtime.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 8 is a block diagram of a prompt electronic device for task status used to implement an embodiment of the present disclosure.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. The electronic device 800 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above, such as a prompt method of a task state. For example, in some embodiments, the prompting method for task status may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the method of prompting for task status described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the method of prompting for task status in any other suitable manner (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel or sequentially or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (19)

1. A method for prompting task state comprises the following steps:
in response to a query request for a target task, acquiring at least one piece of state information for the target task from state information of a plurality of tasks, wherein the state information of the target task comprises execution time information of the target task and an execution result of the target task;
determining target state information from at least one piece of state information of a target task, wherein an execution result of the target task in the target state information indicates that the target task is not successfully executed; and
and generating first prompt information aiming at the target task, wherein the first prompt information comprises the execution time information of the target task and the execution result of the target task in the target state information.
2. The method of claim 1, further comprising, after determining target state information from the at least one state information:
adding the target state information serving as information to be processed into a task queue;
receiving feedback information aiming at the first prompt information; and
deleting the to-be-processed information from the task queue in response to the feedback information indicating that the to-be-processed information has been processed.
3. The method of claim 2, further comprising:
and generating second prompt information aiming at the target task in response to the fact that the time length of the information to be processed reserved in the task queue exceeds the preset processing time length.
4. The method of claim 1, wherein the obtaining at least one state information for a target task in response to a query request for the target task comprises:
in response to a query request for a target task, state information generated prior to receiving the query request is obtained, and state information generated after receiving the query request is tracked.
5. The method of claim 1, further comprising:
in response to any task of the plurality of tasks being executed once, state information for the task is generated, wherein the state information of the task comprises an identification of the task, execution time information of the task and an execution result of the task.
6. The method of claim 5, the query request including an identification of the target task; the obtaining at least one state information for the target task comprises:
and selecting the state information with the identification matched with the identification of the target task from the state information of the plurality of tasks as the state information of the target task according to the identification of the target task in the query request.
7. The method of claim 1, wherein the unsuccessful execution includes an execution failure and an execution timeout, the query request includes group chat information of a user and a phone number of the user; the method further comprises the following steps:
presenting the first prompt information based on the user's group chat information and the user's phone number if the execution result of the target task in the target state information indicates that the target task fails to be executed; and
presenting the first prompt information based on the user's group chat information if the execution result of the target task in the target state information indicates that the target task execution is overtime.
8. The method of claim 7, wherein the query request further includes group chat information of an upper level user of the user and a phone number of the upper level user of the user; the method further comprises the following steps:
presenting the second prompt information based on group chat information of an upper user of the user and a phone number of the upper user of the user when an execution result of a target task in the target state information indicates that the target task is failed to be executed; and
presenting the second prompt information based on the group chat information of the user and the telephone number of the user when the execution result of the target task in the target state information indicates that the execution of the target task is overtime.
9. A task status prompting device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for responding to a query request aiming at a target task, and acquiring at least one piece of state information aiming at the target task from state information of a plurality of tasks, and the state information of the target task comprises execution time information of the target task and an execution result of the target task;
the system comprises a determining module, a processing module and a processing module, wherein the determining module is used for determining target state information from at least one state information of a target task, and the execution result of the target task in the target state information indicates that the target task is not successfully executed; and
and the first generating module is used for generating first prompt information aiming at the target task, wherein the first prompt information comprises the execution time information of the target task and the execution result of the target task in the target state information.
10. The apparatus of claim 9, further comprising:
the adding module is used for adding the target state information serving as information to be processed into a task queue;
the receiving module is used for receiving feedback information aiming at the first prompt information; and
a deleting module for deleting the information to be processed from the task queue in response to the feedback information indicating that the information to be processed has been processed.
11. The apparatus of claim 10, further comprising:
and the second generating module is used for responding to the fact that the time length of the information to be processed reserved in the task queue exceeds the preset processing time length, and generating second prompt information aiming at the target task.
12. The apparatus of claim 9, wherein the means for obtaining is further configured to:
in response to a query request for a target task, state information generated prior to receiving the query request is obtained, and state information generated after receiving the query request is tracked.
13. The apparatus of claim 9, further comprising:
and a third generating module, configured to generate state information for any task in the plurality of tasks in response to the task being executed once, where the state information of the task includes an identifier of the task, execution time information of the task, and an execution result of the task.
14. The apparatus of claim 13, the query request comprising an identification of the target task; the acquisition module is further configured to:
and selecting the state information with the identification matched with the identification of the target task from the state information of the plurality of tasks as the state information of the target task according to the identification of the target task in the query request.
15. The apparatus of claim 9, wherein the unsuccessful execution includes an execution failure and an execution timeout, the query request includes group chat information of a user and a phone number of the user; the device further comprises:
a first presentation module, configured to present the first prompt information based on the group chat information of the user and the phone number of the user if an execution result of a target task in the target state information indicates that target task execution fails; and
and a second presentation module, configured to present the first prompt information based on the group chat information of the user when an execution result of the target task in the target state information indicates that the target task is executed overtime.
16. The apparatus of claim 15, wherein the query request further includes group chat information of an upper level user of the user and a phone number of the upper level user of the user; the device further comprises:
a third presentation module, configured to present the second prompt information based on group chat information of an upper-level user of the user and a phone number of the upper-level user of the user when an execution result of a target task in the target state information indicates that execution of the target task fails; and
and a fourth presentation module, configured to present the second prompt information based on the group chat information of the user and the phone number of the user when an execution result of the target task in the target state information indicates that the target task is executed overtime.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-8.
CN202110248949.3A 2021-03-05 2021-03-05 Task state prompting method and device, electronic equipment and medium Active CN112965799B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110248949.3A CN112965799B (en) 2021-03-05 2021-03-05 Task state prompting method and device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110248949.3A CN112965799B (en) 2021-03-05 2021-03-05 Task state prompting method and device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN112965799A true CN112965799A (en) 2021-06-15
CN112965799B CN112965799B (en) 2023-08-18

Family

ID=76277444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110248949.3A Active CN112965799B (en) 2021-03-05 2021-03-05 Task state prompting method and device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN112965799B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867916A (en) * 2021-09-28 2021-12-31 北京百度网讯科技有限公司 Task processing method and device and electronic equipment
CN114860412A (en) * 2022-05-19 2022-08-05 北京百度网讯科技有限公司 Task processing method and device, electronic equipment and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160135044A1 (en) * 2014-11-07 2016-05-12 Thamer Fuhaid ALTUWAIYAN Chatting system and method for smartphones
CN106528769A (en) * 2016-11-04 2017-03-22 乐视控股(北京)有限公司 Data acquisition method and apparatus
US20170262507A1 (en) * 2016-03-10 2017-09-14 International Business Machines Corporation Feedback mechanism for query execution
CN110096344A (en) * 2018-01-29 2019-08-06 北京京东尚科信息技术有限公司 Task management method, system, server cluster and computer-readable medium
CN110309024A (en) * 2019-04-23 2019-10-08 网宿科技股份有限公司 Data processing system and its method for executing data processing task
CN110532247A (en) * 2019-08-28 2019-12-03 北京皮尔布莱尼软件有限公司 Data migration method and data mover system
CN110716943A (en) * 2019-09-06 2020-01-21 中国平安财产保险股份有限公司 Missing data additional recording method and device, computer equipment and storage medium
CN110784596A (en) * 2019-09-24 2020-02-11 上海掌门科技有限公司 Method and equipment for processing event information
CN111010313A (en) * 2019-12-05 2020-04-14 深圳联想懂的通信有限公司 Batch processing state monitoring method, server and storage medium
CN111600730A (en) * 2020-05-18 2020-08-28 腾讯科技(深圳)有限公司 Session interface display method, group chat creating method, device and equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160135044A1 (en) * 2014-11-07 2016-05-12 Thamer Fuhaid ALTUWAIYAN Chatting system and method for smartphones
US20170262507A1 (en) * 2016-03-10 2017-09-14 International Business Machines Corporation Feedback mechanism for query execution
CN106528769A (en) * 2016-11-04 2017-03-22 乐视控股(北京)有限公司 Data acquisition method and apparatus
CN110096344A (en) * 2018-01-29 2019-08-06 北京京东尚科信息技术有限公司 Task management method, system, server cluster and computer-readable medium
CN110309024A (en) * 2019-04-23 2019-10-08 网宿科技股份有限公司 Data processing system and its method for executing data processing task
CN110532247A (en) * 2019-08-28 2019-12-03 北京皮尔布莱尼软件有限公司 Data migration method and data mover system
CN110716943A (en) * 2019-09-06 2020-01-21 中国平安财产保险股份有限公司 Missing data additional recording method and device, computer equipment and storage medium
CN110784596A (en) * 2019-09-24 2020-02-11 上海掌门科技有限公司 Method and equipment for processing event information
CN111010313A (en) * 2019-12-05 2020-04-14 深圳联想懂的通信有限公司 Batch processing state monitoring method, server and storage medium
CN111600730A (en) * 2020-05-18 2020-08-28 腾讯科技(深圳)有限公司 Session interface display method, group chat creating method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
袁平鹏;曹文治;邝坪;: "一种基于Cache的网格任务反馈调度方法", 软件学报, no. 11 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867916A (en) * 2021-09-28 2021-12-31 北京百度网讯科技有限公司 Task processing method and device and electronic equipment
CN114860412A (en) * 2022-05-19 2022-08-05 北京百度网讯科技有限公司 Task processing method and device, electronic equipment and medium
CN114860412B (en) * 2022-05-19 2023-04-04 北京百度网讯科技有限公司 Task processing method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN112965799B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN112965799B (en) Task state prompting method and device, electronic equipment and medium
CN111026572A (en) Fault processing method and device of distributed system and electronic equipment
CN113704063A (en) Performance monitoring method, device, equipment and storage medium of cloud mobile phone
CN110881224B (en) Network long connection method, device, equipment and storage medium
CN113067769B (en) Router restarting method, device, equipment and storage medium
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN114327819B (en) Task management method, device, equipment and storage medium
CN113660635B (en) Connection method, connection device, electronic device, and storage medium
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN114401121A (en) Application program login method and device, electronic equipment and readable storage medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN113535020A (en) Method, apparatus, device, medium and product for generating application icons
CN113504969A (en) Container event alarm method and device and electronic equipment
CN114138397A (en) Page display method and device, electronic equipment and storage medium
CN113743288A (en) Image recognition method, device, equipment and storage medium of cloud mobile phone
CN112631843A (en) Equipment testing method and device, electronic equipment, readable medium and product
CN114401300B (en) Cloud application control method, device, equipment, medium and program product
CN114237752B (en) Push page display method and device, electronic equipment and storage medium
CN114025037B (en) Cloud mobile phone overhaul method and device, electronic equipment and storage medium
CN114546705B (en) Operation response method, operation response device, electronic apparatus, and storage medium
CN114428646B (en) Data processing method and device, electronic equipment and storage medium
CN115080003A (en) Zero code platform operation method and device, electronic equipment and storage medium
CN113448767A (en) Distributed transaction database recovery method, device, equipment and storage medium
CN116668258A (en) Alarm information processing method and device and electronic equipment

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