Task processing methods, apparatus, electronic devices and computer-readable storage media
By utilizing artificial intelligence technology to detect and adjust task execution strategies in the fields of fintech and smart healthcare, the problem of tasks not being completed on time has been solved, achieving timely completion and improved efficiency.
Patent Information
- Application Number
- CN202611215312.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-11
- Publication Date
- 2026-11-10
AI Technical Summary
As data volume increases, tasks cannot be completed on time, affecting business decisions. Existing technologies make it difficult to adjust task execution strategies in a timely manner to improve task efficiency.
By detecting task execution time at preset time intervals, changing detected abnormal tasks, performing runtime efficiency analysis and root cause analysis, and adjusting task execution using preset strategies.
It enables intelligent task detection and execution strategy adjustment, ensuring timely task completion and improving task efficiency.
Smart Images

Figure CN123068243A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this application relate to, but are not limited to, the field of data processing technology, and are applied to financial technology and smart healthcare scenarios. In particular, they relate to a task processing method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] With the explosive growth of data, business data across various industries is also growing exponentially. For example, in the field of smart healthcare, inpatient management systems can be used to manage and process various types of inpatient data, and physical examination management systems can be used to manage and process physical examination data for various items. Similarly, in the field of fintech, financial product management systems can be used to manage and process data on various financial products, and loan risk management systems can be used to manage and analyze various types of risk detection data. However, currently, various business data can be processed as running tasks. As the amount of data continues to increase, the processing performance of each task will also change, resulting in the inability to complete running tasks on time, which will affect business decisions. Summary of the Invention
[0003] The following is an overview of the subject matter described in detail herein. This overview is not intended to limit the scope of the claims.
[0004] To address the problems mentioned in the background section, embodiments of this application provide a task processing method, apparatus, electronic device, and computer-readable storage medium, which can intelligently detect and process tasks, adjust task execution strategies in a timely manner, and enable tasks to be completed promptly, thereby improving task efficiency.
[0005] In a first aspect, embodiments of this application provide a task processing method, the task processing method comprising: At each preset time interval, each running task is detected and processed to obtain multiple task detection information, wherein each task detection information includes the task running time. If the task execution time exceeds a preset duration threshold, a change detection process is performed on the corresponding running task. If a change is detected in the corresponding running task, the running time of the corresponding task is compared with the preset historical running time to obtain a duration comparison value. If the duration comparison value is greater than a preset comparison threshold, the runtime efficiency analysis is performed on the running results of the corresponding running task to obtain the task running log; Root cause analysis is performed on the task execution logs to obtain the task execution anomaly analysis results; Based on the results of the task execution anomaly analysis, the corresponding running tasks are executed using a preset task processing adjustment strategy.
[0006] Secondly, embodiments of this application also provide a task processing apparatus, the task processing apparatus comprising: The first detection unit is used to detect and process each running task at a preset time interval to obtain multiple task detection information, wherein each task detection information includes the task running time. The second detection unit is used to perform change detection processing on the corresponding running task when the task running time exceeds a preset duration threshold. The comparison unit is used to compare the running time of the corresponding task with a preset historical running time when a change is detected in the corresponding running task, and to obtain a duration comparison value. The first analysis unit is used to perform runtime efficiency analysis on the running results of the corresponding running task when the duration comparison value is greater than a preset comparison threshold, and obtain the task running log. The second analysis unit is used to perform root cause analysis on the task execution log to obtain the task execution anomaly analysis results. The execution unit is used to perform execution processing on the corresponding running task based on the task execution anomaly analysis results and using a preset task processing adjustment strategy.
[0007] Thirdly, embodiments of this application also provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the task processing method described in the first aspect above.
[0008] Fourthly, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions for performing the task processing method described in the first aspect above.
[0009] The task processing method according to the embodiments provided in this application has at least the following beneficial effects: During task processing, each running task is detected and processed at preset time intervals to obtain multiple task detection information, wherein each task detection information includes the task running time; then, if the task running time is greater than a preset duration threshold, the corresponding running task is changed; then, if a change is detected in the corresponding running task, the corresponding task running time is compared with a preset historical running time to obtain a duration comparison value; then, if the duration comparison value is greater than a preset comparison threshold, the running result of the corresponding running task is subjected to runtime efficiency analysis processing to obtain a task running log; then, the task running log is subjected to root cause analysis processing to obtain a task running anomaly analysis result; finally, based on the task running anomaly analysis result, a preset task processing adjustment strategy is used to execute the corresponding running task. Through the above technical solution, tasks can be detected and processed intelligently, and the task execution strategy can be adjusted in a timely manner, so that tasks can be completed in a timely manner and the task efficiency can be improved. Attached Figure Description
[0010] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0011] Figure 1 This is a schematic diagram of an application environment for a task processing method according to an embodiment of this application; Figure 2 This is a flowchart illustrating a task processing method provided in one embodiment of this application; Figure 3 This is a schematic diagram of a specific implementation method for determining the duration threshold; Figure 4 yes Figure 2 A schematic diagram of a specific implementation method of step S200; Figure 5 yes Figure 2 A schematic diagram of a specific implementation of step S400; Figure 6 yes Figure 2 A schematic diagram of a specific implementation of step S500; Figure 7 yes Figure 6 A schematic diagram of a specific implementation of step S530; Figure 8 yes Figure 2 A schematic diagram of a specific implementation method of step S600; Figure 9This is a schematic diagram of a task processing apparatus provided in one embodiment of this application; Figure 10 This is a schematic diagram of an electronic device provided in one embodiment of this application. Detailed Implementation
[0012] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0013] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0014] It should be noted that, unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0015] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0016] AI is a new technical science that studies and develops theories, methods, technologies, and application systems for simulating, extending, and expanding human intelligence. Artificial intelligence is a branch of computer science that attempts to understand the essence of intelligence and produce new intelligent machines that can react in a way similar to human intelligence. Research in this field includes robotics, speech recognition, image recognition, natural language processing, and expert systems. Artificial intelligence can simulate the information processes of human consciousness and thought. Furthermore, artificial intelligence utilizes digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceiving the environment, acquiring knowledge, and using that knowledge to achieve optimal results—the theories, methods, technologies, and application systems available for use.
[0017] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0018] Artificial intelligence, or AI, is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0019] The servers involved in artificial intelligence technology can be standalone servers or cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0020] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user is obtained through pop-ups or redirection to confirmation pages. Only after obtaining the user's separate permission or consent is the necessary user-related data required for the proper functioning of these embodiments acquired.
[0021] The task processing method provided in this application embodiment can be applied to, for example, Figure 1In this application environment, the client communicates with the server via a network. The server can use the client to detect and process each running task at preset time intervals, obtaining multiple task detection information, each including the task's execution time. Then, if the task's execution time exceeds a preset duration threshold, a change detection process is performed on the corresponding running task. Next, if a change is detected, the corresponding task's execution time is compared with a preset historical execution time to obtain a duration comparison value. Then, if the duration comparison value exceeds a preset comparison threshold, runtime efficiency analysis is performed on the corresponding running task's execution result to obtain a task execution log. Next, root cause analysis is performed on the task execution log to obtain task execution anomaly analysis results. Finally, based on the task execution anomaly analysis results, a preset task processing adjustment strategy is used to execute the corresponding running task. This technical solution intelligently detects and processes tasks in advance, adjusting execution strategies promptly to ensure timely task completion and improve task efficiency. The client can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented using a standalone server or a server cluster consisting of multiple servers. The embodiments of this application will be described in detail below through specific examples.
[0022] like Figure 2 As shown, Figure 2 This is a flowchart illustrating a task processing method provided in one embodiment of this application. The task processing method includes the following steps: Step S100: After each preset time interval, each running task is detected and processed to obtain multiple task detection information, wherein each task detection information includes the task running time.
[0023] The task processing method provided in this application embodiment can detect the running status of each running task during the task processing process, after each preset time interval, thereby obtaining multiple task detection information, whereby each task detection information includes the corresponding task running time. Then, the task running time in the task detection information can be compared with a preset duration threshold to determine whether the task running time of each running task is abnormal, and to preliminarily determine the task running status of each running task.
[0024] It is worth noting that the preset time interval can be set according to actual needs. For example, if the time interval is set to 30 minutes, the system will detect and process each running task every 30 minutes to obtain the corresponding task detection information, and compare the task running time in each task detection information with the preset duration threshold to preliminarily determine whether each running task is running normally.
[0025] For example, in the fintech field, when a financial product management system is used to manage and process data on various financial products, multiple tasks related to the product update can be generated when a financial product is updated. Similarly, when a loan risk management system is used to monitor various loan data, multiple tasks related to the change in loan rules and conditions can be generated. In the smart healthcare field, when an online registration system is used to manage and process registration data, multiple tasks related to the version update can be generated when the system is updated. Likewise, when a pharmacy management system is used to manage and process various drug data, updating the drug data in the pharmacy management system when a new batch of drugs is purchased can generate multiple tasks related to this update.
[0026] It is worth noting that during the process of detecting and processing each running task at preset time intervals to obtain multiple task detection information, when it involves processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, the user's permission or consent is obtained first. Furthermore, the collection, use, and processing of this data comply with relevant laws, regulations, and standards. In addition, when this application embodiment needs to obtain sensitive personal information of the user, it obtains the user's separate permission or consent through pop-ups or redirection to a confirmation page. Only after explicitly obtaining the user's separate permission or consent does it obtain the necessary user-related data required for the normal operation of this application embodiment.
[0027] Step S200: If the task execution time exceeds the preset duration threshold, perform change detection processing on the corresponding running task.
[0028] The task processing method provided in this application embodiment detects and processes each running task at a preset time interval to obtain multiple task detection information; and if the task running time in the task detection information is greater than a preset duration threshold, the corresponding running task can be changed to determine whether the corresponding running task has changed.
[0029] It is worth noting that if the task execution time exceeds the preset duration threshold, the corresponding task can be changed. If a change is detected, the task execution time can be compared with the preset historical execution time to obtain a duration comparison value, which is then used for subsequent runtime efficiency analysis of the task execution results.
[0030] like Figure 3 As shown, the duration threshold can be obtained through, but is not limited to, the following steps: Step S210: Obtain the task execution time of multiple historical running tasks; Step S220: Calculate the average execution time of multiple tasks to obtain the average task execution time. Step S230: Determine the duration threshold based on the preset ratio and the average task execution time.
[0031] For steps S210 to S230, in determining the duration threshold, the execution times of multiple historical tasks are first obtained; then, the average execution times of the multiple tasks are calculated to obtain the average task execution time; finally, the corresponding duration threshold is determined based on a pre-set ratio and the average task execution time. This technical solution allows the duration threshold to be obtained based on the execution times of historical tasks, making the determination of the duration threshold more reasonable.
[0032] It is worth noting that the execution time of multiple historical tasks can be the execution time of historical tasks over a period of 7 days. Then, the average execution time of multiple tasks can be calculated to obtain the corresponding average execution time. Then, it can be multiplied by the average execution time of multiple tasks according to a pre-set ratio of 50% to determine the final duration threshold.
[0033] For example, in the fintech field, for the task of loan risk detection, in determining the duration threshold, one can first obtain the execution times of historical tasks over 5 days, then average these execution times to obtain the average execution time. This average execution time can then be multiplied by 60% to determine the final duration threshold. Alternatively, in the smart healthcare field, for the task of updating an inpatient management system, in determining the duration threshold, one can first obtain the execution times of historical tasks over 7 days, then average these execution times to obtain the average execution time. This average execution time can then be multiplied by 80% to determine the final duration threshold.
[0034] like Figure 4 As shown, performing change detection processing on the corresponding running tasks may include the following steps: Step S240: Based on the task marker of the running task, perform task marker matching processing from the preset task change order set; Step S250: If the corresponding task tag is matched in the task change order set, it is determined that the corresponding running task has been changed.
[0035] For steps S240 to S250, during the change detection process for the corresponding running tasks, the task markers are first matched from a pre-defined set of task change orders based on the task markers of the running tasks. Then, if a matching task marker is found in the task change order set, it is determined that the corresponding running task has changed. This technical solution allows for a simple and quick determination of whether a running task has changed, facilitating subsequent detection and processing of the corresponding running tasks.
[0036] It is worth noting that the task change order set contains multiple task tags, and each task tag is unique. Each task tag corresponds one-to-one with a running task. Therefore, task tag matching can be performed from the pre-defined task change order set based on the task tag of the running task to determine whether the corresponding running task has changed. In this embodiment, the running task change can be a change in the application scenario of the running task.
[0037] For example, in the fintech field, during the change detection process for fund settlement tasks, the task markers are first matched against a pre-defined set of task change orders based on the task markers of the fund settlement task. If a match is found between the task markers of the fund settlement task and the set of task change orders, it can be determined that the fund settlement task has been changed. Similarly, in the smart healthcare field, during the change detection process for pharmacy management system version upgrade tasks, the task markers are first matched against a pre-defined set of task change orders based on the task markers of the pharmacy management system version upgrade task. If a match is found between the task markers of the pharmacy management system version upgrade task and the set of task change orders, it can be determined that the pharmacy management system version upgrade task has been changed.
[0038] Step S300: If a change is detected in the corresponding running task, the running time of the corresponding task is compared with the preset historical running time to obtain a duration comparison value.
[0039] The task processing method provided in this application embodiment performs change detection processing on the corresponding running task when the task running time exceeds a preset duration threshold. When a change in the corresponding running task is detected, the running time of the corresponding task can be compared with the preset historical running time to obtain a corresponding duration comparison value. Furthermore, when the duration comparison value exceeds the preset comparison threshold, the running result of the corresponding running task is subjected to runtime efficiency analysis processing to obtain a task running log, providing a basis for subsequent task running detection.
[0040] It is worth noting that when a change is detected in the corresponding running task, the running time of the corresponding task is compared with the preset historical running time. If the difference between the two is significant, the reference value is updated to ensure that the analysis logic matches the current task status, so that the running task detection can be more accurate and reasonable.
[0041] It is worth noting that the historical runtime in this embodiment can be the task execution time of multiple historical running tasks, and then the average value of the multiple task execution times is calculated to obtain the average task execution time.
[0042] Step S400: If the duration comparison value is greater than the preset comparison threshold, perform runtime efficiency analysis on the running results of the corresponding running task to obtain the task running log.
[0043] The task processing method provided in this application, when detecting a change in a corresponding running task, compares the running time of the corresponding task with a preset historical running time to obtain a duration comparison value. If the duration comparison value is greater than a preset comparison threshold, runtime efficiency analysis is performed on the running result of the corresponding running task to obtain a task running log. This technical solution makes the detection of running tasks more reasonable and accurate.
[0044] It is worth noting that when a change in the corresponding running task is detected, the running time of the corresponding task is compared with the preset historical running time. If the comparison value is greater than the preset comparison threshold (i.e., the difference between the two is significant), the reference value is updated, and the running result of the corresponding running task is subjected to runtime efficiency analysis to ensure that the analysis logic matches the current task status, so that the running task detection can be more accurate and reasonable. If the comparison value is not greater than the preset comparison threshold (i.e., the difference between the two is not significant), the reference value is not updated, the running task is identified as a time-sensitive task, and further analysis and processing will be carried out.
[0045] like Figure 5 As shown, performing runtime efficiency analysis on the execution results of the corresponding tasks to obtain task execution logs can include the following steps: Step S410: According to the preset task timeline, the running results of the running task are split and processed to obtain multiple running sub-results; Step S420: Parse and process multiple running sub-results to obtain multiple log messages; Step S430: Combine and process multiple log messages to obtain the task execution log.
[0046] For steps S410 to S430, in the process of performing runtime efficiency analysis on the execution results of the corresponding running tasks to obtain task execution logs, the execution results of the running tasks are first split according to a pre-set task timeline to obtain multiple sub-results; then, these sub-results are parsed to obtain multiple log information; finally, these log information are combined to obtain the corresponding task execution log. This technical solution makes the determination of task execution logs more accurate and faster.
[0047] It is worth noting that in the process of determining the task execution log, the execution results of the running task are first split according to the pre-set task timeline, so as to obtain multiple execution sub-results; then, the multiple execution sub-results are parsed to obtain multiple log information; finally, the multiple log information are combined to obtain the corresponding task execution log, which provides a basis for subsequent task execution detection.
[0048] For example, in the fintech field, when monitoring the execution of fund settlement tasks and analyzing their runtime results to obtain task logs, the process involves first breaking down the fund settlement task according to a pre-defined task timeline, resulting in multiple sub-results. These sub-results are then parsed to obtain multiple log entries. Finally, these log entries are combined to obtain the task log for the fund settlement task. Similarly, in the smart healthcare field, when monitoring the update of an online registration system and analyzing its runtime results to obtain task logs, the process involves first breaking down the update task according to a pre-defined task timeline, resulting in multiple sub-results. These sub-results are then parsed to obtain multiple log entries. Finally, these log entries are combined to obtain the task log for the update of the online registration system.
[0049] Step S500: Perform root cause analysis on the task execution log to obtain the task execution anomaly analysis results.
[0050] The task processing method provided in this application, when the duration comparison value exceeds a preset comparison threshold, performs runtime efficiency analysis on the execution results of the corresponding running task to obtain the task execution log. After obtaining the task execution log, root cause analysis can be performed on the task execution log to obtain the task execution anomaly analysis results. Through the above technical solution, the detection of running tasks becomes more intelligent, reducing manual intervention and saving labor costs.
[0051] It is worth noting that by performing root cause analysis on the task execution logs, the corresponding task execution anomaly analysis results can be obtained, making the determination of task execution anomaly analysis results simpler, faster, and more accurate.
[0052] like Figure 6 As shown, performing root cause analysis on the task execution log to obtain task execution anomaly analysis results may include the following steps: Step S510: Filter out abnormal task execution segments from the task execution log; Step S520: Perform task context restoration processing on the abnormal task execution segment to obtain task execution context information; Step S530: Analyze and process the task execution context information to obtain the task execution anomaly analysis results.
[0053] For steps S510 to S530, in the process of obtaining the task execution anomaly analysis result by performing root cause analysis on the task execution log, firstly, task execution anomaly segments are filtered out from the task execution log; then, task context restoration processing is performed on the task execution anomaly segments to obtain the corresponding task execution context information; finally, the task execution context information is analyzed and processed to obtain the corresponding task execution anomaly analysis result. Through the above technical solution, the determination of task execution anomaly analysis results can be made simpler, faster, and more accurate.
[0054] It is worth noting that by filtering out abnormal task execution segments from the task execution log, task context restoration processing can be performed on these segments to obtain task execution context information. This allows subsequent task execution anomaly analysis to incorporate the context information, thereby making the anomaly detection of running tasks more accurate.
[0055] For example, in the fintech field, during the monitoring of a loan compliance inspection task, given the task operation logs, abnormal segments can be selected from the logs. Then, task context restoration processing can be performed on these abnormal segments to obtain task execution context information. Analyzing this execution context information yields the corresponding task operation anomaly analysis results. Similarly, in the smart healthcare field, during the monitoring of a task updating an inspection report query system, given the task operation logs, abnormal segments can be selected from the logs. Then, task context restoration processing can be performed on these abnormal segments to obtain task execution context information. Analyzing this execution context information yields the corresponding task operation anomaly analysis results.
[0056] like Figure 7 As shown, analyzing and processing the task execution context information to obtain task execution anomaly analysis results can include the following steps: Step S531: Determine the result representation and triggering conditions from the task execution context information; Step S532: Perform correlation analysis on the result appearance and triggering conditions to obtain the task execution anomaly analysis results.
[0057] For steps S531 to S532, in the process of analyzing and processing the task execution context information to obtain the task execution anomaly analysis results, the result manifestation and triggering conditions are first determined from the task execution context information; then, the result manifestation and triggering conditions are correlated and processed to obtain the corresponding task execution anomaly analysis results. Through the above technical solution, the determination of task execution anomaly analysis results can be made more accurate.
[0058] It is worth noting that in the process of analyzing and processing the task execution context information to obtain the task execution anomaly analysis results, the result manifestation and triggering conditions are determined from the task execution context information. In subsequent analysis, the result manifestation and triggering conditions can be combined to make the determination of the task execution anomaly analysis results more reasonable and accurate.
[0059] Step S600: Based on the results of the task execution anomaly analysis, use the preset task processing adjustment strategy to execute the corresponding running tasks.
[0060] The task processing method provided in this application embodiment, after performing root cause analysis on the task running log and obtaining the task running anomaly analysis result, can then use a pre-set task processing adjustment strategy to execute the corresponding running task based on the task running anomaly analysis result, so as to achieve intelligent task execution adjustment processing.
[0061] It is worth noting that after performing root cause analysis on the task execution logs and obtaining the task execution anomaly analysis results, the corresponding running tasks can be executed and processed using the pre-set task processing adjustment strategy based on the task execution anomaly analysis results. This timely adjustment of the task execution strategy ensures that the tasks can be completed in a timely manner, improving task efficiency.
[0062] like Figure 8 As shown, based on the results of task execution anomaly analysis, the corresponding running tasks are processed using a preset task handling adjustment strategy, which may include the following steps: Step S610: If the task execution anomaly analysis results indicate insufficient resources, adjust the resource group configuration corresponding to the running task. Step S620: If the task execution is interrupted as indicated by the task execution anomaly analysis results, the task execution is restarted. Step S630: If the task execution anomaly analysis results indicate a database connection anomaly, reconnect the database corresponding to the running task.
[0063] For steps S610 to S630, during the process of executing the corresponding running tasks using preset task processing adjustment strategies based on the task execution anomaly analysis results, if the task execution anomaly analysis results indicate insufficient resources, the resource group configuration corresponding to the running task is adjusted; if the task execution anomaly analysis results indicate task lag, the running task execution is restarted; if the task execution anomaly analysis results indicate database connection anomalies, the database corresponding to the running task is reconnected. Through the above technical solution, different task processing adjustment strategies can be executed according to different task execution anomaly analysis results, making task execution more intelligent.
[0064] It's worth noting that if the task execution anomaly analysis indicates insufficient resources, the resource group configuration corresponding to the running task can be adjusted to ensure it meets the execution requirements. If the analysis indicates task lag, the task can be restarted to prevent it from freezing. If the analysis indicates a database connection failure, it indicates a connection problem between the task and the database, allowing for a reconnection to overcome the connection failure.
[0065] For example, in the fintech field, during the execution of a financial reconciliation task, when an anomaly analysis result is obtained, if the result indicates insufficient resources, the resource group configuration corresponding to the financial reconciliation task can be adjusted; if the result indicates task lag, the task can be restarted; and if the result indicates a database connection error, the database corresponding to the task can be reconnected. Similarly, in the smart healthcare field, during the execution of an intelligent triage task, when an anomaly analysis result is obtained, if the result indicates insufficient resources, the resource group configuration corresponding to the intelligent triage task can be adjusted; if the result indicates task lag, the task can be restarted; and if the result indicates a database connection error, the database corresponding to the task can be reconnected.
[0066] The technical solution of this application uses the average running value as the historical benchmark value, combined with a 50% threshold fluctuation rule, to dynamically identify abnormal tasks and avoid misjudgments caused by fixed thresholds. When a task changes, the system actively compares the trial running data with the historical benchmark. If the difference is significant, the reference value is updated to ensure that the analysis logic matches the current task status. It integrates multiple types of logs, such as platform logs and database logs, to break down data silos and provide a panoramic analysis perspective. It uses intelligent analysis tools to automatically attribute all logs to their causes, quickly locating the root causes of complex problems such as insufficient resources and data skew. It automatically adjusts resource configurations for tasks with insufficient resources and automatically reconnects or expands the database when the connection is abnormal, reducing manual intervention. It detects task lag by comparing historical logs and triggers automatic restarts to avoid prolonged task stagnation. For changes that cannot be handled automatically or ineffective resource adjustments, it promptly notifies the responsible person to intervene, forming a closed loop for problem handling. Through real-time monitoring and anomaly analysis, it identifies potential delayed tasks in advance, reducing business decision-making risks. It verifies the task running status based on multi-dimensional logs, reducing system failures caused by misoperation. This solution constructs a complete link from anomaly detection to self-healing through four layers of linkage: dynamic threshold modeling, multi-source log integration, artificial intelligence root cause analysis, and hierarchical automated processing. It significantly improves the stability and operational efficiency of the task scheduling system. Its core innovation lies in upgrading the traditional operation and maintenance model that relies on human experience into a closed-loop system of adaptive analysis and intelligent decision-making, which shows strong fault tolerance, especially in the case of task changes.
[0067] In addition, such as Figure 9 As shown, one embodiment of this application also provides a task processing device 10, which includes: The first detection unit 100 is used to detect and process each running task at a preset time interval to obtain multiple task detection information, wherein each task detection information includes the task running time. The second detection unit 200 is used to perform change detection processing on the corresponding running task when the task running time exceeds a preset duration threshold. The comparison unit 300 is used to compare the running time of the corresponding task with the preset historical running time when a change in the corresponding running task is detected, and to obtain a duration comparison value. The first analysis unit 400 is used to perform runtime efficiency analysis on the running results of the corresponding running task when the duration comparison value is greater than the preset comparison threshold, and obtain the task running log. The second analysis unit 500 is used to perform root cause analysis on the task execution log to obtain the task execution anomaly analysis results. The execution unit 600 is used to execute and process the corresponding running tasks based on the results of task execution anomaly analysis and using a preset task processing adjustment strategy.
[0068] The specific implementation of the task processing device 10 is basically the same as the specific embodiment of the task processing method described above, and will not be repeated here.
[0069] In addition, such as Figure 10 As shown, one embodiment of this application also provides an electronic device 700, which includes: a memory 720, a processor 710, and a computer program stored on the memory 720 and executable on the processor 710.
[0070] The processor 710 and memory 720 can be connected via a bus or other means.
[0071] The non-transient software program and instructions required to implement the task processing method of the above embodiments are stored in the memory 720. When executed by the processor 710, the task processing method of each of the above embodiments is executed.
[0072] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0073] Furthermore, one embodiment of this application provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor 710 or a controller, for example, by a processor 710 in the above-described device embodiment, causing the processor 710 to perform the task processing method in the above-described embodiment.
[0074] The above embodiments can be used in combination, and modules with the same name in different embodiments may be the same or different.
[0075] The foregoing has described specific embodiments of this application; other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than those shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily have to follow the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0076] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, devices, and computer-readable storage media are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0077] The apparatus, device, computer-readable storage medium and method provided in the embodiments of this application are corresponding. Therefore, the apparatus, device and non-volatile computer storage medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus, device and computer storage medium will not be described again here.
[0078] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program a digital system themselves to "integrate" it onto a PLD, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used when writing program development code. The original code before compilation must also be written in a specific programming language, which is called a Hardware Description Language (HDL). There is not just one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. Currently, the most commonly used are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also understand that by simply performing some logic programming on the method flow using the aforementioned hardware description languages and programming it into an integrated circuit, the hardware circuit that implements the logic method flow can be easily obtained.
[0079] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, ASICs, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0080] The systems, devices, modules, or units described in the above embodiments can be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, a computer can be, for example, a personal computer, laptop computer, cellular phone, camera phone, smartphone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or any combination of these devices.
[0081] For ease of description, the above apparatus is described by dividing it into various functional units. Of course, in implementing the embodiments of this application, the functions of each unit can be implemented in one or more software and / or hardware.
[0082] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, embodiments of this application can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of this application can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0083] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0084] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0085] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0086] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0087] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (FlashRAM). Memory is an example of computer-readable media.
[0088] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0089] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0090] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0091] The embodiments of this application can be described in the general context of computer-executable instructions, such as program modules, that are executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. The embodiments of this application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can reside in local and remote computer storage media, including storage devices.
[0092] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0093] It should be noted that any AI models, software tools, or components not belonging to this company appearing in the embodiments of this application are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this application has been authorized (with the knowledge and consent) by the relevant parties or has been fully authorized by all parties, and the executing entity may obtain it through various legal and compliant means. The collection, storage, use, processing, transmission, provision, and disclosure of the information, data, and signals involved all comply with relevant laws and regulations and do not violate public order and good morals.
[0094] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.
Claims
1. A task processing method, characterized in that, The task processing method includes: At each preset time interval, each running task is detected and processed to obtain multiple task detection information, wherein each task detection information includes the task running time. If the task execution time exceeds a preset duration threshold, a change detection process is performed on the corresponding running task. If a change is detected in the corresponding running task, the running time of the corresponding task is compared with the preset historical running time to obtain a duration comparison value. If the duration comparison value is greater than a preset comparison threshold, the runtime efficiency analysis is performed on the running results of the corresponding running task to obtain the task running log; Root cause analysis is performed on the task execution logs to obtain the task execution anomaly analysis results; Based on the results of the task execution anomaly analysis, the corresponding running tasks are executed using a preset task processing adjustment strategy.
2. The task processing method according to claim 1, characterized in that, The duration threshold is obtained in the following way: Obtain the execution time of multiple historical running tasks; The average execution time of the multiple tasks is calculated to obtain the average task execution time. The duration threshold is determined based on the preset ratio and the average task execution time.
3. The task processing method according to claim 1, characterized in that, The change detection processing for the corresponding running tasks includes: Based on the task marker of the running task, perform task marker matching processing from a preset set of task change orders; If a corresponding task tag is found in the task change order set, it is determined that the corresponding running task has been changed.
4. The task processing method according to claim 1, characterized in that, The runtime efficiency analysis of the execution results of the corresponding running tasks is performed to obtain task execution logs, including: According to the preset task timeline, the running result of the running task is split into multiple running sub-results; The multiple execution sub-results are parsed and processed to obtain multiple log information; The task execution log is obtained by combining and processing multiple log messages.
5. The task processing method according to claim 1, characterized in that, The root cause analysis of the task execution log to obtain task execution anomaly analysis results includes: Filter out abnormal segments in the task execution log; The task execution context information is obtained by performing task context restoration processing on the abnormal task execution segment. The task execution context information is analyzed and processed to obtain the task execution anomaly analysis results.
6. The task processing method according to claim 1, characterized in that, The step of performing execution processing on the corresponding running tasks based on the task execution anomaly analysis results and using a preset task processing adjustment strategy includes: If the task execution anomaly analysis results indicate insufficient resources, the resource group configuration corresponding to the running task will be adjusted. If the task execution is stalled as indicated by the task execution anomaly analysis results, the running task will be restarted. If the task execution anomaly analysis results indicate a database connection anomaly, the database corresponding to the running task will be reconnected.
7. The task processing method according to claim 5, characterized in that, The analysis and processing of the task execution context information to obtain the task execution anomaly analysis results includes: Determine the result representation and triggering conditions from the task execution context information; The results and the triggering conditions are correlated and analyzed to obtain the results of the task execution anomaly analysis.
8. A task processing device, characterized in that, The task processing device includes: The first detection unit is used to detect and process each running task at a preset time interval to obtain multiple task detection information, wherein each task detection information includes the task running time. The second detection unit is used to perform change detection processing on the corresponding running task when the task running time exceeds a preset duration threshold. The comparison unit is used to compare the running time of the corresponding task with a preset historical running time when a change is detected in the corresponding running task, and to obtain a duration comparison value. The first analysis unit is used to perform runtime efficiency analysis on the running results of the corresponding running task when the duration comparison value is greater than a preset comparison threshold, and obtain the task running log. The second analysis unit is used to perform root cause analysis on the task execution log to obtain the task execution anomaly analysis results. The execution unit is used to perform execution processing on the corresponding running task based on the task execution anomaly analysis results and using a preset task processing adjustment strategy.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the task processing method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are used to execute the task processing method according to any one of claims 1 to 7.
