CN110334905B - Project fault display method, device, computer equipment and storage medium - Google Patents

Project fault display method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110334905B
CN110334905B CN201910460612.1A CN201910460612A CN110334905B CN 110334905 B CN110334905 B CN 110334905B CN 201910460612 A CN201910460612 A CN 201910460612A CN 110334905 B CN110334905 B CN 110334905B
Authority
CN
China
Prior art keywords
task
execution
menu
fault
time length
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
CN201910460612.1A
Other languages
Chinese (zh)
Other versions
CN110334905A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910460612.1A priority Critical patent/CN110334905B/en
Publication of CN110334905A publication Critical patent/CN110334905A/en
Application granted granted Critical
Publication of CN110334905B publication Critical patent/CN110334905B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06313Resource planning in a project environment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • G06Q10/06316Sequencing of tasks or work

Abstract

The application belongs to the technical research and development management field, and particularly relates to a project fault display method, a device, computer equipment and a storage medium. The method comprises the following steps: when an execution failure of an item is detected, acquiring a task queue of the item and an execution task in the task queue; acquiring the current execution time length and the estimated execution time length of each execution task; generating a fault judgment result according to the current execution time length and the estimated execution time length, generating a task selection option according to the item, the task queue and the execution task, and generating a multi-level task menu according to the task selection option; and carrying out associated display on the task selection options of the multi-stage task menu and the corresponding fault judgment results. By adopting the method, the user can quickly know the fault reason of the project, selectively execute the target task and do not need to rerun the whole project.

Description

