Task execution method and device, computer equipment and storage medium
By converting the original algorithm configuration table into the target algorithm configuration table, the execution performance problems caused by multiple associated configuration tables in big data computing scenarios are solved, and more efficient task execution and simplified maintenance processes are achieved.
Patent Information
- Application Number
- CN202411485460.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-01-21
AI Technical Summary
In big data computing scenarios, complex algorithms and multiple branch calculations cause the original algorithm configuration table to be associated multiple times, resulting in a degradation in task execution performance.
The original algorithm configuration table is converted into a target algorithm configuration table through the preset configuration table conversion rules. Each row in the target algorithm configuration table maintains the configuration information of all algorithm branches corresponding to a product identification, so that the target only needs to be associated once when executing a task. Algorithm configuration table.
It improves the execution performance of algorithm products, avoids multiple associations of business data, simplifies association logic, and reduces maintenance complexity.
Smart Images

Figure CN119336417A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a task execution method, device, computer equipment and storage medium. Background Art
[0002] With the rise of big data, big data has become more and more widely used due to its powerful computing power and flexible scalability. More and more businesses use big data for computing. However, as more and more complex calculations are performed using big data, the scenarios of big data computing become more complex, and the demand for configuration becomes more prominent.
[0003] For example, for major risk test calculations of insurance products, different products may execute different algorithms, and each algorithm will have different branch calculations. In order to quickly develop similar products in the future, the branches need to be configured, and then the data in the algorithm configuration table is used to determine which branch processes the product needs to execute.
[0004] In order to facilitate programmers to intuitively configure branches, the original algorithm configuration table in the product configuration system is as follows: Figure 1 As shown, in the original algorithm configuration table, each product corresponds to multiple rows of data, and each row of data corresponds to the configuration information of different branch algorithms under different products (whether configured, "Y" for yes, "N" for no). Since each algorithm product may have many different branches, a product may have many rows of configuration data in the configuration table. If a branch in an algorithm product is determined to be associated with the configuration table once, then the configuration table will be associated many times. The script's association logic is complex. When executing a task, since the task corresponds to multiple rows of data in the original algorithm configuration table, the business data corresponding to the task needs to be associated with the original algorithm configuration table many times, resulting in doubling of the business data associated with the task, affecting the execution performance of the algorithm product. Summary of the invention
[0005] The embodiments of the present application provide a task execution method, apparatus, computer equipment and storage medium, which can improve the execution performance of algorithm products.
[0006] In a first aspect, an embodiment of the present application provides a task execution method, which includes:
[0007] Obtaining a target task execution request for a target computing task, wherein the target task execution request carries a target product identifier corresponding to the target computing task;
[0008] In response to the target task execution request, converting a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule, wherein each row in the original algorithm configuration table respectively maintains configuration information of an algorithm branch corresponding to a product identifier, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identifier;
[0009] Associating the target computing task to the target row corresponding to the target product identifier in the target algorithm configuration table according to a preset association rule;
[0010] The target computing task is performed based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches.
[0011] In a second aspect, the embodiment of the present application further provides a task execution device, which includes:
[0012] An acquisition unit, configured to acquire a target task execution request for a target computing task, wherein the target task execution request carries a target product identifier corresponding to the target computing task;
[0013] A conversion unit, configured to convert a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule in response to the target task execution request, wherein each row in the original algorithm configuration table respectively maintains configuration information of an algorithm branch corresponding to a product identifier, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identifier;
[0014] An association unit, configured to associate the target computing task with a target row corresponding to the target product identifier in a target algorithm configuration table according to a preset association rule;
[0015] An execution unit is used to execute the target computing task based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches.
[0016] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.
[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and wherein the program instructions can implement the above method when executed by a processor.
[0018] The embodiment of the present application provides a task execution method, device, computer equipment and storage medium. The method includes: obtaining a target task execution request for a target computing task, the target task execution request carries a target product identification corresponding to the target computing task; in response to the target task execution request, converting a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule, each row in the original algorithm configuration table maintains an algorithm branch configuration information corresponding to a product identification, and each row in the target algorithm configuration table maintains configuration information of all algorithm branches corresponding to a product identification; according to a preset association rule, associating the target computing task to a target row corresponding to the target product identification in the target algorithm configuration table; executing the target computing task based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches. In the embodiment of the present application, the original algorithm configuration table is converted into a target algorithm configuration table before executing the target computing task. Each row in the target algorithm configuration table maintains the configuration information of all algorithm branches corresponding to a product identifier. Therefore, when executing the target computing task, the corresponding business data only needs to be associated with one row in the target algorithm configuration table, without the need for multiple associations, thereby improving the execution performance of the algorithm product. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0020] Figure 1 A schematic diagram of the structure of the original algorithm configuration table provided in the embodiment of the present application;
[0021] Figure 2 A schematic diagram of an application scenario of the task execution method provided in an embodiment of the present application;
[0022] Figure 3 A flowchart of a task execution method provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of a structure of a target algorithm configuration table provided in an embodiment of the present application;
[0024] Figure 5 A schematic block diagram of a task execution device provided in an embodiment of the present application;
[0025] Figure 6 A schematic block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0027] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0028] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0029] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0030] Embodiments of the present application provide a task execution method, apparatus, computer equipment, and storage medium.
[0031] The execution subject of the task execution method may be the task execution device provided in the embodiment of the present application, or a computer device integrating the task execution device, wherein the task execution device may be implemented in hardware or software, and the computer device may be a terminal or a server.
[0032] See also Figure 2 , Figure 2 Schematic diagram of an application scenario of the task execution method provided in the embodiment of the present application. The task execution method is applied to Figure 2In the computer device 10 in the embodiment, the computer device 10 obtains a target task execution request for a target computing task, the target task execution request carries a target product identification corresponding to the target computing task; in response to the target task execution request, the preset original algorithm configuration table is converted into a target algorithm configuration table based on a preset configuration table conversion rule, each row in the original algorithm configuration table respectively maintains an algorithm branch configuration information corresponding to a product identification, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identification; the target computing task is associated with a target row in the target algorithm configuration table corresponding to the target product identification according to a preset association rule; the target computing task is executed based on the target row and a preset algorithm branch library, and the algorithm branch library stores branch algorithm components of multiple algorithm branches. In the embodiment of the present application, since the original algorithm configuration table is converted into a target algorithm configuration table before executing the target computing task, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identification, when executing the target computing task, the corresponding business data only needs to be associated with one row in the target algorithm configuration table, without multiple associations, thereby improving the execution performance of the algorithm product.
[0033] Figure 3 is a flowchart of the task execution method provided in the embodiment of the present application. Figure 3 As shown, the method includes the following steps S110-S140.
[0034] S110. Obtain a target task execution request for a target computing task, where the target task execution request carries a target product identifier corresponding to the target computing task.
[0035] In this embodiment, the target calculation task is the business data to be calculated, for example, the product data corresponding to the target insurance product. At this time, the target product identifier is the product identifier corresponding to the target insurance product.
[0036] In some embodiments, the target task execution request carries not only the target product identifier but also different task type identifiers. In this case, different algorithm branch configurations are set for different task types under different products in the original algorithm configuration table, that is, each row maintains an algorithm branch configuration information corresponding to a product identifier and a task type identifier.
[0037] Among them, the task type identification includes a compliance risk test identification, a content fluency test identification, a popularity test identification, etc. Different task type identifications are used to indicate the use of different algorithm branches for different task calculations.
[0038] S120. In response to the target task execution request, convert the preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule, wherein each row in the original algorithm configuration table maintains an algorithm branch configuration information corresponding to a product identifier.
[0039] In this embodiment, in order to facilitate developers to perform branch configuration, the system retains the original algorithm configuration table. However, if the original configuration table is used directly to perform the computing task, the business data corresponding to the task needs to be associated with the original configuration table multiple times. Not only is the association logic complex and difficult to maintain, but the associated business data is also doubled, thereby affecting the execution performance of the algorithm product. In order to solve these problems, before executing the target computing task, this application will first convert the preset original algorithm configuration table into a target algorithm configuration table based on the preset configuration table conversion rules, such as Figure 4 As shown, each row in the target algorithm configuration table obtained after conversion maintains the configuration information of all algorithm branches corresponding to a product identifier. The target algorithm configuration table is a large wide table. Specifically, the configuration table conversion is performed through the following steps:
[0040] Based on the configuration table conversion rule, the algorithm branch configuration information of the same algorithm branch in the original algorithm configuration table is converted into the same column, and the algorithm branch configuration information of the same product identifier in the original algorithm configuration table is converted into the same row to obtain the target algorithm configuration table.
[0041] In this embodiment, if a branch algorithm is added to the system, the newly added branch algorithm needs to be configured for each product in the original configuration table (i.e., whether the algorithm corresponding to the product needs to be configured with the newly added algorithm branch). The number of new rows needs to be increased as the number of products. However, when converting the target algorithm configuration table, since one branch algorithm corresponds to one column in the target algorithm configuration table, when adding an algorithm branch, only the column corresponding to the algorithm branch needs to be added. At this time, the steps for adjusting the configuration table conversion rules are as follows:
[0042] A conversion adjustment instruction of a newly added target is received, where the newly added target includes a newly added algorithm branch or a newly added algorithm product; and a conversion rule of the configuration table is modified according to the conversion adjustment instruction.
[0043] Specifically, when the newly added target is a newly added algorithm branch, the conversion adjustment instruction instructs the configuration table conversion rule to add a column for the newly added target during the conversion. For example, a branch 5 is added to the target algorithm configuration table. The technician only needs to simply modify the conversion program and convert a column for branch 5 in the configuration wide table (target algorithm configuration table). The table structure of the entity needs to be modified, and there is only one target algorithm configuration table and one product has only one row. The newly added algorithm branch will be automatically converted into its corresponding field. Therefore, it only needs to be associated once in the business table to configure the target algorithm configuration table to obtain all the algorithm branch information corresponding to the product, and it will not cause the data divergence to double. There is no need to add a new associated configuration table for the new configuration, so the risk of the program is greatly reduced and the maintenance of the program is convenient.
[0044] Similarly, when the newly added target is a newly added algorithm product, the conversion adjustment instruction instructs the configuration table conversion rule to add a row for the newly added algorithm product when performing the conversion.
[0045] In order to facilitate the user to configure the algorithm, this embodiment retains the original algorithm configuration table, and configures the product algorithm of each product through the original algorithm configuration table. The method further includes:
[0046] Receive a product configuration adjustment instruction of the original algorithm configuration table; and adjust the original algorithm configuration table according to the product configuration adjustment instruction.
[0047] Among them, if there are new algorithm branches or algorithm products when adjusting the original algorithm configuration table, the configuration table conversion rules need to be adjusted synchronously, otherwise there is no need to adjust the configuration table conversion rules.
[0048] S130. Associating the target computing task with a target row corresponding to the target product identifier in a target algorithm configuration table according to a preset association rule.
[0049] In this embodiment, association rules between the business and the target algorithm configuration table are pre-set. In the association rules, the computing tasks corresponding to different product identifiers are respectively associated with the corresponding rows in the target algorithm configuration table. One product identifier only needs to be associated with one row in the target algorithm configuration table, and there is no need for multiple associations, which facilitates algorithm maintenance and adjustment.
[0050] Specifically, in this embodiment, the row corresponding to the target product identifier in the target algorithm configuration table is determined as the target row, that is, the target computing task is associated with the target row.
[0051] S140: Execute the target computing task based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches.
[0052] In this embodiment, after associating the target computing task with the target row, when executing the target computing task, it is only necessary to associate the corresponding business data with the row, and then process the business data based on the algorithm branch configuration information corresponding to the row.
[0053] Among them, the algorithm branch library provided in this embodiment stores branch algorithm components of multiple algorithm branches. Since some algorithm branch components are big data algorithm branch components, for the branch algorithm components corresponding to the big data algorithm branch components, the big data algorithm itself can be encapsulated in the component. In addition, in order to save storage resources, the branch algorithm components corresponding to the big data algorithm branch components can also encapsulate big data algorithm interfaces such as access links of the big data algorithm branch components.
[0054] Specifically, executing the target computing task based on the target row and a preset algorithm branch library includes:
[0055] Determine multiple target branch algorithm components from the multiple branch algorithm components according to the configuration information of each algorithm branch in the target row; determine a target product algorithm according to the multiple target branch algorithm components; and execute the target calculation task according to the target product algorithm.
[0056] Among them, different branch algorithms have a preset association relationship, and the association relationship limits the execution order of each branch algorithm component. At this time, determining the target product algorithm according to the multiple target branch algorithm components includes:
[0057] Obtaining the execution order of each of the target branch algorithm components; and determining the target product algorithm according to each of the execution orders and the plurality of the target branch algorithm components.
[0058] Furthermore, the target algorithm configuration table is stored in a cache, and after the target computing task is executed based on the target row and the preset algorithm branch library, the method further includes:
[0059] Determine whether the target computing task has been completed; if the target computing task has been completed, release the target algorithm configuration table in the cache.
[0060] It can be seen that the target algorithm configuration table provided in the embodiment of the present application is a cache table, which is generated before executing the algorithm task and released after the task is executed. This ensures that each time a task is executed, the latest target algorithm configuration table can be used to execute the task, thereby ensuring the consistency of the configuration data in the target algorithm configuration table and the original algorithm configuration table.
[0061] To summarize, in the embodiment of the present application, the original algorithm configuration table is converted into a target algorithm configuration table before executing the target computing task. Each row in the target algorithm configuration table maintains the configuration information of all algorithm branches corresponding to a product identifier. Therefore, when executing the target computing task, the corresponding business data only needs to be associated with one row in the target algorithm configuration table, without the need for multiple associations, thereby improving the execution performance of the algorithm product.
[0062] Figure 5 is a schematic block diagram of a task execution device 500 provided in an embodiment of the present application. Figure 5 As shown, corresponding to the above task execution method, the present application also provides a task execution device 500. The task execution device 500 includes a unit for executing the above task execution method, and the task execution device 500 can be configured in a terminal or a server. Figure 5 The task execution device 500 includes an acquisition unit 501, a conversion unit 502, an association unit 503 and an execution unit 504.
[0063] An acquisition unit 501 is used to acquire a target task execution request for a target computing task, wherein the target task execution request carries a target product identifier corresponding to the target computing task;
[0064] A conversion unit 502, configured to convert a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule in response to the target task execution request, wherein each row in the original algorithm configuration table respectively maintains configuration information of an algorithm branch corresponding to a product identifier, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identifier;
[0065] An association unit 503, configured to associate the target computing task with a target row corresponding to the target product identifier in a target algorithm configuration table according to a preset association rule;
[0066] The execution unit 504 is used to execute the target computing task based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches.
[0067] In some embodiments, when executing the step of executing the target computing task based on the target row and the preset algorithm branch library, the execution unit 504 is specifically used to:
[0068] Determining a plurality of target branch algorithm components from a plurality of the branch algorithm components according to the configuration information of each algorithm branch in the target row;
[0069] Determine a target product algorithm according to a plurality of the target branch algorithm components;
[0070] The target computing task is performed according to the target product algorithm.
[0071] In some embodiments, when executing the step of determining the target product algorithm according to the plurality of target branch algorithm components, the execution unit 504 is specifically configured to:
[0072] Obtaining the execution order of each of the target branch algorithm components;
[0073] The target product algorithm is determined according to each of the execution orders and a plurality of the target branch algorithm components.
[0074] In some embodiments, when the conversion unit 502 performs the step of converting the preset original algorithm configuration table into the target algorithm configuration table based on the preset configuration table conversion rule, it is specifically used to:
[0075] Based on the configuration table conversion rule, the algorithm branch configuration information of the same algorithm branch in the original algorithm configuration table is converted into the same column, and the algorithm branch configuration information of the same product identifier in the original algorithm configuration table is converted into the same row to obtain the target algorithm configuration table.
[0076] In some embodiments, the task execution device 500 further includes:
[0077] A first receiving unit, configured to receive a conversion adjustment instruction of a newly added target, wherein the newly added target includes a newly added algorithm branch or a newly added algorithm product;
[0078] A modification unit is used to modify the configuration table conversion rule according to the conversion adjustment instruction.
[0079] In some embodiments, the task execution device 500 further includes:
[0080] A second receiving unit, configured to receive a product configuration adjustment instruction of the original algorithm configuration table;
[0081] An adjustment unit is used to adjust the original algorithm configuration table according to the product configuration adjustment instruction.
[0082] In some embodiments, the target algorithm configuration table is stored in a cache, and the task execution device 500 further includes:
[0083] A judging unit, used to judge whether the target computing task has been completed;
[0084] A releasing unit is used to release the target algorithm configuration table in the cache when the target computing task is completed.
[0085] To sum up, the task execution device 500 in the embodiment of the present application converts the original algorithm configuration table into a target algorithm configuration table before executing the target computing task. Each row in the target algorithm configuration table maintains the configuration information of all algorithm branches corresponding to a product identifier. Therefore, when executing the target computing task, the corresponding business data only needs to be associated with one row in the target algorithm configuration table, without the need for multiple associations, thereby improving the execution performance of the algorithm product.
[0086] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned task execution device and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.
[0087] The task execution device can be implemented in the form of a computer program. Figure 6 Runs on the computer device shown.
[0088] See also Figure 6 , Figure 6 600 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 600 can be a terminal or a server, wherein the terminal can be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device. The server can be an independent server or a server cluster composed of multiple servers.
[0089] See also Figure 6 The computer device 600 includes a processor 602 , a memory and a network interface 605 connected via a system bus 601 , wherein the memory may include a non-volatile storage medium 603 and an internal memory 604 .
[0090] The non-volatile storage medium 603 can store an operating system 6031 and a computer program 6032. The computer program 6032 includes program instructions, and when the program instructions are executed, the processor 602 can execute a task execution method.
[0091] The processor 602 is used to provide computing and control capabilities to support the operation of the entire computer device 600 .
[0092] The internal memory 604 provides an environment for the operation of the computer program 6032 in the non-volatile storage medium 603. When the computer program 6032 is executed by the processor 602, the processor 602 can execute a task execution method.
[0093] The network interface 605 is used to communicate with other devices over the network. Figure 6The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 600 to which the solution of the present application is applied. The specific computer device 600 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0094] The processor 602 is used to run a computer program 6032 stored in the memory to implement the following steps:
[0095] Obtaining a target task execution request for a target computing task, wherein the target task execution request carries a target product identifier corresponding to the target computing task;
[0096] In response to the target task execution request, converting a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule, wherein each row in the original algorithm configuration table respectively maintains configuration information of an algorithm branch corresponding to a product identifier, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identifier;
[0097] Associating the target computing task to the target row corresponding to the target product identifier in the target algorithm configuration table according to a preset association rule;
[0098] The target computing task is performed based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches.
[0099] In some embodiments, the processor 602 specifically implements the following steps when implementing the step of executing the target computing task based on the target row and the preset algorithm branch library:
[0100] Determining a plurality of target branch algorithm components from a plurality of the branch algorithm components according to the configuration information of each algorithm branch in the target row;
[0101] Determine a target product algorithm according to a plurality of the target branch algorithm components;
[0102] The target computing task is performed according to the target product algorithm.
[0103] In some embodiments, when the processor 602 implements the step of determining the target product algorithm according to the plurality of target branch algorithm components, the processor 602 specifically implements the following steps:
[0104] Obtaining the execution order of each of the target branch algorithm components;
[0105] The target product algorithm is determined according to each of the execution orders and a plurality of the target branch algorithm components.
[0106] In some embodiments, when the processor 602 implements the step of converting the preset original algorithm configuration table into the target algorithm configuration table based on the preset configuration table conversion rule, the processor 602 specifically implements the following steps:
[0107] Based on the configuration table conversion rule, the algorithm branch configuration information of the same algorithm branch in the original algorithm configuration table is converted into the same column, and the algorithm branch configuration information of the same product identifier in the original algorithm configuration table is converted into the same row to obtain the target algorithm configuration table.
[0108] In some embodiments, the processor 602 is further configured to execute:
[0109] receiving a conversion adjustment instruction of a newly added target, wherein the newly added target includes a newly added algorithm branch or a newly added algorithm product;
[0110] The configuration table conversion rule is modified according to the conversion adjustment instruction.
[0111] In some embodiments, the processor 602 is further configured to execute:
[0112] Receive a product configuration adjustment instruction of the original algorithm configuration table;
[0113] The original algorithm configuration table is adjusted according to the product configuration adjustment instruction.
[0114] In some embodiments, the target algorithm configuration table is stored in a cache, and after implementing the step of executing the target computing task based on the target row and the preset algorithm branch library, the processor 602 further implements the following steps:
[0115] Determining whether the target computing task has been completed;
[0116] If the target computing task is completed, the target algorithm configuration table in the cache is released.
[0117] It should be understood that in the embodiment of the present application, the processor 602 may be a central processing unit (CPU), and the processor 602 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0118] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.
[0119] Therefore, the present application also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the following steps:
[0120] Obtaining a target task execution request for a target computing task, wherein the target task execution request carries a target product identifier corresponding to the target computing task;
[0121] In response to the target task execution request, converting a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule, wherein each row in the original algorithm configuration table respectively maintains configuration information of an algorithm branch corresponding to a product identifier, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identifier;
[0122] Associating the target computing task to the target row corresponding to the target product identifier in the target algorithm configuration table according to a preset association rule;
[0123] The target computing task is performed based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches.
[0124] In some embodiments, the processor executes the program instructions to implement the target computing task based on the target row and a preset algorithm branch library, including:
[0125] Determining a plurality of target branch algorithm components from a plurality of the branch algorithm components according to the configuration information of each algorithm branch in the target row;
[0126] Determine a target product algorithm according to a plurality of the target branch algorithm components;
[0127] The target computing task is performed according to the target product algorithm.
[0128] In some embodiments, when the processor executes the program instructions to implement the step of determining the target product algorithm according to the plurality of target branch algorithm components, the processor specifically implements the following steps:
[0129] Obtaining the execution order of each of the target branch algorithm components;
[0130] The target product algorithm is determined according to each of the execution orders and a plurality of the target branch algorithm components.
[0131] In some embodiments, when the processor executes the program instructions to implement the step of converting the preset original algorithm configuration table into the target algorithm configuration table based on the preset configuration table conversion rule, the processor specifically implements the following steps:
[0132] Based on the configuration table conversion rule, the algorithm branch configuration information of the same algorithm branch in the original algorithm configuration table is converted into the same column, and the algorithm branch configuration information of the same product identifier in the original algorithm configuration table is converted into the same row to obtain the target algorithm configuration table.
[0133] In some embodiments, when the processor executes the program instructions, it also implements the steps of:
[0134] receiving a conversion adjustment instruction of a newly added target, wherein the newly added target includes a newly added algorithm branch or a newly added algorithm product;
[0135] The configuration table conversion rule is modified according to the conversion adjustment instruction.
[0136] In some embodiments, when the processor executes the program instructions, it also implements the steps of:
[0137] Receive a product configuration adjustment instruction of the original algorithm configuration table;
[0138] The original algorithm configuration table is adjusted according to the product configuration adjustment instruction.
[0139] In some embodiments, the target algorithm configuration table is stored in a cache, and after the processor executes the program instructions to implement the step of performing the target computing task based on the target row and the preset algorithm branch library, it further implements the following steps:
[0140] Determining whether the target computing task has been completed;
[0141] If the target computing task is completed, the target algorithm configuration table in the cache is released.
[0142] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.
[0143] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0144] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0145] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0146] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0147] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A task execution method, characterized in that: include: Obtaining a target task execution request for a target computing task, wherein the target task execution request carries a target product identifier corresponding to the target computing task; In response to the target task execution request, converting a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule, wherein each row in the original algorithm configuration table respectively maintains configuration information of an algorithm branch corresponding to a product identifier, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identifier; Associating the target computing task to the target row corresponding to the target product identifier in the target algorithm configuration table according to a preset association rule; The target computing task is performed based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches.
2. The method according to claim 1, characterized in that The performing the target computing task based on the target row and a preset algorithm branch library includes: Determining a plurality of target branch algorithm components from a plurality of the branch algorithm components according to the configuration information of each algorithm branch in the target row; Determine a target product algorithm according to a plurality of the target branch algorithm components; The target computing task is performed according to the target product algorithm.
3. The method according to claim 2, characterized in that The step of determining a target product algorithm according to a plurality of target branch algorithm components comprises: Obtaining the execution order of each of the target branch algorithm components; The target product algorithm is determined according to each of the execution orders and a plurality of the target branch algorithm components.
4. The method according to claim 1, characterized in that: The method of converting a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule includes: Based on the configuration table conversion rule, the algorithm branch configuration information of the same algorithm branch in the original algorithm configuration table is converted into the same column, and the algorithm branch configuration information of the same product identifier in the original algorithm configuration table is converted into the same row to obtain the target algorithm configuration table.
5. The method according to claim 1, characterized in that: The method further comprises: receiving a conversion adjustment instruction of a newly added target, wherein the newly added target includes a newly added algorithm branch or a newly added algorithm product; The configuration table conversion rule is modified according to the conversion adjustment instruction.
6. The method according to claim 1, characterized in that The method further comprises: Receive a product configuration adjustment instruction of the original algorithm configuration table; The original algorithm configuration table is adjusted according to the product configuration adjustment instruction.
7. The method according to any one of claims 1 to 6, characterized in that The target algorithm configuration table is stored in a cache. After the target calculation task is executed based on the target row and the preset algorithm branch library, the method further includes: Determining whether the target computing task has been completed; If the target computing task is completed, the target algorithm configuration table in the cache is released.
8. A task execution device, characterized in that: include: An acquisition unit, configured to acquire a target task execution request for a target computing task, wherein the target task execution request carries a target product identifier corresponding to the target computing task; A conversion unit, configured to convert a preset original algorithm configuration table into a target algorithm configuration table based on a preset configuration table conversion rule in response to the target task execution request, wherein each row in the original algorithm configuration table respectively maintains configuration information of an algorithm branch corresponding to a product identifier, and each row in the target algorithm configuration table respectively maintains configuration information of all algorithm branches corresponding to a product identifier; An association unit, configured to associate the target computing task with a target row corresponding to the target product identifier in a target algorithm configuration table according to a preset association rule; An execution unit is used to execute the target computing task based on the target row and a preset algorithm branch library, wherein the algorithm branch library stores branch algorithm components of multiple algorithm branches.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the task execution method according to any one of claims 1 to 7 is implemented.
10. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the task execution method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Task request execution method and apparatus
CN108280091A
Index data calculation method and device, computer equipment and storage medium
CN113344442A