Task management method, task management system, electronic device, storage medium
By analyzing the historical and current execution data of tasks and performing management based on the analysis results, the problems of low task management efficiency and high labor costs in the existing technology are solved, and timely monitoring and exception handling of tasks are realized.
Patent Information
- Application Number
- CN201910802712.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-08-28
AI Technical Summary
Existing task management methods are difficult to handle abnormal tasks in a timely manner, and manual methods lead to high labor costs and cannot effectively manage tasks.
By obtaining the historical execution data and current execution data of the target task, offline analysis and real-time analysis are performed, and task management is performed based on the analysis results, including timeliness management and determination of estimated completion time. If timeout occurs, alarm information is generated.
It achieves overall grasp of tasks and timely detection of abnormalities, improves the efficiency and accuracy of task management, and reduces the need for manual intervention.
Smart Images

Figure CN112445583B
Abstract
Description
Background Art
[0002] With the development of e-commerce, mobile Internet, Internet of Things, and artificial intelligence, various enterprises have begun to build their own data systems and accumulate data. In order to promote the development of enterprises, it is indispensable to analyze and mine big data and understand the operating status of enterprises through data. In particular, by extracting valuable information from large and complex data for analysis, decision-making and operation, and completing the calculation and algorithm mining of data business within the specified time, it is ensured that users can see the latest operating data at critical time points. Therefore, it is very important to effectively manage data tasks, such as monitoring task progress or analyzing task status. Existing task management methods usually adopt manual methods. However, due to the large amount of data in data tasks and the mutual dependence between data tasks, tasks cannot be processed in time when abnormalities occur, and the manual method has high labor costs; therefore, how to effectively manage tasks is a problem that needs to be solved in the existing technology.
[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0004] The present disclosure provides a task management method, a task management system, an electronic device and a computer-readable storage medium, thereby overcoming the problem that it is difficult to handle abnormal tasks in a timely manner in existing task management methods, at least to a certain extent.
[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0006] According to a first aspect of the present disclosure, a task management method is provided, comprising: obtaining historical execution data of a target task in at least one historical execution process, and current execution data in a current execution process; performing offline analysis on the historical execution data to obtain an offline analysis result on the timeliness of the target task; performing real-time analysis on the current execution data to obtain a real-time analysis result on the timeliness of the target task; and managing the target task based on the offline analysis result and the real-time analysis result.
[0007] In an exemplary embodiment of the present disclosure, the offline analysis of the historical execution data to obtain an offline analysis result on the timeliness of the target task includes: performing an offline analysis on the historical execution data to obtain an analysis result on the timeliness trend and timeliness issues of the target task; the real-time analysis of the current execution data to obtain a real-time analysis result on the timeliness of the target task includes: real-time monitoring of the current execution data to obtain a real-time analysis result on the timeliness of the target task; the management of the target task based on the offline analysis result and the real-time analysis result includes: managing and improving the timeliness of the target task based on the offline analysis result and the real-time analysis result.
[0008] In an exemplary embodiment of the present disclosure, the acquisition of historical execution data of the target task in at least one historical execution process, as well as current execution data in the current execution process, includes: receiving the historical execution data of the target task regularly pushed by a data platform, and the current execution data of the target task pushed in real time by the data platform.
[0009] In an exemplary embodiment of the present disclosure, the offline analysis result includes trend data of the target task, and the real-time analysis result includes timeliness data of the target task; managing the target task based on the offline analysis result and the real-time analysis result includes: determining the estimated completion time of the target task in the current execution process based on the trend data and the timeliness data to manage the target task.
[0010] In an exemplary embodiment of the present disclosure, after determining the estimated completion time of the target task in the current execution process, the method further includes: generating an alarm message if the estimated completion time is later than a predetermined time.
[0011] In an exemplary embodiment of the present disclosure, the method further includes: calling the configuration data of the target task to configure an offline analysis module and a real-time analysis module, wherein the offline analysis module is used to perform the offline analysis and the real-time analysis module is used to perform the real-time analysis.
[0012] According to one aspect of the present disclosure, there is provided a task management system, including: a data docking module, used to obtain historical execution data of a target task in at least one historical execution process, and current execution data in a current execution process; an offline analysis module, used to perform offline analysis on the historical execution data, and obtain offline analysis results on the timeliness of the target task; a real-time analysis module, used to perform real-time analysis on the current execution data, and obtain real-time analysis results on the timeliness of the target task; and a data service module, used to manage the target task based on the offline analysis results and the real-time analysis results.
[0013] In an exemplary embodiment of the present disclosure, the system further includes: a configuration management module, configured to call the configuration data of the target task to configure the offline analysis module and the real-time analysis module.
[0014] In an exemplary embodiment of the present disclosure, the data docking module includes: a first receiving unit, used to receive the historical execution data of the target task pushed periodically by the data platform; and a second receiving unit, used to receive the current execution data of the target task pushed in real time by the data platform.
[0015] In an exemplary embodiment of the present disclosure, the data docking module also includes: a first storage unit, used to store the historical execution data in a first storage area; a second storage unit, used to store the current execution data in a second storage area; wherein the offline analysis module performs offline analysis on the historical execution data in the first storage area, and the real-time analysis module performs real-time analysis on the current execution data in the second storage area.
[0016] In an exemplary embodiment of the present disclosure, the first storage area is a data warehouse, and the second storage area is a relational database.
[0017] In an exemplary embodiment of the present disclosure, the data service module includes a plurality of service components, each providing a different type of management service for the target task.
[0018] In an exemplary embodiment of the present disclosure, the multiple service components include: a report service component, a task alarm component, and a delay report component.
[0019] In an exemplary embodiment of the present disclosure, the real-time analysis module includes: a real-time calculation unit, used to perform real-time calculation on the current execution data; a status monitoring unit, used to determine the real-time status of the target task according to the result of the real-time calculation; and a metadata query unit, used to provide task status query service.
[0020] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned methods by executing the executable instructions.
[0021] According to a fifth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the methods described above is implemented.
[0022] The exemplary embodiments of the present disclosure have the following beneficial effects:
[0023] By acquiring the historical execution data of the target task in at least one historical execution process and the current execution data in the current execution process, offline analysis is performed on the historical execution data to obtain offline analysis results on the timeliness of the target task, and real-time analysis is performed on the current execution data to obtain real-time analysis results on the timeliness of the target task, and the target task is managed based on the offline analysis results and the real-time analysis results. On the one hand, by performing offline analysis on the historical execution data, the trend of the execution data of the target task can be obtained to determine the historical execution status of the target task, so as to analyze and manage the target task within a period of time; on the other hand, by performing real-time analysis on the current execution data, real-time monitoring of the target task can be achieved, real-time analysis results on the target task can be obtained, and the current status of the target task can be determined, so as to timely discover abnormalities in the operation of the task and to have a global grasp of the target task.
[0024] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0026] Figure 1 A flowchart schematically illustrates a task management method in this exemplary embodiment;
[0027] Figure 2 A flowchart of a real-time alarm in this exemplary embodiment is schematically shown;
[0028] Figure 3 A module diagram schematically illustrates a task management system in this exemplary embodiment;
[0029] Figure 4 A module diagram schematically illustrates another task management system in this exemplary embodiment;
[0030] Figure 5 Schematically shows a flow chart of the date component in this exemplary embodiment;
[0031] Figure 6 An electronic device for implementing the above method in this exemplary embodiment is schematically shown;
[0032] Figure 7 A computer-readable storage medium for implementing the above method in this exemplary embodiment is schematically shown. DETAILED DESCRIPTION
[0033] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0034] The exemplary embodiment of the present disclosure first provides a task management method, and the application scenario of the method of this embodiment can be: monitoring the current data task status required to implement a certain data function, or analyzing its historical data tasks, etc. This exemplary embodiment can monitor and analyze the timeliness of data products through a set of standard architectures.
[0035] The following is combined with Figure 1 This exemplary embodiment is further described as follows. Figure 1 As shown, the task management method may include the following steps S110 to S140:
[0036] Step S110, obtaining historical execution data of the target task in at least one historical execution process, and current execution data in the current execution process.
[0037] Among them, the target task can refer to a task that needs to be monitored or analyzed, such as a traffic analysis function, a sales analysis function, and an order analysis function. Multiple target tasks can jointly complete a certain function, such as a traffic analysis function, which can include browsing data analysis, order data analysis, comment data analysis, and the like, and these tasks can all be considered as target tasks. In other words, the above function can be regarded as a menu, and the task required to enable the normal operation of the menu content is the target task. Each target task can include the data required to complete the task. In this exemplary embodiment, the data required for the task can be determined by regularly collecting user data. The execution process can be the operation process of the above target task, and the execution data can be the operation status of the target task, such as the progress, process, speed, operation time, completion percentage, etc. of the target task, then the historical execution data is the operation status of the historical task, and the current execution data is the operation status of the current task. The historical execution data of the target task in at least one historical execution process can be considered as the historical execution data in the historical execution process of a preset time period, such as the execution data of a daily task, the execution data of a weekly task, or the execution data of a monthly task, etc. In this exemplary embodiment, the target task and its execution data can be obtained from a specific database, and the historical execution data and current execution data of the target task can be obtained from different data platforms. For example, the historical execution data can be obtained from a data warehouse that enters data at a regular interval, and the current execution data can be obtained from a real-time data platform such as big data, and so on.
[0038] Step S120 , performing offline analysis on the historical execution data to obtain offline analysis results on the timeliness of the target task.
[0039] This exemplary embodiment can use the technology of online script editing to complete the calculation of data in the target task, and its offline analysis of historical execution data can set different cycles, such as analyzing the historical execution data of the target task once a day, a week, or a month. In this exemplary embodiment, the historical execution data can be extracted from the data warehouse and analyzed. Considering that the distribution of the original data is relatively complex and the data volume is large, in order to collect and organize the data of different data sources associated with the target task, so as to facilitate subsequent calculations and improve the pertinence of the execution data, the historical execution data can be integrated and processed through a specific model, such as integrating the original data of the historical execution data of the target task into a basic data model through a specific data model, an algorithm model, and a data push model, and then integrating it into a general data model through algorithms and business logic, and finally integrating it into a time-effective application model, etc. This exemplary embodiment can integrate the valid data into the same data table according to different data tables in the database, perform calculation analysis, and improve the pertinence of the data. The offline analysis results of timeliness can be the analysis results of the timeliness trend and timeliness problems of the target task. The timeliness trend can reflect the running status of the target task over a period of time, such as the trend of the running time and running speed of the target task within a week. The timeliness problem can reflect the problems in the running process of the target task, such as abnormal running progress, reduced running speed, etc.
[0040] Step S130, performing real-time analysis on the current execution data to obtain a real-time analysis result on the timeliness of the target task.
[0041] Among them, the real-time analysis result can be the detection result of the current execution data, which can be the running status of the target task or whether an abnormality occurs, etc. For example, if the target task is browsing data analysis, real-time analysis of the target task can monitor the process, progress or speed of the task in real time. When an abnormal situation occurs in the data calculation, such as speed reduction or progress suspension, the real-time analysis result of the task can be obtained. The monitoring personnel can view and optimize the target task in time according to the real-time analysis result, such as troubleshooting factors affecting the task speed, adjusting the task progress or resetting, etc. In this exemplary embodiment, real-time analysis of the current execution data can be considered as real-time monitoring of the current execution data to grasp the running status of the current target task in real time.
[0042] Step S140: managing the target task based on the offline analysis result and the real-time analysis result.
[0043] Among them, managing the target task may include visual analysis, real-time monitoring, real-time alarm or access to other date controls, etc., of the execution data according to the offline analysis results and the real-time analysis results. For example, a chart (such as a time-progress curve) is used to reflect the state of the execution process of the target task, etc. Visual analysis may include two aspects: task fulfillment and task analysis. It may analyze the execution data of the target task from different dimensions such as menu granularity, task granularity or data product granularity, wherein the menu granularity may reflect the number of target tasks under the function, the more target tasks there are, the larger the menu granularity is, the task granularity may reflect the number of data in the target task, the larger the amount of data is, the larger the task granularity is, etc. In this exemplary embodiment, the timeliness of the target task may be managed and improved through a variety of components according to the offline analysis results and the real-time analysis results, so that the R&D personnel can find the problems of the target task in time, and the data product can obtain the analysis results of the target task by calling the service component, so as to intelligently open the analysis results of the target task.
[0044] Based on the above description, in this exemplary embodiment, by acquiring the historical execution data of the target task in at least one historical execution process and the current execution data in the current execution process, the historical execution data is analyzed offline to obtain the offline analysis result on the timeliness of the target task, the current execution data is analyzed in real time to obtain the real-time analysis result on the timeliness of the target task, and the target task is managed based on the offline analysis result and the real-time analysis result. On the one hand, by performing offline analysis on the historical execution data, the trend of the execution data on the target task can be obtained to determine the historical execution status of the target task, so as to analyze and manage the target task within a period of time; on the other hand, by performing real-time analysis on the current execution data, real-time monitoring of the target task can be achieved, the real-time analysis result on the target task can be obtained, and the current status of the target task can be determined, so as to timely discover the abnormality of the task operation and be able to have a global grasp of the target task.
[0045] In an exemplary embodiment, step S110 may include:
[0046] Receive the historical execution data of the target task pushed regularly by the data platform, as well as the current execution data of the target task pushed in real time by the data platform.
[0047] Among them, the data platform refers to a platform for storing execution data, which can be a data warehouse or other relational databases, such as MySQL, HBase, Neo4j, Redis and other databases, etc., and the present disclosure does not make specific limitations on this. In this exemplary embodiment, real-time push can mean that when the data platform obtains the latest data each time, it can push the latest execution data obtained. It can be the state of real-time push of execution data when the R&D personnel add, delete, modify and check the data. Regular push can be based on pushing historical data in a time period, and its time period can be set as needed. For example, when the amount of data is large and offline calculations need to be performed in time, one day can be set as a time period, or if you want to analyze the trend of execution data in a recent period of time, you can also set a week as a time period, and so on.
[0048] In an exemplary embodiment, the offline analysis result may include trend data of the target task, and the real-time analysis result may include timeliness data of the target task;
[0049] Further, step S140 may include:
[0050] Determine the expected completion time of the target task in the current execution process based on trend data and timeliness data to manage the target task.
[0051] Among them, the trend data can reflect the running trend of the target task within the preset time. For example, it takes 3 hours to run the target task A on the first day, 2.5 hours on the second day, and 2.5 hours on the third day. According to these data, it can be determined that the trend of the completion time of the target task A within these three days is relatively stable. The timeliness data can reflect the state of the target task during the current task execution process, such as the time taken to run the target task A, the speed per second, the start time or the end time, etc. In this exemplary embodiment, the preset completion time of the target task in the current execution process can be determined according to the trend data and the timeliness data. For example, the trend data of the target task A includes that it takes 3 hours to complete the target task A. Then, during the execution of the current target task A, it can be predicted how long it will take to complete the target task A according to the current time.
[0052] In this exemplary embodiment, the target task may include multiple subtasks, for example, the browsing data analysis task may include a data collection task, a data calculation task, a data analysis task, and the like. The target task can be completed only after the multiple subtasks are completed. This exemplary embodiment can determine the preset completion time of the target task based on the historical operation data of the multiple subtasks. For example, the historical execution data of the browsing data analysis task includes that after the data collection task is performed for 0.5 hours, the data calculation task starts to run and calculates the collected data. When the data calculation task is performed for 1 hour, the data analysis task starts to run. Through the running state time of each subtask, the historical time-progress curve of the task operation can be determined. According to the current execution data in the current browsing data analysis task, a real-time time-progress curve can also be determined. By comparing and analyzing with the historical time-progress curve, the completion time of each subtask and the preset completion time of the target task can be predicted. This exemplary embodiment can predict the current execution data through the historical execution data, which is convenient for analyzing whether the operation of the current execution data is abnormal.
[0053] In an exemplary embodiment, after determining the estimated completion time of the target task in the current execution process, the task management method may further include:
[0054] If the estimated completion time is later than the scheduled time, an alarm message is generated.
[0055] In order to enable R&D personnel to obtain abnormal situations in the process of task in time and deal with them in time, an alarm mechanism can be set. If the preset completion time of the target task is later than the preset time, an alarm message will be sent to the R&D personnel. The preset time can be set manually as needed, for example, set to 8 o'clock every morning. If the target task has not been completed at 8 o'clock, an alarm message will be sent to the R&D personnel.
[0056] In an exemplary embodiment, managing the target tasks may include, during offline analysis, issuing a real-time alarm for unfinished target tasks. Specifically, the real-time alarm may include the following steps:
[0057] Step S201, detecting whether the current time reaches a first preset time;
[0058] Step S202, if the first preset time is reached, multiple menus are obtained;
[0059] Step S203, determining the target task under each menu according to the multiple menus;
[0060] Step S204, determining the task information of the target task;
[0061] Step S205, detecting whether the target task is completed based on the task information;
[0062] Step S206, if all target tasks have been completed, send a prompt message indicating that the target tasks have been completed;
[0063] Step S207, if there is an unfinished target task, determine the corresponding menu according to the information of the unfinished target task;
[0064] Step S208, sending a prompt message indicating that the task is not completed;
[0065] Step S209, periodically checking whether the unfinished target tasks are completed;
[0066] Step S210, if there are still unfinished target tasks, detecting whether the current time reaches a second preset time;
[0067] Step S211: if the second preset time is reached, stop detecting whether the target task is completed and end the current process.
[0068] The first preset time may be a preset time for first detecting whether the target task is completed. If the current time reaches the first preset time, multiple menus are obtained, and the information of the target task under each menu is determined. The information may include the operation information of the target task, such as whether an abnormality occurs, whether the operation is completed, the start time or the end time, etc. Whether the target task is completed can be determined based on the information of the target task. If the current time has not reached the first preset time, the target task can continue to run without the current alarm process; if the first preset time is reached, step S203 is executed to obtain multiple menus, so as to detect the operation status of the target task. The second preset time can be the time used to trigger the end of the current process. Taking into account that if some target tasks are abnormal and cannot be completed, the alarm prompt information will be triggered continuously, a second preset time mechanism can be set. If the current time has not reached the second preset time, step S205 is continued to be executed to periodically detect whether the target task is completed; if the current time reaches the second preset time and there are still unfinished target tasks, the step of detecting whether the target task is completed is not performed, and the current process is directly ended. For example, the first preset time can be set to 8 o'clock in the morning and the second preset time can be set to 1 o'clock in the afternoon. After 8 o'clock in the morning, it is detected whether all target tasks have been completed. If not, the unfinished target tasks are counted, and a cycle is set to detect whether the unfinished target tasks are completed every ten minutes. If there are still unfinished target tasks at 1 o'clock in the afternoon, the current process is ended.
[0069] In an exemplary embodiment, the task management method may further include:
[0070] The configuration data of the target task is called to configure an offline analysis module and a real-time analysis module. The offline analysis module is used for offline analysis, and the real-time analysis module is used for real-time analysis.
[0071] Among them, the configuration data can be configuration information that can reflect the relationship between the target task and other tasks or menus (functions). For example, when the browsing data analysis menu is opened, it is necessary to complete the data collection task, data calculation task, and data analysis task. Then the data collection task, data calculation task, and data analysis task can be regarded as configuration data about browsing the data analysis menu. The relationship between the data collection task, data calculation task, and data analysis task can also be regarded as configuration data. According to the configuration data, the configuration information of each target task during the analysis can be provided to the offline analysis module and the real-time analysis module so that they can perform targeted analysis. Among them, the offline analysis module is used to perform offline analysis of the target task, and the real-time analysis module is used to perform real-time analysis of the target task.
[0072] The exemplary embodiments of the present disclosure also provide a task management system. Figure 3 , the system 300 may include:
[0073] The data connection module 310 is used to obtain historical execution data of the target task in at least one historical execution process, and current execution data in the current execution process;
[0074] An offline analysis module 320 is used to perform offline analysis on historical execution data to obtain offline analysis results on the timeliness of target tasks;
[0075] A real-time analysis module 330 is used to perform real-time analysis on the current execution data to obtain real-time analysis results on the timeliness of the target task;
[0076] The data service module 340 is used to manage the target task based on the offline analysis results and the real-time analysis results.
[0077] The data docking module 310 may be used to execute the above step S110 , the offline analysis module 320 may be used to execute step S120 , the real-time analysis module 330 may be used to execute step S130 , and the data service module 340 may be used to execute step S140 .
[0078] Figure 4 A schematic diagram of another task management system in this exemplary embodiment is shown. In an exemplary embodiment, the task management system may further include:
[0079] The configuration management module 350 is used to call the configuration data of the target task to configure the offline analysis module and the real-time analysis module.
[0080] The configuration management module 350 can be used to store the configuration information of the association relationship between the target task and other tasks or menus (functions) for the offline analysis module 320 and the real-time analysis module 330 to analyze the target task. All configuration information can be opened to R&D personnel in a service-oriented manner so that they can be connected to other modules or systems to perform configuration management of the target task.
[0081] In an exemplary embodiment, the data docking module 310 may further include:
[0082] A first receiving unit, configured to receive historical execution data of a target task regularly pushed by a data platform;
[0083] The second receiving unit is used to receive the current execution data of the target task pushed in real time by the data platform.
[0084] The historical execution data received by the first receiving unit is used for offline analysis in the offline analysis module, and the current execution data received by the second receiving unit is used for real-time analysis in the real-time analysis module.
[0085] In an exemplary embodiment, the data docking module 310 may further include:
[0086] A first storage unit, used for storing historical execution data into a first storage area;
[0087] A second storage unit, used for storing currently executed data into a second storage area;
[0088] Among them, the offline analysis module 320 performs offline analysis on the historical execution data in the first storage area, which may include a basic data unit 321, a general data unit 322, and an application data unit 323. In this exemplary embodiment, the original data of the historical execution data of the target task can be integrated into a basic data model through a specific data model, an algorithm model, and a data push model, and then integrated into a general data model through an algorithm and business logic, and finally integrated into a time-effective application model, etc. The offline analysis module 320 also includes an engine storage unit 324, which may include databases such as presto, mysql, hbase, elasticsearch, etc. The data in the application data unit 323 can be synchronized to the engine storage unit 324 to enable R&D personnel to query the data of the target task.
[0089] The real-time analysis module 330 performs real-time analysis on the current execution data in the second storage area.
[0090] In an exemplary embodiment, the real-time analysis module 330 may further include:
[0091] A real-time calculation unit 331, used for performing real-time calculation on the current execution data;
[0092] A state detection unit 332, used to determine the real-time state of the target task according to the result of the real-time calculation;
[0093] The metadata query unit 333 is used to provide task status query service.
[0094] Among them, the task status can be the operation information of the target task or the information of which menu the target task is located, such as the running time, running speed, estimated completion time, running process, etc., or the task under which menu the target task belongs to, etc. The research and development personnel can query the status information of the target task in time through the metadata query unit. The state detection unit can reflect the real-time status of each target task under the menu, such as the progress and speed of the current target task, and when each target task is completed, its execution data can be stored in real time in the big data platform, such as a specific cache area, hbase and other data storage platforms. The real-time computing unit can be regarded as processing the real-time status data of all target tasks to obtain the summary results of all target tasks under a certain menu, that is, the real-time computing unit can be used as a computing layer. In this exemplary embodiment, the real-time computing unit can adopt a distributed multi-threaded computing architecture to provide the real-time aggregation of the target task state to the outside in real time, in other words, it can reflect the state of the execution data of multiple target tasks in real time.
[0095] In an exemplary embodiment, the first storage area may be a data warehouse, and the second storage area may be a relational database.
[0096] Among them, the data warehouse is a structured data environment for decision support systems (DSS) and online analytical application data sources. The data warehouse can be used to store the historical execution data of target tasks obtained from the database. It has the characteristics of subject orientation, integration, stability and time-varying, which is conducive to the storage of historical execution data. A relational database is a database based on a relational model, which can be a database such as MySQL, HBase, Neo4j, Redis, etc., and the present disclosure does not make specific limitations on this.
[0097] In an exemplary embodiment, the data service module 340 may include multiple service components, which respectively provide different types of management services for target tasks.
[0098] The service components may be functional components generated according to offline analysis results and real-time analysis results, and may include components that can be used for visual analysis, real-time monitoring, real-time alarm, date control, etc. Specifically, the multiple service components may include a report service component 341, a task alarm component 342, and a delay report component 343. In this exemplary embodiment, each service component in the data service module 340 may be called by the data product 360.
[0099] Among them, the report service component 341 can reflect the execution data of the target task execution process, which can be a task fulfillment report, task fulfillment details, etc.; the task alarm component 342 can alarm the abnormal situation in the target task execution process, which can be realized in the form of sending an alarm SMS. Through the task alarm component, the R&D personnel can obtain the abnormal situation in the target task execution process in a timely manner and perform targeted optimization or maintenance, etc.; the delay report component 343 can include a report on delayed target tasks, which can reflect the execution data of certain target tasks that have been delayed, so that the R&D personnel can analyze them. In addition, the service components can also include real-time dashboards, date components, etc., among which the date component can make the operation data in the target task dynamically open.
[0100] Considering that if the target task is opened to the user before it is completed, the user may obtain empty or dirty data. In an exemplary embodiment, the date component can be used to determine which period of time the data analysis results are provided to the user accessing the menu. For example, when the user accesses the menu at 8 o'clock in the morning, if all the target tasks have been completed, the data analysis results of the previous day can be provided to the user; if there are target tasks that are not completed, the data analysis results of the previous two days can be provided to the user.
[0101] The specific process of the above date component determining the latest date on which the data analysis results of the target task can be queried is as follows: Figure 5 As shown, the following steps may be included:
[0102] Step S501, in response to the current menu being accessed;
[0103] Step S502, the latest selectable time of the current menu is stored in the cache;
[0104] Step S503, reading the latest selectable time of the current menu from the cache;
[0105] Step S504, obtaining information of the current menu;
[0106] Step S505, detecting whether the date type attribute changes periodically;
[0107] Step S506, if it is not periodically changed, then obtain the regularly unchanged date of the menu setting;
[0108] Step S507, if it is periodically changed, then obtain the period of menu setting;
[0109] Step S508, detecting whether the current time is before the first preset time;
[0110] Step S509, if it is before the first preset time, the dates of the first two cycles are calculated according to the cycle set in the menu;
[0111] Step S510, if it is not before the first preset time, reading the target task corresponding to the current menu;
[0112] Step S511, obtaining the completion status of the target task;
[0113] Step S512, if the completion status of the target task is not successfully obtained, the date of the previous cycle is calculated according to the cycle set in the menu;
[0114] Step S513, if the completion status of the target task is successfully obtained, the completion time of the target task is obtained;
[0115] Step S514, detecting whether the target tasks have been completed, if completed, executing step S514;
[0116] Step S515, if there is an unfinished target task, the dates of two cycles are calculated according to the cycle set in the menu;
[0117] Step S516, determining the latest date and start time that the current menu can be queried according to steps 503, 506, 509, 514 and 515;
[0118] Step S517, detecting whether the menu has a date control;
[0119] Step S518, if yes, the time control can be initialized;
[0120] Step S519, using the date of initialization completion to perform the first query;
[0121] Step S520, if the menu does not have a date control, then obtain the latest selectable time of the current menu and perform the first query;
[0122] Step S521, end the current process.
[0123] This exemplary embodiment can determine the release time of the analysis result of the target task based on the date component, and provide the user with intelligent release of the latest data.
[0124] The specific details of each module / unit in the above-mentioned device have been described in detail in the embodiments of the method part. The undisclosed details can be found in the embodiments of the method part, so they will not be repeated here.
[0125] Exemplary embodiments of the present disclosure also provide an electronic device capable of implementing the above method.
[0126] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0127] Refer to the following Figure 6 hereinafter, an electronic device 600 according to such an exemplary embodiment of the present disclosure is described. Figure 6 The electronic device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0128] like Figure 6 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), and a display unit 640.
[0129] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 610 can execute Figure 1 Steps S110 to S140 etc. are shown.
[0130] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 621 and / or a cache memory unit 622 , and may further include a read-only memory unit (ROM) 623 .
[0131] The storage unit 620 may also include a program / utility 624 having a set (at least one) of program modules 625, such program modules 625 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0132] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0133] The electronic device 600 may also communicate with one or more external devices 800 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 660. As shown, the network adapter 660 communicates with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0134] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiment of the present disclosure.
[0135] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium on which a program product capable of implementing the above-mentioned method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above-mentioned "Exemplary Method" section of the present specification.
[0136] refer to Figure 7As shown, a program product 700 for implementing the above method according to an exemplary embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0137] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0138] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0139] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0140] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0141] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.
[0142] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0143] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
[0144] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A task management method, characterized in that: include: Obtain historical execution data of the target task during at least one historical execution process, and current execution data during the current execution process; Performing offline analysis on the historical execution data to obtain offline analysis results on the timeliness of the target task; The offline analysis result of the timeliness includes analysis results of the timeliness trend and timeliness problems of the target task, wherein the timeliness trend is used to reflect the running status of the target task, and the timeliness problem is used to reflect the problems in the running process of the target task; Performing real-time analysis on the current execution data to obtain real-time analysis results on the timeliness of the target task; The real-time analysis result of the timeliness is the detection result of the current execution data, including the running status of the target task or whether an abnormality occurs; The target task is managed based on the offline analysis result and the real-time analysis result.
2. The method according to claim 1, characterized in that: The offline analysis of the historical execution data to obtain an offline analysis result on the timeliness of the target task includes: Performing offline analysis on the historical execution data to obtain analysis results on the timeliness trend and timeliness issues of the target task; The real-time analysis of the current execution data to obtain a real-time analysis result on the timeliness of the target task includes: Performing real-time monitoring on the current execution data to obtain real-time analysis results on the timeliness of the target task; The managing the target task based on the offline analysis result and the real-time analysis result includes: Based on the offline analysis results and the real-time analysis results, the timeliness of the target task is managed and improved.
3. The method according to claim 1, characterized in that The acquiring of historical execution data of the target task in at least one historical execution process and current execution data in the current execution process includes: Receive the historical execution data of the target task pushed regularly by the data platform, and the current execution data of the target task pushed in real time by the data platform.
4. The method according to claim 1, characterized in that: The offline analysis result includes trend data of the target task, and the real-time analysis result includes timeliness data of the target task; The managing the target task based on the offline analysis result and the real-time analysis result includes: An estimated completion time of the target task in the current execution process is determined based on the trend data and the timeliness data to manage the target task.
5. The method according to claim 4, characterized in that After determining the estimated completion time of the target task in the current execution process, the method further includes: If the estimated completion time is later than the preset time, an alarm message is generated.
6. The method according to claim 1, characterized in that The method further comprises: The configuration data of the target task is called to configure an offline analysis module and a real-time analysis module, wherein the offline analysis module is used to perform the offline analysis and the real-time analysis module is used to perform the real-time analysis.
7. A task management system, characterized in that: include: A data connection module is used to obtain historical execution data of the target task in at least one historical execution process, as well as current execution data in the current execution process; An offline analysis module, used to perform offline analysis on the historical execution data to obtain offline analysis results on the timeliness of the target task; The offline analysis result of the timeliness includes analysis results of the timeliness trend and timeliness problems of the target task, wherein the timeliness trend is used to reflect the running status of the target task, and the timeliness problem is used to reflect the problems in the running process of the target task; A real-time analysis module, used to perform real-time analysis on the current execution data to obtain a real-time analysis result on the timeliness of the target task; The real-time analysis result of the timeliness is the detection result of the current execution data, including the running status of the target task or whether an abnormality occurs; A data service module is used to manage the target task based on the offline analysis result and the real-time analysis result.
8. The system according to claim 7, characterized in that The system further comprises: The configuration management module is used to call the configuration data of the target task to configure the offline analysis module and the real-time analysis module.
9. The system according to claim 7, characterized in that The data docking module includes: A first receiving unit, configured to receive historical execution data of the target task regularly pushed by the data platform; The second receiving unit is used to receive the current execution data of the target task pushed in real time by the data platform.
10. The system according to claim 8, characterized in that The data docking module also includes: A first storage unit, used for storing the historical execution data into a first storage area; A second storage unit, used for storing the currently executed data in a second storage area; The offline analysis module performs offline analysis on the historical execution data in the first storage area, and the real-time analysis module performs real-time analysis on the current execution data in the second storage area.
11. The system according to claim 10, characterized in that The first storage area is a data warehouse, and the second storage area is a relational database.
12. The system according to claim 7, characterized in that The data service module includes multiple service components, which respectively provide different types of management services for the target tasks.
13. The system according to claim 12, characterized in that The multiple service components include: a report service component, a task alarm component, and a delay report component.
14. The system according to claim 7, characterized in that The real-time analysis module comprises: A real-time calculation unit, used for performing real-time calculation on the current execution data; A status monitoring unit, used to determine the real-time status of the target task according to the result of the real-time calculation; The metadata query unit is used to provide task status query services.
15. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 6 by executing the executable instructions.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
