Method, apparatus, computer device, and readable storage medium for processing jobs
By analyzing the blood relationship and dependency relationship of the operations of the business processing system of the financial enterprise, the importance of the operations and reasonable allocation of resources are solved, and the problem of working with limited computer resources is improved.
Patent Information
- Application Number
- CN202211614189.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-15
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-12-15
AI Technical Summary
With limited computer resources, it is difficult for the business processing system of financial enterprises to allocate resources reasonably to handle massive work tasks.
By conducting blood relationship analysis on the target report of each pending job, determining the number of related reports and blood relationship influence scores, building a directed graph of dependency, calculating the sum of scores to determine the importance of the job, and processing the jobs in this order.
It realizes the rational allocation of computer resources under limited resources, prioritizes the processing of high-importance operations, and improves resource utilization efficiency.
Smart Images

Figure CN115840644B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular, to a method, apparatus, computer device, and readable storage medium for processing jobs. Background Art
[0002] With the continuous upgrading of business and the continuous increase in the number of users, the number of tasks / jobs that the business processing system of financial enterprises needs to process every day has also increased explosively.
[0003] Therefore, there may be a huge number of jobs to be processed at a certain moment, while the computer resources are relatively limited, making it difficult to reasonably allocate resources and process each job. Summary of the Invention
[0004] In view of this, the present invention provides a method, apparatus, computer device, and readable storage medium for processing jobs that can be applied to the field of fintech and other technology fields, so as to improve the current situation where there may be a huge number of jobs to be processed at a certain moment, while the computer resources are relatively limited, making it difficult to reasonably allocate resources and process each job.
[0005] In a first aspect, an embodiment of the present invention provides a method for processing jobs, including:
[0006] When there are multiple jobs to be processed, determine the target report corresponding to each job to be processed;
[0007] Perform lineage analysis on each target report respectively to determine the number of associated reports having a lineage relationship with the target report, and obtain the lineage influence score of each target report based on the number of associated reports;
[0008] Based on the dependency relationship between any two of all the target reports, construct a directed graph of dependency relationships corresponding to all the target reports;
[0009] For each target report, determine the total score of the target report based on the lineage influence score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships;
[0010] Determine the importance level of the job to be processed corresponding to each target report according to the total score of each target report;
[0011] Process each job to be processed in sequence based on the importance level of each job to be processed.
[0012] Optionally, in a feasible manner provided by an embodiment of the present invention, for each of the target reports, determining the total score of the target report based on the blood relationship influence score of the target report and the number of downstream reports of the target report in the dependency directed graph includes:
[0013] For each of the target reports, determine the number of downstream reports of the target report in the dependency directed graph;
[0014] For each of the target reports, obtain the downstream score of the target report based on the product of the blood relationship influence score of the target report and the number of downstream reports;
[0015] Calculate the sum of the blood relationship influence score and the downstream score of each of the target reports respectively to obtain the total score of each of the target reports.
[0016] Optionally, in a feasible manner provided by an embodiment of the present invention, the calculation formula of the downstream score includes:
[0017] score down = w1·n·score1;
[0018] In the formula, score down represents the downstream score, w1 represents the weight value corresponding to the downstream score, n represents the number of downstream reports, and score1 represents the blood relationship influence score.
[0019] Optionally, in a feasible manner provided by an embodiment of the present invention, for each of the target reports, determining the total score of the target report based on the blood relationship influence score of the target report and the number of downstream reports of the target report in the dependency directed graph includes:
[0020] Determine the popularity score of each of the target reports based on the access times of each of the target reports;
[0021] Obtain the report score of each of the target reports based on the popularity score and the blood relationship influence score of each of the target reports;
[0022] For each of the target reports, obtain the total score of the target report based on the report score of the target report and the number of downstream reports of the target report in the dependency directed graph.
[0023] Optionally, in a feasible manner provided by an embodiment of the present invention, obtaining the report score of each of the target reports based on the popularity score and the blood relationship influence score of each of the target reports includes:
[0024] Perform a business impact analysis on the target report to determine the business impact report corresponding to the target report. Wherein, after the data in the target report is updated, the data in the business impact report corresponding to the target report will be updated accordingly;
[0025] Determine the business impact score of the target report based on the quantity of the business impact report corresponding to the target report;
[0026] Obtain the report score of each target report based on the popularity score, blood relationship influence score, and business impact score of each target report.
[0027] Optionally, in a feasible manner provided by an embodiment of the present invention, the calculation formula corresponding to the report score includes:
[0028] score grade = w1·score1 + w2·score2 + w3·score3;
[0029] In the formula, score grade represents the report score, w1 represents the weight corresponding to the blood relationship influence score, score1 represents the blood relationship influence score, w2 represents the weight corresponding to the popularity score, score2 represents the popularity score, w3 represents the weight corresponding to the business impact score, and score3 represents the business impact score.
[0030] In a second aspect, an embodiment of the present invention provides a processing device for jobs, including:
[0031] A report determination module, configured to determine the target report corresponding to each of the pending jobs when there are multiple pending jobs;
[0032] A blood relationship determination module, configured to perform a blood relationship analysis on each of the target reports respectively to determine the quantity of associated reports having a blood relationship with the target report, and obtain the blood relationship influence score of each target report based on the quantity of the associated reports;
[0033] A directed graph construction module, configured to construct a directed graph of dependency relationships corresponding to all the target reports based on the dependency relationships between any two of the target reports among all the target reports;
[0034] A total sum determination module, configured to, for each of the target reports, determine the total score of the target report based on the blood relationship influence score of the target report and the quantity of downstream reports of the target report in the directed graph of dependency relationships;
[0035] An importance determination module, configured to determine the importance of the to-be-processed job corresponding to each target report according to the total score of each target report;
[0036] A processing module, configured to process each to-be-processed job in sequence based on the importance of each to-be-processed job.
[0037] Optionally, in a feasible manner provided by an embodiment of the present invention, the total sum determination module includes:
[0038] A downstream determination sub-module, configured to determine, for each target report, the number of downstream reports of the target report in the dependency directed graph;
[0039] A downstream score acquisition sub-module, configured to obtain, for each target report, the downstream score of the target report based on the product of the blood relationship influence score of the target report and the number of downstream reports;
[0040] A summation sub-module, configured to calculate the sum of the blood relationship influence score and the downstream score of each target report respectively to obtain the total score of each target report.
[0041] In a third aspect, an embodiment of the present invention provides a computer device, including a memory and a processor. The memory stores a computer program, and when the computer program runs on the processor, it executes the processing method of the job disclosed in any one of the first aspects.
[0042] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program runs on the processor, it executes the processing method of the job disclosed in any one of the first aspects.
[0043] In the method for processing jobs provided by the embodiments of the present invention, when there are multiple jobs to be processed, first, it is determined for each job to be processed the report it targets, that is, the target report. Then, the lineage analysis is respectively performed on each target report to determine the associated reports that directly or indirectly depend on the target report, that is, the associated reports having a lineage relationship with the target report, and the number of associated reports is determined. Subsequently, based on the dependency relationships between any two of all the target reports, a directed graph of dependency relationships corresponding to all the target reports is constructed, and then the data dependency relationships of each report among the multiple jobs to be processed are determined through the directed graph of dependency relationships. Then, for each target report, based on the lineage influence score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships, the total score of the target report is determined, so as to determine the influence of the data change of each target report among the multiple jobs to be processed. Then, according to the total score of each target report, the importance level of the job to be processed corresponding to each target report is determined. Finally, the limited computer resources are scheduled to each job to be processed in turn based on the importance level of each job to be processed, thereby completing the corresponding processing.
[0044] Based on this, the embodiments of the present invention enable the processing order of each job to be processed to be determined by its influence degree. The greater the influence degree, the higher the importance level of the job to be processed, and the higher the resource allocation priority of the job to be processed. As a result, important jobs to be processed will be processed first, and the limited computer resources can be appropriately allocated. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions of the present invention, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as limiting the protection scope of the present invention. In each drawing, similar components are numbered similarly.
[0046] Figure 1 FIG. 1 shows a schematic flowchart of the first method for processing jobs provided by the embodiments of the present invention;
[0047] Figure 2 FIG. 2 shows a schematic flowchart of the second method for processing jobs provided by the embodiments of the present invention;
[0048] Figure 3 FIG. 3 shows a schematic flowchart of the third method for processing jobs provided by the embodiments of the present invention;
[0049] Figure 4 FIG. 4 shows a schematic structural diagram of the job processing device provided by the embodiments of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0050] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are only a part rather than all of the embodiments of the present invention.
[0051] The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the detailed description of the embodiments of the present invention provided herein is not intended to limit the scope of the claimed invention, but is merely representative of selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts fall within the scope of protection of the present invention.
[0052] In the following text, the terms "including", "having" and their cognates that may be used in various embodiments of the present invention are only intended to indicate a specific feature, number, step, operation, element, component or combination of the foregoing items, and should not be construed as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or precluding the possibility of adding one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.
[0053] In addition, the terms "first", "second", "third", etc. are only used for descriptive distinction and should not be construed as indicating or implying relative importance.
[0054] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those of ordinary skill in the art to which various embodiments of the present invention belong. The terms (such as those defined in a general use dictionary) will be interpreted as having the same meaning as the contextual meaning in the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in various embodiments of the present invention.
[0055] It can be understood that during shopping festivals or other holidays, the business processing systems of financial enterprises will face a large number / massive amount of jobs / tasks to be processed to meet the shopping needs of users. However, the computer resources that the business processing systems can call are limited and it is difficult to process a massive amount of jobs simultaneously. Therefore, rationally allocating resources to process each job is the problem to be solved at the present stage.
[0056] to be processed, and
[0057] Embodiment 1
[0058] Referring to Figure 1 , which shows a schematic flowchart of the processing of the first job provided by the embodiment of the present invention. The job processing method provided by the embodiment of the present invention includes:
[0059] Step S110, when there are multiple jobs to be processed, determine the target report corresponding to each of the jobs to be processed.
[0060] It should be noted that the jobs in the embodiments of the present invention can be understood as matters in a business system such as business requests or tasks to be processed, for which the system needs to schedule corresponding computing resources for processing, and one or more operations of adding, deleting, changing, and querying data in the report need to be performed.
[0061] It should also be noted that each job to be processed usually depends on / corresponds to a data report, that is, each job to be processed corresponds to a target report, and the process of processing a job to be processed is a process of performing one or more operations of adding, deleting, changing, and querying data in the target report corresponding to the job to be processed.
[0062] In addition, it can also be understood that the method of obtaining / determining the target report corresponding to each job to be processed is content that can be set according to actual situations. For example, in a feasible manner provided in the embodiments of the present invention, the job to be processed carries identification information of its corresponding target report. Then, after the server / computer device receives the job to be processed, it will read the identification information in the job to be processed to determine its corresponding target report.
[0063] Step S120, perform lineage analysis on each of the target reports to determine the number of associated reports that have a lineage relationship with the target report, and obtain the lineage influence score of each of the target reports based on the number of the associated reports.
[0064] That is, in the embodiments of the present invention, after determining the target report corresponding to each job to be processed, lineage analysis will be performed on each target report to determine the associated reports of each target report and obtain the number of the associated reports of each target report.
[0065] It can be understood that the lineage analysis in the embodiments of the present invention refers to searching / confirming / querying reports that have a dependency relationship with the target report, that is, associated reports. It is not difficult to think that the reports directly dependent on the target report are the upstream reports of the target report, and the reports directly or indirectly dependent on the target report are the downstream reports of the target report.
[0066] It can also be understood that the data in the target report is obtained by directly processing the data in its upstream report or indirectly using the data in the upstream report, while the data in the downstream report is obtained by directly processing the data in the target report or indirectly using the data in the target report.
[0067] Therefore, it is not difficult to understand that the number of associated reports of the target report can directly reflect the influence of the target report. That is, when the data of the target report changes, it will affect how many other reports in the system / server. Furthermore, it can be known that the larger the number of associated reports of the target report, the greater the impact caused by the data change in the target report. Consequently, the importance level of the pending job corresponding to the target report will be higher, and the priority level for processing will also be higher.
[0068] Thus, after determining the number of associated reports of the target report in the embodiments of the present invention, the blood relationship influence score of the target report will be calculated based on the number of associated reports of the target report, and then the influence caused when the data in the target report changes will be reflected through the blood relationship influence score.
[0069] In addition, it should be understood that the specific calculation process of the blood relationship influence score can be set according to the situation, and the embodiments of the present invention do not limit this.
[0070] Moreover, it should also be understood that the embodiments of the present invention do not limit the specific execution process of the blood relationship analysis. The blood relationship analysis can set its specific execution process according to the actual situation, or directly adopt the blood relationship analysis tools in the prior art.
[0071] Step S130: Based on the dependency relationships between any two of all the target reports, construct a directed graph of dependency relationships corresponding to all the target reports.
[0072] It can be understood that among the multiple target reports corresponding to multiple pending jobs, there may be dependency relationships between any two reports, that is, the data of one target report directly depends or indirectly depends on the data in another target report. Therefore, it can be conceived that if among multiple pending jobs, there is a target report of a pending job that is depended on by the target reports of all other pending jobs, it indicates that the influence degree of this pending job is relatively large and the importance level is relatively high.
[0073] It can also be understood that the present invention will also construct a directed graph of dependency relationships corresponding to all the target reports according to the dependency relationships between any two of all the target reports corresponding to multiple pending jobs, and then can determine the data dependency relationships of each target report based on the directed graph of dependency relationships.
[0074] Step S140: For each target report, based on the blood relationship influence score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships, determine the total score of the target report.
[0075] It can be understood that, similar to the blood relationship, in the dependency relationship directed graph, if report A is the downstream report of report B, it can be known that the data in report A directly or indirectly depends on the data in report B.
[0076] Furthermore, if in the dependency relationship directed graph, report B is the upstream report of multiple other reports, it indicates that after the data of report B changes, it will affect each of the aforementioned other reports. That is, in the pending jobs corresponding to report B and the multiple aforementioned other reports respectively, after the pending job corresponding to report B changes, it will affect the pending jobs corresponding to the aforementioned other reports respectively.
[0077] It can also be understood that in the aforementioned step S120, the embodiments of the present invention obtained the blood relationship influence score corresponding to each target report based on the blood relationship analysis result of each target report, that is, the number of associated reports of each target report, and then could determine the influence degree and importance degree of the pending job corresponding to the target report according to the blood relationship influence score.
[0078] In the dependency relationship directed graph, the number of downstream reports of the target report indicates how many other pending jobs will be affected by the processing of the pending job corresponding to the target report in the pending jobs corresponding to the target report and the downstream reports of the target report.
[0079] It is not difficult to understand that the blood relationship influence score represents the global influence degree of the target report in all reports / the entire system, while the number of downstream reports of the target report in the dependency relationship directed graph indicates the local influence degree of the target report in multiple pending jobs.
[0080] Therefore, in order to reasonably characterize the impact caused by the data change of each target report, the embodiments of the present invention will calculate the total score of the target report according to the blood relationship influence score of the target report and the number of downstream reports of the target report in the dependency relationship directed graph, and then characterize the influence degree of the target report and the pending job corresponding to the target report according to the total score.
[0081] It can be thought that the specific calculation method of the total score is the content that can be set according to the actual situation. Exemplarily, in a feasible manner provided by the embodiments of the present invention, the calculation process of the total score of the target report is: for each target report, calculate the sum of its blood relationship influence score and the number of its downstream reports, and then obtain the total score of the target report. Thus, the calculation of the total score is completed efficiently and quickly.
[0082] In another feasible manner provided by the embodiments of the present invention, specifically, reference can be made to Figure 2, which shows a schematic flowchart of the processing method for the second type of operation provided by the embodiments of the present invention. That is, for the above step S140, in this feasible manner, it specifically includes:
[0083] Step S141, for each of the target reports, determine the number of downstream reports of the target report in the dependency directed graph;
[0084] Step S142, for each of the target reports, based on the product of the blood relationship influence score of the target report and the number of downstream reports, obtain the downstream score of the target report;
[0085] Step S143, calculate the sum of the blood relationship influence score and the downstream score of each of the target reports respectively, to obtain the total score of each of the target reports.
[0086] That is, in this feasible manner, after the embodiments of the present invention determine the number of downstream reports of the target report in the dependency directed graph, it will calculate the product of each blood relationship influence score and the number of downstream reports, and then obtain the downstream score of the target report; then, based on the downstream score of the target report and its blood relationship influence score, the total score of the target report is obtained.
[0087] Optionally, in a feasible manner provided by the embodiments of the present invention, the calculation formula for the total score can be shown as the following formula:
[0088] score tol = score down + score1;
[0089] score down = n·score1;
[0090] In the formula, score tol represents the total score, score down represents the downstream score, score1 represents the blood relationship influence score, and n represents the number of downstream reports.
[0091] Optionally, to balance the influence of the downstream score and the total score corresponding to the blood relationship influence score, in a feasible manner provided by the embodiments of the present invention, the calculation formula for the total score is shown as the following formula:
[0092] score tol = w0·score down + w1·score1;
[0093] In the formula, w0 is the weight corresponding to the downstream score, and w1 is the weight corresponding to the blood relationship influence score.
[0094] Therefore, in this feasible manner, the calculation formula of the downstream score includes:
[0095] score down = w1·n·score1;
[0096] In the formula, score down represents the downstream score, w1 represents a preset weight value, n represents the number of downstream reports, and score1 represents the blood relationship influence score.
[0097] Step S150, determine the importance of the to-be-processed job corresponding to each target report according to the total score of each target report.
[0098] That is, in the embodiment of the present invention, the to-be-processed jobs corresponding to each report will be sorted according to the descending order of the total scores of each target report, and then the importance of each to-be-processed job can be obtained.
[0099] It can be understood that the greater the total score of the target report, the higher the importance of the to-be-processed job corresponding to the target report.
[0100] Step S160, process each to-be-processed job in sequence based on the importance of each to-be-processed job.
[0101] That is, in the embodiment of the present invention, each to-be-processed job will be processed in sequence according to the descending order of the importance of each to-be-processed job, so that the to-be-processed job with a large influence range and thus a high importance will be processed first. In other words, the higher the importance of the to-be-processed job, the higher the resource allocation degree.
[0102] It can be understood that if multiple to-be-processed jobs support parallel processing, but there is a to-be-processed job with a much higher importance than other to-be-processed jobs, then in a feasible manner provided by the embodiment of the present invention, this to-be-processed job with a much higher importance than other to-be-processed jobs will be processed first, and other to-be-processed jobs will be suspended.
[0103] In the method for processing jobs provided by the embodiment of the present invention, the processing order of each to-be-processed job will be determined by its influence degree. The greater the influence degree, the higher the importance of the to-be-processed job, and the higher the resource allocation priority of the to-be-processed job. Thus, important to-be-processed jobs will be processed first, and limited computer resources can be reasonably allocated.
[0104] Optionally, in a feasible manner provided by the embodiment of the present invention, specifically, reference can be made to Figure 3, which shows a schematic flowchart of the processing method of the third operation provided by the embodiments of the present invention. That is, for the above step S140, specifically included in this feasible manner are:
[0105] Step S144, determining the heat score of each of the target reports based on the access times of each of the target reports;
[0106] Step S145, obtaining the report score of each of the target reports based on the heat score and the blood relationship influence score of each of the target reports;
[0107] Step S146, for each of the target reports, obtaining the total score of the target report based on the report score of the target report and the number of downstream reports of the target report in the dependency directed graph.
[0108] That is, in this feasible manner, the embodiments of the present invention will also determine the heat score of the target report based on the heat of each target report, that is, the range times, and then calculate the report score according to the heat score and the blood relationship influence score of the target report, and finally calculate the total score according to the report score.
[0109] Optionally, in a feasible manner provided by the embodiments of the present invention, the calculation formula of the total score is as follows:
[0110] score tol = n·score grade + score grade ;
[0111] score grade = score1 + score2
[0112] In the formula, score grade represents the report score, score2 represents the heat score, and the definitions of n and score1 can be referred to the foregoing content.
[0113] In another feasible manner provided by the embodiments of the present invention, to balance the influence of the report score, the heat score, and the blood relationship influence score on the total score, the calculation formula of the total score is as follows:
[0114] score tol = w0·n·score grade + score grade ;
[0115] score grade = w1·score1 + w2·score2
[0116] It should be noted that in this feasible manner, w0 will represent the weight corresponding to the report score, and w2 will be the weight corresponding to the heat score.
[0117] Optionally, for the above-mentioned step S145, in a feasible manner provided by the embodiments of the present invention, it specifically includes:
[0118] Conduct a business impact analysis on the target report to determine the business impact report corresponding to the target report. Wherein, after the data in the target report is updated, the data in the business impact report corresponding to the target report will be updated accordingly;
[0119] Determine the business impact score of the target report based on the quantity of the business impact reports corresponding to the target report;
[0120] Obtain the report scores of each target report based on the heat scores, blood relationship influence scores, and business impact scores of each target report.
[0121] That is to say, the embodiments of the present invention will also determine the business impact score of the target report according to the quantity of the business impact reports directly dependent on the data in the target report, and then calculate the report score based on the business impact score.
[0122] Therefore, the embodiments of the present invention complete the analysis of the influence degree of the target report based on three dimensions: blood relationship, business impact, and heat. Furthermore, the importance level of the to-be-processed job corresponding to the target report will be characterized by the attributes in the three dimensions of blood relationship, business impact, and heat, so that the importance level of the to-be-processed job can be correctly / reasonably expressed.
[0123] Optionally, in a feasible manner provided by the embodiments of the present invention, the calculation formula corresponding to the report score includes:
[0124] score grade = w1·score1 + w2·score2 + w3·score3;
[0125] In the formula, score grade represents the report score, w1 represents the weight corresponding to the blood relationship influence score, score1 represents the blood relationship influence score, w2 represents the weight corresponding to the heat score, score2 represents the heat score, w3 represents the weight corresponding to the business impact score, and score3 represents the business impact score.
[0126] It can be understood that the calculation formula for the sum of scores in this feasible manner can be expressed as:
[0127] score tol = w0·n·scoregrade +score grade ;
[0128] Example 2
[0129] Corresponding to the method for processing jobs provided in Embodiment 1 of the present invention, Embodiment 2 of the present invention further provides a job processing device. Referring to Figure 4 , which shows a schematic structural diagram of the job processing device provided in the embodiments of the present invention. The job processing device 200 provided in the embodiments of the present invention includes:
[0130] A report determination module 210, configured to determine a target report corresponding to each of the to-be-processed jobs when there are multiple to-be-processed jobs;
[0131] A blood relationship determination module 220, configured to perform blood relationship analysis on each of the target reports respectively to determine the number of associated reports having a blood relationship with the target report, and obtain a blood influence score of each of the target reports based on the number of the associated reports;
[0132] A directed graph construction module 230, configured to construct a directed graph of dependency relationships corresponding to all the target reports based on the dependency relationships between any two of the target reports in all the target reports;
[0133] A total determination module 240, configured to, for each of the target reports, determine a total score of the target report based on the blood influence score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships;
[0134] An importance determination module 250, configured to determine the importance of the to-be-processed job corresponding to each of the target reports according to the total score of each of the target reports;
[0135] A processing module 260, configured to process each of the to-be-processed jobs in sequence based on the importance of each of the to-be-processed jobs.
[0136] Optionally, in a feasible manner provided in the embodiments of the present invention, the total determination module includes:
[0137] A downstream determination sub-module, configured to, for each of the target reports, determine the number of downstream reports of the target report in the directed graph of dependency relationships;
[0138] A downstream score acquisition sub-module, configured to, for each of the target reports, obtain a downstream score of the target report based on the product of the blood influence score of the target report and the number of downstream reports;
[0139] A summation sub-module, configured to calculate the sum of the blood relationship influence scores and the downstream scores of each of the target reports respectively, so as to obtain the total score of each of the target reports.
[0140] Optionally, in a feasible manner provided by an embodiment of the present invention, the calculation formula of the downstream score includes:
[0141] score down = w1·n·score1;
[0142] In the formula, score down represents the downstream score, w1 represents the weight value corresponding to the downstream score, n represents the number of downstream reports, and score1 represents the blood relationship influence score.
[0143] Optionally, in a feasible manner provided by an embodiment of the present invention, the total sum determination module includes:
[0144] A heat determination sub-module, configured to determine the heat scores of each of the target reports based on the access times of each of the target reports;
[0145] A report score determination sub-module, configured to obtain the report scores of each of the target reports based on the heat scores and blood relationship influence scores of each of the target reports;
[0146] A summation sub-module, configured to, for each of the target reports, obtain the total score of the target report based on the report score of the target report and the number of downstream reports of the target report in the dependency relationship directed graph.
[0147] Optionally, in a feasible manner provided by an embodiment of the present invention, the report score determination sub-module includes:
[0148] A business influence analysis unit, configured to perform a business influence analysis on the target report to determine the business impact report corresponding to the target report, wherein after the data in the target report is updated, the data in the business impact report corresponding to the target report will be updated correspondingly;
[0149] An influence score determination unit, configured to determine the business influence score of the target report based on the number of business impact reports corresponding to the target report;
[0150] A score calculation unit, configured to obtain the report scores of each of the target reports based on the heat scores, blood relationship influence scores and business influence scores of each of the target reports.
[0151] Optionally, in a feasible manner provided by an embodiment of the present invention, the calculation formula corresponding to the report score includes:
[0152] score grade = w1·score1 + w2·score2 + w3·score3;
[0153] In the formula, score grade represents the report score, w1 represents the weight corresponding to the blood relationship influence score, score1 represents the blood relationship influence score, w2 represents the weight corresponding to the popularity score, score2 represents the popularity score, w3 represents the weight corresponding to the business influence score, and score3 represents the business influence score.
[0154] The processing device 200 of the job provided in the embodiment of the present application can implement each process of the job processing method corresponding to Embodiment 1 and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.
[0155] The embodiment of the present invention further provides a computer device, including a memory and a processor. The memory stores a computer program, and when the computer program runs on the processor, it executes the job processing method corresponding to Embodiment 1.
[0156] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program runs on the processor, it executes the job processing method corresponding to Embodiment 1.
[0157] In several embodiments provided by the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device embodiments described above are only illustrative. For example, the flowcharts and structure diagrams in the drawings show the possible architectures, functions, and operations of the device, method, and computer program product according to multiple embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, and the module, program segment, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the blocks may occur in a different order than marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the structure diagram and / or flowchart, and the combination of blocks in the structure diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0158] In addition, each functional module or unit in various embodiments of the present invention may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
[0159] If the above-mentioned function is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.
[0160] The above is only the specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention can easily think of changes or substitutions, which should all be covered by the protection scope of the present invention.
Claims
1. A method for processing an operation, characterized in that, including: when there are multiple jobs to be processed, determining a target report corresponding to each of the jobs to be processed; performing lineage analysis on each of the target reports respectively to determine the number of associated reports having a lineage relationship with the target report, and obtaining a lineage influence score for each of the target reports based on the number of the associated reports; constructing a directed graph of dependency relationships corresponding to all the target reports based on the dependency relationships between any two of the target reports among all the target reports; for each of the target reports, determining a total score of the target report based on the lineage influence score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships; determining the importance level of the job to be processed corresponding to each of the target reports according to the total score of each of the target reports; processing each of the jobs to be processed in sequence based on the importance level of each of the jobs to be processed.
2. The method for processing an operation according to claim 1, wherein The step of, for each of the target reports, determining a total score of the target report based on the lineage influence score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships includes: for each of the target reports, determining the number of downstream reports of the target report in the directed graph of dependency relationships; for each of the target reports, obtaining a downstream score of the target report based on the product of the lineage influence score of the target report and the number of the downstream reports; respectively calculating the sum of the lineage influence score and the downstream score of each of the target reports to obtain a total score of each of the target reports.
3. The method for processing the operation according to claim 2, wherein The calculation formula of the downstream score including: score down = w1·n·score1; where score down represents the downstream score, w1 represents the weight value corresponding to the downstream score, n represents the number of the downstream reports, and score1 represents the blood relationship influence score.
4. The method for processing the operation according to claim 1, wherein, The step of, for each of the target reports, determining a total score of the target report based on the lineage influence score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships includes: determining a heat score of each of the target reports based on the access times of each of the target reports; obtaining a report score of each of the target reports based on the heat score and the lineage influence score of each of the target reports; for each of the target reports, obtaining a total score of the target report based on the report score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships.
5. The method for processing an operation according to claim 4, wherein The step of obtaining a report score of each of the target reports based on the heat score and the lineage influence score of each of the target reports includes: performing business impact analysis on the target report to determine a business impact report corresponding to the target report, wherein after the data in the target report is updated, the data in the business impact report corresponding to the target report will be updated correspondingly; determining a business influence score of the target report based on the number of business impact reports corresponding to the target report; obtaining a report score of each of the target reports based on the heat score, the lineage influence score and the business influence score of each of the target reports.
6. The method for processing an operation according to claim 5, wherein, The calculation formula corresponding to the report score includes: score grade = w1·score1 + w2·score2 + w3·score3; where score grade represents the report score, w1 represents the weight corresponding to the blood relationship influence score, score1 represents the blood relationship influence score, w2 represents the weight corresponding to the popularity score, score2 represents the popularity score, w3 represents the weight corresponding to the business influence score, and score3 represents the business influence score.
7. A processing device for an operation, characterized in that, including: A report determination module, configured to determine a target report corresponding to each of the to-be-processed jobs when there are multiple to-be-processed jobs; A lineage determination module, configured to perform lineage analysis on each of the target reports respectively, to determine the number of associated reports having a lineage relationship with the target report, and obtain a lineage influence score for each of the target reports based on the number of the associated reports; A directed graph construction module, configured to construct a directed graph of dependency relationships corresponding to all the target reports based on the dependency relationships between any two of the target reports among all the target reports; A total determination module, configured to, for each of the target reports, determine the total score of the target report based on the lineage influence score of the target report and the number of downstream reports of the target report in the directed graph of dependency relationships; An importance determination module, configured to determine the importance of the to-be-processed job corresponding to each of the target reports according to the total score of each of the target reports; A processing module, configured to process each of the to-be-processed jobs in sequence based on the importance of each of the to-be-processed jobs.
8. The processing device for the operation according to claim 7, wherein The total determination module includes: A downstream determination sub-module, configured to, for each of the target reports, determine the number of downstream reports of the target report in the directed graph of dependency relationships; A downstream score acquisition sub-module, configured to, for each of the target reports, obtain the downstream score of the target report based on the product of the lineage influence score of the target report and the number of downstream reports; A summation sub-module, configured to calculate the sum of the lineage influence score and the downstream score of each of the target reports respectively, to obtain the total score of each of the target reports.
9. A computer device, characterized in that, Comprising a memory and a processor, the memory stores a computer program, and the computer program, when running on the processor, executes the processing method of the job according to any one of claims 1-6.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and the computer program, when running on the processor, executes the processing method of the job according to any one of claims 1-6.
Citation Information
Patent Citations
Task processing method and device, server, and storage medium
CN113918289A
Data blood relationship analysis method and device, computer equipment and storage medium
CN114610791A