Project fault display method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for displaying project faults, a computer device, and a storage medium.
Background
In a computer system, each item is made up of a plurality of tasks. Each item is executed by scheduling the different tasks it contains. However, when some tasks in the project have execution faults, the user cannot confirm the tasks with faults, so that the faults of the project cannot be repaired, and only the project can be restarted.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a project failure display method, apparatus, computer device, and storage medium that enable a user to confirm a failure task.
A method of item fault display, the method comprising:
when an execution failure of an item is detected, acquiring a task queue of the item and an execution task in the task queue;
acquiring the current execution time length and the estimated execution time length of each execution task;
generating a fault judgment result according to the current execution time length and the estimated execution time length, generating a task selection option according to the item, the task queue and the execution task, and generating a multi-level task menu according to the task selection option;
and carrying out associated display on the task selection options of the multi-stage task menu and the corresponding fault judgment results.
In one embodiment, the generating a multi-level task menu according to the task selection options includes:
acquiring the item, the task queue, the task execution link for executing the task and a menu level identifier;
setting the task execution link in association with the task selection option;
confirming hierarchical nodes of a multi-level task menu according to the menu hierarchy identification;
and arranging the task selection options based on the grading nodes to obtain a multi-stage task menu.
In one embodiment, the generating the fault determination result according to the current execution duration and the estimated execution duration includes:
generating a time length comparison result by comparing the current execution time length with the estimated execution time length;
detecting an execution processor executing the task queue and the execution task and obtaining a detection result;
and generating a fault judgment result according to the duration comparison result and the detection result.
In one embodiment, the performing, in association, display of the task selection option of the multi-level task menu and the corresponding fault determination result includes:
establishing a mapping relation between the task selection options and the fault judgment result;
And displaying fault judgment results corresponding to the task selection options in the multi-stage task menu according to the mapping relation.
In one embodiment, after the task selection options of the multi-level task menu and the corresponding fault judgment results are displayed in an associated manner, the method includes:
acquiring a target task to be selectively executed through the multi-stage task menu, and executing the target task;
when the execution completion of the target task is detected, acquiring a fault message and an execution message of the target task;
comparing and analyzing the fault message and the execution message and generating a task execution result;
and carrying out associated display on the task selection options of the target task and the task execution results.
In one embodiment, the acquiring, through the multi-level task menu, a target task selected for execution, and executing the target task, includes:
acquiring selected task selection options through the multi-stage task menu;
analyzing the selected task selection options to obtain target tasks;
starting an execution processor corresponding to a task execution link associated with the selected task selection option;
And controlling the execution processor to execute the target task.
In one embodiment, the method further comprises:
acquiring a task process query instruction;
extracting a task to be queried from the task query instruction;
acquiring the current execution progress of the task to be queried;
and displaying the current execution progress in the multi-stage task menu.
An item fault display device, the device comprising:
the system comprises a fault detection acquisition module, a task queue detection module and a task execution module, wherein the fault detection acquisition module is used for acquiring a task queue of an item and an execution task in the task queue when an execution fault of the item is detected;
the execution time length acquisition module is used for acquiring the current execution time length and the estimated execution time length of each execution task;
the result option generating module is used for generating a fault judging result according to the current execution time length and the estimated execution time length, generating a task selection option according to the item, the task queue and the execution task, and generating a multi-level task menu according to the task selection option;
and the associated display module is used for carrying out associated display on the task selection options of the multi-stage task menu and the corresponding fault judgment results.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the above method.
According to the method, the device, the computer equipment and the storage medium for displaying the project faults, when the execution faults of the project are detected, the fault judgment results are generated according to the acquired current execution time and the estimated execution time, and the task selection options and the corresponding fault judgment results are displayed in a multi-stage task menu in an associated mode, so that a user can quickly know the fault reasons of the project, selectively execute the target task with the faults according to the fault judgment results, the whole project does not need to be rerun, the running time of the project is saved, the waiting time of the user is reduced, the use memory of the computer system is reduced, and the project efficiency of the user is improved.
Drawings
FIG. 1 is an application scenario diagram of an item fault display method in one embodiment;
FIG. 2 is a flow chart of a method of displaying item faults in one embodiment;
FIG. 3 is a flow chart of a multi-level task menu generation step in one embodiment;
FIG. 4 is a flowchart illustrating a fault determination result generation step according to another embodiment;
FIG. 5 is a flow chart of a method for displaying item faults in another embodiment;
FIG. 6 is a block diagram of an item fault display device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The project fault display method provided by the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable intelligent devices, and the server 104 may be implemented by a stand-alone server or a server cluster formed by a plurality of servers. The terminal 102 may send an execution instruction of the item to the server 104 or the execution device of the terminal 102, and the server 104 or the execution device of the terminal 102 executes the item according to the execution instruction. Taking the server 104 as an example, when the server 104 detects an execution failure of an item, the server 104 obtains a task queue of the item and execution tasks in the task queue. The server 104 obtains the current execution time length and the estimated execution time length of each execution task, and generates a fault judgment result according to the current execution time length and the estimated execution time length. The server 104 generates task selection options from the items, task queues, and execution tasks, and generates a multi-level task menu from the task selection options. The server 104 may display the task selection options of the multi-level task menu and the corresponding failure determination results in association. The server 104 obtains the target task selected for execution through the multi-level task menu, and executes the target task.
In one embodiment, as shown in fig. 2, a method for displaying project faults is provided, which is illustrated by taking the application of the method to the server 104 in fig. 1 as an example, and includes the following steps:
step 202, when an execution failure of an item is detected, acquiring a task queue of the item and an execution task in the task queue.
When the server 104 detects an execution failure of an item, the server 104 acquires a task queue included in the item and an execution task included in the task queue from the task database according to the detected item in which the execution failure occurs. The task database stores not only the task queues corresponding to the items and the execution tasks, but also menu level identifiers established according to the subordinate relations among the three. Items may have the properties of large consumption of scheduling resources, long execution time, etc. Wherein the scheduling resources include, but are not limited to, resources such as CPU, GPU, etc. Items are divisible, each item can be divided into one to more sets of task queues, each task queue can contain one to more execution tasks. Each executing task is a separate thread, which may be the smallest command that the system executes.
Step 204, obtaining the current execution duration and the estimated execution duration of each execution task.
The server 104 obtains the current execution time length and the estimated execution time length of each execution task. The current execution duration is the duration that the execution processor processes that the execution task actually occurs. The estimated execution time length is the estimated time length required by the execution task obtained according to the historical execution time length and the theoretical execution data.
And 206, generating a fault judgment result according to the current execution time length and the estimated execution time length, generating a task selection option according to the item, the task queue and the execution task, and generating a multi-level task menu according to the task selection option.
The server 104 generates a fault judgment result according to the current execution duration and the estimated execution duration. The server 104 may determine whether the current execution duration is greater than the estimated execution duration, and when the current execution duration is greater than the estimated execution duration, the server 104 generates a failure determination result that the execution task fails; when the current execution duration is smaller than the estimated execution duration, the server 104 generates a failure judgment result that the execution task is not failed. The server 104 may calculate the current execution time length and the estimated execution time length of the task queues according to the current execution time length and the estimated execution time length of the execution task, and obtain a fault judgment result of whether each task queue has a fault.
The server 104 generates task selection options based on the items, task queues, and execution tasks. Task selection options may be presented in the display interface either statically or dynamically in the form of icons, thumbnails or pictures, etc. The task selection option is an option that allows the user to select an execution task, a task queue, or an item that needs to be executed again.
Server 104 generates a multi-level task menu based on the task selection options. The server may categorize the task selection options according to the nature of the project, the task queue, and the execution task, for example, categorize the task selection options of the project into one category, categorize the task selection options of the task queue into one category, categorize the task selection options of the execution task into one category. The server identifies the corresponding relation among the task selection options according to the subordinate relation among the items, the task queues and the execution tasks, and then the items, the task queues and the execution tasks can be displayed in a grading manner according to the corresponding relation among the options. Hierarchical display refers to displaying items, task queues, and execution tasks in task menus of different levels, respectively. Different levels of task menus may be displayed in the same display interface or in different display interfaces.
For example, the A-item contains X task queues, one of which is named a P-task queue containing Y execution tasks, each of which X, Y is a positive integer. The server may display task selection options for all items in a level one menu, among which the task selection option for the a item is selected. The server displays the task selection options of the X task queues in the secondary menu, and when the task selection options of the P task queues are selected, the server displays Y execution tasks in the tertiary menu.
And step 208, performing associated display on the task selection options of the multi-stage task menu and the corresponding fault judgment results.
The server 104 performs associated display on the task selection options and the corresponding fault judgment results in the multi-level task menu, so that a user can conveniently know each task queue and the specific execution condition of the execution task in the project. The server determines the connection between the task selection options and the fault judgment results, and displays the task selection options and the fault judgment results in a multi-level task menu according to the connection. The server can display task selection options firstly, and then display fault judgment results when a user selects the task selection options; the server may also display the task selection option and the failure determination result simultaneously.
In the project fault display method, when the server detects the execution fault of the project, a fault judgment result is generated according to the acquired current execution time length and the estimated execution time length, and the task selection options and the corresponding fault judgment results are associated and displayed in the multi-stage task menu, so that a user can quickly know the fault reason of the project, selectively execute the target task with the fault according to the fault judgment result, the whole project does not need to be rerun, the running time of the project is saved, the waiting time of the user is reduced, the use memory of the computer system is reduced, and the project efficiency of the user is improved.
In one embodiment, as shown in fig. 3, a multi-level task menu is generated from the task selection options, having the steps of:
step 302, obtaining the item, the task queue, the task execution link for executing the task and the menu level identification.
The server 104 obtains the project, the task queue, and the task execution links and menu level identification for executing the task. The task execution links and menu level identifiers are stored in advance in the task database. The task execution link may be a link corresponding to an execution processor that initiates execution of a task or task queue or item, and may also include processing parameters or parameter processing means involved in executing the corresponding task queue or execution task. Different execution tasks or task queues can be run by the same execution processor, but the processing parameters related in the task execution links corresponding to the different execution tasks or task queues are different, so that even if the same execution processor executes a plurality of execution tasks or task queues, the obtained processing results are not disturbed.
The menu level identification may embody dependencies between the items, the task queues, and the execution tasks. The menu hierarchy identification may be a regular string of digits and/or letters, for example, when an item contains multiple task queues containing multiple execution tasks, the menu hierarchy identification of the item may be 01, the menu hierarchy identification of the task queue under the item may be 011, 012, 013, etc., and the menu hierarchy identification of the task under the 011 task queue may be 0111, 0112, 0113, etc.
And step 304, performing association setting on the task execution link and the task selection option.
The server 104 associates the task execution link with the task selection option. Specifically, the server 104 stores the relationship of the task execution link and the task selection option.
Step 306, identifying hierarchical nodes of the multi-level task menu according to the menu hierarchy.
Server 104 determines hierarchical nodes of the multi-level task menu from the menu hierarchy identification. The server 104 determines an identification rule for setting the menu hierarchy identification according to the menu hierarchy identification, identifies items, task queues and execution tasks according to the identification rule, and sets up hierarchical nodes according to the dependencies. For example, when the menu hierarchy identification of an item is 01, the menu hierarchy identifications of the task queues under the item are 011, 012, 013, etc., and when the menu hierarchy identifications of the tasks under the 011 task queue are 0111, 0112, 0113, etc., the server determines the dish of the task based on the menu hierarchy identification The single-layer level mark is formed by K 0 +K 1 The menu level mark of the task queue consists of K 0 +K 1 +K 2 The menu level mark for executing tasks is composed of K 0 +K 1 +K 2 +K 3 The four digits are formed and are sequentially arranged according to the order of the sizes.
That is, the menu level identification of the M-th level task menu is defined by K 0 +…+K M-1 +K M The bit numbers are composed and are sequentially arranged according to the size sequence, M is a positive integer, K 0 +…+K M-1 The bit numbers are used for representing the menu level identification of the father level menu of the Mth level menu and the hierarchical nodes with the task selection options consistent with the identification are multi-level task menus, K M The digits are used to indicate the location of the task execution option in the M-th level task menu.
And 308, arranging the task selection options based on the grading nodes to obtain a multi-stage task menu.
The server 104 arranges the task selection options based on the hierarchical nodes to obtain a multi-level task menu. The server 104 arranges the menu hierarchy identifications corresponding to the task selection options based on the positions of the hierarchical nodes in the blank menu to construct a multi-level task menu. Server 104 may first display a first level menu of task selection options with items. When the user clicks or moves the mouse to the task selection option of the project, the server displays a secondary menu of task selection options with task queues. When the user clicks or moves the mouse to the task selection option of the task queue, the server displays a three-level menu with task selection options for executing the task.
In the project fault display method, different properties of projects, task queues and execution tasks are respectively displayed in the multi-stage task menu, so that menu bars in the system are greatly reduced, and an interface becomes simple and easy to operate. And different display conditions can be designed on the display page to meet the requirements of users.
In one embodiment, as shown in fig. 4, the fault determination result is generated according to the current execution duration and the estimated execution duration, and the method includes the following steps:
and step 402, generating a time length comparison result by comparing the current execution time length and the estimated execution time length.
The server 104 generates a time length comparison result by comparing the current execution time length and the estimated execution time length. The time length comparison result can be the time length comparison result of the execution task or the time length comparison result of the task queue. When the time length comparison result is a time length comparison result of the task queue, the current execution time length of the task queue can be a statistical value of the current execution time lengths of all execution tasks in the task queue; the estimated execution time length of the task queue may be a statistical value of estimated execution time lengths of all execution tasks under the task queue.
Specifically, the server 104 may calculate a time difference between the current execution time and the estimated execution time, and calculate a difference ratio between the time difference and the estimated execution time. And then, the server generates a duration comparison result according to the magnitude of the difference value ratio. In general, the larger the difference ratio, the greater the probability of failure of the executing task, and the two are positively correlated. For example, the current execution time length of the execution task is 10s, the estimated execution time length is 20s, the difference value of the time length calculated by the server 104 is 10s, the difference value ratio of the time length difference value to the estimated execution time length is 50%, the comparison result of the time length generated by the server is that the difference value of the current execution time length of the execution task and the estimated execution time length is 10s, the difference value ratio of the time length difference value to the estimated execution time length is 50%, and the probability of occurrence of faults of the execution task is 50%.
Step 404, detecting the execution processor executing the task queue and the execution task and obtaining a detection result.
The server 104 detects the execution task queue and the execution processor executing the task and obtains the detection result. The server can generate a random message instruction, send the random message instruction to the execution processor, and the execution processor generates a random message according to the random message instruction and sends the random message to the server. The server judges whether the random message corresponds to the random message instruction. When the random message corresponds to the random message instruction, the server generates a detection result of the normal execution processor; when the random message does not correspond to the random message instruction, the server generates a detection result of the abnormality of the execution processor.
And step 406, generating a fault judgment result according to the duration comparison result and the detection result.
The server 104 generates a fault judgment result according to the time length comparison result and the detection result. The server can integrate the time length comparison result and the detection result to obtain a fault judgment result. When the fault probability value in the duration comparison result is smaller than the preset probability value and the detection result is that the execution processor is normal, the server generates a fault judgment result that the execution task runs without faults; and when the fault probability value in the duration comparison result is larger than the preset probability value and/or the detection result is abnormal to the execution processor, the server generates a fault judgment result of the operation fault of the execution task. For example, when the comparison result of the time length of the execution task is that the difference value of the current execution time length of the execution task and the estimated execution time length is 0s, the ratio of the difference value of the time length to the estimated execution time length is 0%, the probability of occurrence of the fault of the execution task is 0%, and the detection result is that the execution processor is abnormal, the fault judgment result generated by the server is that the execution task is in operation fault.
In the project fault display method, the comparison result of the current execution time length and the estimated execution time length is generated, and the execution processor for executing each execution task is detected, so that the obtained fault judgment result is more comprehensive, a user can conveniently and rapidly solve the occurrence of the fault, the rerun time of the project is saved, and the waiting time of the user is shortened.
In some embodiments, the associated display of the task selection options and the corresponding fault judgment results of the multi-level task menu includes the following steps: establishing a mapping relation between the task selection options and the fault judgment result; and displaying fault judgment results corresponding to the task selection options in the multi-stage task menu according to the mapping relation.
The server 104 establishes a mapping relationship between the task selection options and the failure determination result according to the execution task or the task queue or the project corresponding to the task selection options and the failure determination result. The original value in the mapping relation is a task selection option, and the mapping value is a fault judgment result. And the server displays fault judgment results corresponding to the task selection options in the multi-stage task menu according to the mapping relation. The server can display the task selection options and the fault judgment results in the multi-stage task menu at the same time, and can also display the fault judgment results according to the needs of users.
In another embodiment, as shown in fig. 5, after the task selection options of the multi-level task menu and the corresponding fault judgment results are displayed in an associated manner, the method further includes the following steps:
Step 502, obtaining a target task to be selectively executed through the multi-level task menu, and executing the target task.
The server 104 acquires the target task selected for execution through the multi-level task menu and executes the target task. The user can check the fault judgment results of the execution tasks, the task queues and the items displayed in the multi-level task menu one by one, and select task selection options in the multi-level task menu according to the needs. The user may click on the task selection option for selection. The server 104 may obtain the selected task selection option through the multi-level task menu, obtain the target task from the task selection option, and control the execution processor to execute the target task.
And step 504, when the execution completion of the target task is detected, acquiring a fault message and an execution message of the target task.
When the server 104 detects that the execution of the target task is completed, the server 104 acquires a fault message and an execution message of the target task. The fault message is a message fragment corresponding to the target task extracted from the project message of the project in which the fault is detected. An execution message is a message generated when an execution processor executes a target task.
And step 506, comparing and analyzing the fault message and the execution message and generating a task execution result.
The server 104 compares and analyzes the fault message and the execution message and generates a task execution result. The server 104 identifies the content of each line of code in the failed message and the execution message and compares the identified content one to another. When the content of the target task and the target task are consistent, the server generates a task execution result of failure in execution of the target task; and when the two contents are inconsistent, the server generates a task execution result of successful target task execution.
And step 508, performing associated display on the task selection options of the target task and the task execution results.
The server 104 displays the task selection options of the target task and the task execution results in a correlated manner. The server determines a relationship between the task selection options and the task execution results, and displays the task selection options and the task execution results in a multi-level task menu according to the relationship. The server may establish a mapping relationship or a correspondence relationship between the task selection options and the task execution results, and the like.
In the project fault display method, the server judges the task execution result of the target task and obtains the task execution result, and the server carries out associated display on the task execution result and the task selection options, so that a user can quickly know the execution condition of the target task, quickly determine the reason and the purpose of independently operating the target task according to the position of the target task in a multi-stage task menu, and improve the project efficiency.
In another embodiment, the acquiring, through the multi-level task menu, a target task selected for execution, and executing the target task, includes: acquiring selected task selection options through the multi-stage task menu; analyzing the selected task selection options to obtain target tasks; starting an execution processor corresponding to a task execution link associated with the selected task selection option; and controlling the execution processor to execute the target task.
The server 104 obtains the selected task selection options through the multi-level task menu, and the server not only analyzes the target task from the selected task selection options, but also obtains the associated task execution links according to the task selection options. The server may obtain execution parameters and the like required for executing the target task from the task execution link. The server starts an execution processor corresponding to the task execution link and controls the execution processor to execute the target task according to the execution parameters.
When the parsed target task can be independently executed, the task execution link is a link that only starts an execution processor that executes the target task. When the target task is not independently executable, there is a preceding or following associated task, the task execution link is a link that initiates the execution processor of the target task and the associated task.
In the project fault display method, the related task execution links are obtained according to the selected task selection options, and the target task and the related task are selectively executed according to the task execution links, so that the occurrence of the situation that the target task fails to be executed again due to lack of knowledge of a user on the target task is reduced.
In some embodiments, the method further comprises the steps of: acquiring a task process query instruction; extracting a task to be queried from the task query instruction; acquiring the current execution progress of the task to be queried; and displaying the current execution progress in the multi-stage task menu.
The server 104 may obtain the task process query instruction. The task process query instruction refers to a command for querying a task to be queried in a multi-level task menu. The server can acquire a task process query instruction sent by the terminal. The terminal 102 may obtain voice information or text information input by the user, and identify a task process query instruction according to the voice information or text information. The terminal 102 may also obtain a task process query instruction according to a click action performed by the user on the terminal 102.
The server 104 extracts the task to be queried from the task query instruction, and obtains the current execution progress of the task to be queried from the execution processor. The current execution schedule may include whether the task to be queried has been executed, the progress of the execution, the waiting duration, etc. The server determines the position of the task to be queried in the multi-stage task menu, and displays the current execution progress at the position corresponding to the multi-stage task menu. The above steps may be performed before detecting the execution failure of the item, or may be performed after executing the target task.
In the project fault display method, a user can input the task to be queried at any time, and know the progress of the task to be queried so as to adjust the project in time.
It should be understood that, although the steps in the flowcharts of fig. 2-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or steps.
In one embodiment, as shown in fig. 6, there is provided an item fault display apparatus including: a fault detection acquisition module 602, an execution duration acquisition module 604, a result option generation module 606, and an associated display module 608, wherein:
The fault detection obtaining module 602 is configured to obtain a task queue of an item and an execution task in the task queue when an execution fault of the item is detected.
The execution duration obtaining module 604 is configured to obtain a current execution duration and an estimated execution duration of each of the execution tasks.
The result option generating module 606 is configured to generate a fault judgment result according to the current execution duration and the estimated execution duration, generate a task selection option according to the item, the task queue and the execution task, and generate a multi-level task menu according to the task selection option.
And the association display module 608 is configured to perform association display on the task selection options of the multi-level task menu and the corresponding fault judgment results.
In another embodiment, the menu generating module 608 includes a link and identification obtaining unit, a link and option setting unit, a node determining unit, and a menu arranging unit, wherein:
and the link and identification acquisition unit is used for acquiring the item, the task queue and the task execution link and menu level identification of the execution task.
And the link and option setting unit is used for carrying out association setting on the task execution link and the task selection option.
And the node determining unit is used for identifying hierarchical nodes for confirming the multi-level task menu according to the menu hierarchy.
And the menu arrangement unit is used for arranging the task selection options based on the grading nodes to obtain a multi-grade task menu.
In another embodiment, the judgment result generation module 606 includes a duration comparison unit, a processor detection unit, and a judgment result generation unit, where:
and the duration comparison unit is used for generating a duration comparison result by comparing the current execution duration with the estimated execution duration.
And the processor detection unit is used for detecting the execution processor executing the task queue and the execution task and obtaining a detection result.
And the judging result generating unit is used for generating a fault judging result according to the time length comparison result and the detection result.
In some embodiments, the association display module 610 includes a map creation unit and an option failure display unit, wherein:
and the mapping establishing unit is used for establishing a mapping relation between the task selection options and the fault judging result.
And the option fault display unit is used for displaying fault judgment results corresponding to the task selection options in the multi-stage task menu according to the mapping relation.
In another embodiment, the apparatus further includes a target task execution module, a message acquisition module, a message comparison analysis module, and an option execution display module, wherein:
and the target task execution module is used for acquiring the target task selected for execution through the multi-stage task menu and executing the target task.
And the message acquisition module is used for acquiring a fault message and an execution message of the target task when the execution completion of the target task is detected.
And the message comparison and analysis module is used for comparing and analyzing the fault message and the execution message and generating a task execution result.
And the option execution display module is used for carrying out associated display on the task selection option of the target task and the task execution result.
In some embodiments, the target task execution module includes an option acquisition unit, a task parsing unit, a processor starting unit, and a task execution unit, wherein:
and the option acquisition unit is used for acquiring the selected task selection option through the multi-stage task menu.
And the task analysis unit is used for analyzing the selected task selection options to obtain target tasks.
And the processor starting unit is used for starting an execution processor corresponding to the task execution link associated with the selected task selection option.
And the task execution unit is used for controlling the execution processor to execute the target task.
In some embodiments, the apparatus further comprises a query instruction acquisition module, a task to be queried extraction module, an execution progress acquisition module, and an execution progress display module, wherein:
and the query instruction acquisition module is used for acquiring the task process query instruction.
And the task to be queried extracting module is used for extracting the task to be queried from the task query instruction.
And the execution progress acquisition module is used for acquiring the current execution progress of the task to be queried.
And the execution progress display module is used for displaying the current execution progress in the multi-stage task menu.
For specific limitations of the item fault display device, reference may be made to the above limitation of the item fault display method, and no further description is given here. The respective modules in the above-described item failure display apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is a task database and is used for storing task execution data, such as a task queue corresponding to an item and execution tasks, and also storing menu level identifiers and task execution links of each execution task, which are set up according to the subordinate relations among the three. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a method of item fault display.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of:
when an execution failure of an item is detected, acquiring a task queue of the item and an execution task in the task queue;
acquiring the current execution time length and the estimated execution time length of each execution task;
generating a fault judgment result according to the current execution time length and the estimated execution time length, generating a task selection option according to the item, the task queue and the execution task, and generating a multi-level task menu according to the task selection option;
and carrying out associated display on the task selection options of the multi-stage task menu and the corresponding fault judgment results.
In one embodiment, the processor, when executing the computer program, performs the step of generating a multi-level task menu according to the task selection options, is further configured to: acquiring the item, the task queue, the task execution link for executing the task and a menu level identifier; setting the task execution link in association with the task selection option; confirming hierarchical nodes of a multi-level task menu according to the menu hierarchy identification; and arranging the task selection options based on the grading nodes to obtain a multi-stage task menu.
In one embodiment, when the processor executes the computer program to implement the step of generating the fault determination result according to the current execution duration and the estimated execution duration, the method is further used for: generating a time length comparison result by comparing the current execution time length with the estimated execution time length; detecting an execution processor executing the task queue and the execution task and obtaining a detection result; and generating a fault judgment result according to the duration comparison result and the detection result.
In one embodiment, when the processor executes the computer program to implement the step of performing the associated display of the task selection options and the corresponding fault determination results of the multi-level task menu, the method is further used for: establishing a mapping relation between the task selection options and the fault judgment result; and displaying fault judgment results corresponding to the task selection options in the multi-stage task menu according to the mapping relation.
In one embodiment, after implementing the step of performing the associated display of the task selection options and the corresponding failure determination results of the multi-level task menu when the processor executes the computer program, the method is further used for: acquiring a target task to be selectively executed through the multi-stage task menu, and executing the target task; when the execution completion of the target task is detected, acquiring a fault message and an execution message of the target task; comparing and analyzing the fault message and the execution message and generating a task execution result; and carrying out associated display on the task selection options of the target task and the task execution results.
In one embodiment, the processor when executing the computer program is configured to obtain the target task selected for execution through the multi-level task menu, and when executing the step of the target task, the processor is further configured to: acquiring selected task selection options through the multi-stage task menu; analyzing the selected task selection options to obtain target tasks; starting an execution processor corresponding to a task execution link associated with the selected task selection option; and controlling the execution processor to execute the target task.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a task process query instruction; extracting a task to be queried from the task query instruction; acquiring the current execution progress of the task to be queried; and displaying the current execution progress in the multi-stage task menu.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
when an execution failure of an item is detected, acquiring a task queue of the item and an execution task in the task queue;
Acquiring the current execution time length and the estimated execution time length of each execution task;
generating a fault judgment result according to the current execution time length and the estimated execution time length, generating a task selection option according to the item, the task queue and the execution task, and generating a multi-level task menu according to the task selection option;
and carrying out associated display on the task selection options of the multi-stage task menu and the corresponding fault judgment results.
In one embodiment, the computer program when executed by the processor further performs the step of generating a multi-level task menu from the task selection options to: acquiring the item, the task queue, the task execution link for executing the task and a menu level identifier; setting the task execution link in association with the task selection option; confirming hierarchical nodes of a multi-level task menu according to the menu hierarchy identification; and arranging the task selection options based on the grading nodes to obtain a multi-stage task menu.
In one embodiment, the computer program when executed by the processor is further configured to, when executed by the processor, perform the step of generating a failure determination result according to the current execution duration and the estimated execution duration: generating a time length comparison result by comparing the current execution time length with the estimated execution time length; detecting an execution processor executing the task queue and the execution task and obtaining a detection result; and generating a fault judgment result according to the duration comparison result and the detection result.
In one embodiment, the step of performing the associated display of the task selection options and the corresponding failure determination results of the multi-level task menu when the computer program is executed by the processor is further configured to: establishing a mapping relation between the task selection options and the fault judgment result; and displaying fault judgment results corresponding to the task selection options in the multi-stage task menu according to the mapping relation.
In one embodiment, the step of performing the associated display of the task selection options and the corresponding failure determination results of the multi-level task menu when the computer program is executed by the processor is further performed by: acquiring a target task to be selectively executed through the multi-stage task menu, and executing the target task; when the execution completion of the target task is detected, acquiring a fault message and an execution message of the target task; comparing and analyzing the fault message and the execution message and generating a task execution result; and carrying out associated display on the task selection options of the target task and the task execution results.
In one embodiment, the computer program when executed by the processor implements a target task selected for execution through the multi-level task menu, and the step of executing the target task is further configured to: acquiring selected task selection options through the multi-stage task menu; analyzing the selected task selection options to obtain target tasks; starting an execution processor corresponding to a task execution link associated with the selected task selection option; and controlling the execution processor to execute the target task.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a task process query instruction; extracting a task to be queried from the task query instruction; acquiring the current execution progress of the task to be queried; and displaying the current execution progress in the multi-stage task menu.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of item fault display, the method comprising:
when an execution failure of an item is detected, acquiring a task queue of the item and an execution task in the task queue;
acquiring the current execution time length and the estimated execution time length of each execution task;
generating a time length comparison result by comparing the current execution time length with the estimated execution time length;
Detecting an execution processor executing the task queue and the execution task and obtaining a detection result;
generating a fault judgment result according to the duration comparison result and the detection result;
generating a task selection option according to the item, the task queue and the execution task, and generating a multi-level task menu according to the task selection option;
and carrying out associated display on the task selection options of the multi-stage task menu and the corresponding fault judgment results.
2. The method of claim 1, wherein generating a multi-level task menu from the task selection options comprises:
acquiring the item, the task queue, the task execution link for executing the task and a menu level identifier;
setting the task execution link in association with the task selection option;
confirming hierarchical nodes of a multi-level task menu according to the menu hierarchy identification;
and arranging the task selection options based on the grading nodes to obtain a multi-stage task menu.
3. The method of claim 1, wherein the displaying the task selection options of the multi-level task menu and the corresponding failure determination results in association comprises:
Establishing a mapping relation between the task selection options and the fault judgment result;
and displaying fault judgment results corresponding to the task selection options in the multi-stage task menu according to the mapping relation.
4. The method according to claim 1, wherein after the task selection options of the multi-level task menu and the corresponding failure determination results are displayed in association, the method includes:
acquiring a target task to be selectively executed through the multi-stage task menu, and executing the target task;
when the execution completion of the target task is detected, acquiring a fault message and an execution message of the target task;
comparing and analyzing the fault message and the execution message and generating a task execution result;
and carrying out associated display on the task selection options of the target task and the task execution results.
5. The method of claim 4, wherein the obtaining, through the multi-level task menu, a target task to be selectively performed, and performing the target task, comprises:
acquiring selected task selection options through the multi-stage task menu;
analyzing the selected task selection options to obtain target tasks;
Starting an execution processor corresponding to a task execution link associated with the selected task selection option;
and controlling the execution processor to execute the target task.
6. The method according to claim 1, wherein the method further comprises:
acquiring a task process query instruction;
extracting a task to be queried from the task query instruction;
acquiring the current execution progress of the task to be queried;
and displaying the current execution progress in the multi-stage task menu.
7. An item fault display device, the device comprising:
the system comprises a fault detection acquisition module, a task queue and a task management module, wherein the fault detection acquisition module is used for acquiring a task queue of an item and an execution task in the task queue when an execution fault of the item is detected;
the execution time length acquisition module is used for acquiring the current execution time length and the estimated execution time length of each execution task;
the result option generation module is used for generating a duration comparison result by comparing the current execution duration with the estimated execution duration; detecting an execution processor executing the task queue and the execution task and obtaining a detection result; generating a fault judgment result according to the duration comparison result and the detection result; the task selection options are generated according to the items, the task queues and the execution tasks, and a multi-level task menu is generated according to the task selection options;
And the associated display module is used for carrying out associated display on the task selection options of the multi-stage task menu and the corresponding fault judgment results.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the target task executing module is used for acquiring a target task selected to be executed through the multi-stage task menu and executing the target task;
the message acquisition module is used for acquiring a fault message and an execution message of the target task when the execution completion of the target task is detected;
the message comparison and analysis module is used for comparing and analyzing the fault message and the execution message and generating a task execution result;
and the option execution display module is used for carrying out associated display on the task selection option of the target task and the task execution result.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN201910460612.1A 2019-05-30 2019-05-30 Project fault display method, device, computer equipment and storage medium Active CN110334905B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910460612.1A CN110334905B (en) 2019-05-30 2019-05-30 Project fault display method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910460612.1A CN110334905B (en) 2019-05-30 2019-05-30 Project fault display method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110334905A CN110334905A (en) 2019-10-15
CN110334905B true CN110334905B (en) 2023-06-23

Family

ID=68140610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910460612.1A Active CN110334905B (en) 2019-05-30 2019-05-30 Project fault display method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110334905B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198037A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for managing monitor video
CN101593137A (en) * 2008-05-28 2009-12-02 英业达股份有限公司 Error-detecting method
CN106293975A (en) * 2015-05-26 2017-01-04 联想(北京)有限公司 Information processing method, information processor and information processing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101198037A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for managing monitor video
CN101593137A (en) * 2008-05-28 2009-12-02 英业达股份有限公司 Error-detecting method
CN106293975A (en) * 2015-05-26 2017-01-04 联想(北京)有限公司 Information processing method, information processor and information processing system

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110209652B (en) Data table migration method, device, computer equipment and storage medium
CN110427252B (en) Task scheduling method, device and storage medium based on task dependency relationship
CN108848142B (en) Message pushing method and device, computer equipment and storage medium
WO2019095580A1 (en) Test method and apparatus, computer device, and readable storage medium
CN110738389A (en) Workflow processing method and device, computer equipment and storage medium
CN111176767B (en) Table data processing method, apparatus, computer device and storage medium
CN110109750B (en) Virtual resource acquisition method, device, computer equipment and storage medium
CN109389299B (en) Workflow process deployment method, workflow process deployment device, computer equipment and storage medium
CN111190753A (en) Distributed task processing method and device, storage medium and computer equipment
CN112631751A (en) Task scheduling method and device, computer equipment and storage medium
CN113918437A (en) User behavior data analysis method and device, computer equipment and storage medium
US20100023799A1 (en) Determining correctness of job plans in a stream processing application
WO2019062020A1 (en) Asynchronous task unified processing method and apparatus, and storage medium
CN110334905B (en) Project fault display method, device, computer equipment and storage medium
CN116661936A (en) Page data processing method and device, computer equipment and storage medium
CN114327673B (en) Task starting method and device, electronic equipment and storage medium
CN116126719A (en) Interface testing method and device, electronic equipment and storage medium
CN112818204B (en) Service processing method, device, equipment and storage medium
CN114186976A (en) Workflow transfer method and device, computer equipment and storage medium
CN114840190A (en) Code generation method and device, computer equipment and storage medium
CN110928672B (en) Task arranging method, device and equipment and storage medium
CN110245009B (en) Periodic task allocation method, device, computer equipment and storage medium
CN113672449A (en) Intelligent operation and maintenance abnormity monitoring method and device, computer equipment and storage medium
CN112231039A (en) Work order information statistical method and device, computer equipment and storage medium
CN110851670A (en) Underground cable fault repairing method and device

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