Dynamic code management method and system, computer equipment and readable storage medium
By generating and parsing configuration rules, determining and compiling a list of dynamic code source files, the lack of effective version control in dynamic compilation code management and deployment is solved, and efficient code management and automated deployment is achieved.
Patent Information
- Application Number
- CN202510371519.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-27
- Publication Date
- 2025-05-13
AI Technical Summary
In the modern software development process, there is a lack of effective version control for the management and deployment of dynamic compiled code, which makes it difficult to achieve efficient code management in complex and large-scale cloud computing and containerized environments.
By determining the dynamic code range, generating configuration rules, parsing configuration rules to determine the dynamic code source file list, and compiling the code based on the compilation instructions, updating the compiled result to the storage container.
It realizes effective version management of dynamically compiled code, improves management efficiency, and ensures automated deployment and rollback capabilities when needed.
Smart Images

Figure CN119987847A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to a dynamic code management method, system, computer device and readable storage medium. Background Art
[0002] In modern software development, dynamic compilation and static compilation are the two main ways of compiling code. Static compilation converts source code into executable files during compilation, and all dependencies have been parsed and connected during compilation. Dynamic compilation compiles code on the fly as needed when the program is running, which usually relies on the dynamic parsing capabilities of the runtime environment.
[0003] Dynamic compilation has significant advantages over static compilation. Dynamic compilation allows the program to be dynamically adjusted according to runtime conditions, inputs, or external dependencies, making the program more flexible and extensible. In some application scenarios with high real-time requirements or reliance on external systems, dynamic compilation can provide more efficient performance and more personalized execution paths.
[0004] With the increasing complexity and scale of software development, especially in cloud computing and containerized environments, the management and deployment of dynamically compiled code has become an urgent problem to be solved. Traditional technologies usually use a combination of traditional version control systems and local file storage to manage dynamically compiled code. For example, many projects use version control tools such as Git to manage source code, while the dynamic code files actually used for compilation and running are stored in a specified directory. In a production environment, the path of the dynamic code is often hard-coded in the project. When the project is called, it reads the file content in real time according to the preset path, compiles and executes it. Although this method realizes code storage and management to a certain extent, it lacks effective version control for dynamically compiled code. Summary of the invention
[0005] Based on this, it is necessary to provide a dynamic code management method, system, computer device and readable storage medium to address the above technical problems.
[0006] A dynamic code management method, comprising:
[0007] Determine a dynamic code range, and generate corresponding configuration rules according to the dynamic code range, wherein the configuration rules include execution plan information and dynamic code information;
[0008] Parsing the configuration rules and determining a list of dynamic code source files, and storing the list of dynamic code source files in a storage module;
[0009] Obtain code compilation instructions, obtain a dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compile the code in the dynamic code source file list, and update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container.
[0010] In one embodiment, the steps of determining a dynamic code range and generating a corresponding configuration rule according to the dynamic code range, wherein the configuration rule includes execution plan information and dynamic code information, include:
[0011] Determine dynamic code scope based on version plan;
[0012] Generate corresponding configuration rules according to the dynamic code range, the configuration rules include execution plan information and dynamic code information, the execution plan information includes plan creation time, plan trigger type, plan execution time and plan status, the dynamic code information includes a source code information list, and the source code information object in the source code information list includes a source code version number, a source code file name and a source code path.
[0013] In one embodiment, the step of parsing the configuration rules and determining a list of dynamic code source files, and storing the list of dynamic code source files in a storage module includes:
[0014] Parsing the execution plan information in the configuration rule to determine the plan trigger type, which includes timed trigger and manual trigger;
[0015] When the plan starts to be executed, the source code information list of the dynamic code information in the configuration rule is traversed and a list of dynamic code source files is determined;
[0016] The dynamic code source file list is stored in a storage module.
[0017] In one embodiment, when the plan starts to be executed, the step of traversing the source code information list of the dynamic code information in the configuration rule and determining the dynamic code source file list includes:
[0018] When the plan starts to be executed, the source code information list of the dynamic code information in the configuration rule is traversed, and the dynamic code source file list is obtained and determined according to the version number, source code file name and source code path of the source code.
[0019] In one embodiment, the step of parsing the execution plan information in the configuration rule and determining the plan trigger type, wherein the plan trigger type includes a timed trigger and a manual trigger, comprises:
[0020] Parsing the execution plan information in the configuration rule to determine the plan trigger type;
[0021] If the plan trigger type is a timed trigger, the plan will be automatically executed when the preset time is reached;
[0022] If the plan trigger type is manual trigger, the plan is executed manually.
[0023] In one embodiment, the steps of obtaining a code compilation instruction, obtaining a dynamic code source file list corresponding to the compilation instruction based on the code compilation instruction, compiling the code in the dynamic code source file list, and updating the compiled dynamic code compilation result to a corresponding position of a dynamic code compilation result storage container include:
[0024] Obtaining a code compilation instruction, and obtaining a dynamic code source file list corresponding to the compilation instruction from a storage module based on the code compilation instruction;
[0025] Compile the codes in the dynamic code source file list, and update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container;
[0026] Get the list of dynamic code compilation result objects, and update the compiled dynamic code compilation result objects to the list of dynamic code compilation result objects.
[0027] In one embodiment, the dynamic code management method further includes:
[0028] The executing program asynchronously calls the dynamic code in the dynamic code compilation result storage container to run the program.
[0029] A dynamic code management system, comprising:
[0030] A configuration module, used to determine a dynamic code range and generate corresponding configuration rules according to the dynamic code range, wherein the configuration rules include execution plan information and dynamic code information;
[0031] A parsing module connected to the configuration module, the parsing module is used to parse the configuration rules and determine a list of dynamic code source files, and store the list of dynamic code source files in a storage module;
[0032] A compilation module is connected to the parsing module, and the compilation module is used to obtain code compilation instructions, obtain a dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compile the code in the dynamic code source file list, and update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container.
[0033] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the above embodiments when executing the computer program.
[0034] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method described in any one of the above embodiments.
[0035] Compared with the prior art, the above-mentioned dynamic code management method, system, computer device and readable storage medium, the dynamic code management method includes: first, determining the dynamic code range, and generating corresponding configuration rules according to the dynamic code range, the configuration rules including execution plan information and dynamic code information; secondly, parsing the configuration rules and determining the dynamic code source file list, and storing the dynamic code source file list in the storage module; finally, obtaining the code compilation instruction, obtaining the dynamic code source file list corresponding to the compilation instruction based on the code compilation instruction, and compiling the code in the dynamic code source file list, and updating the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container. This application adopts the above method, after determining the dynamic code range, the subsequent deployment work will be carried out automatically, and dynamic code compilation will be performed through a unique configuration rule, so as to realize the effective version management of the dynamically compiled code and improve the management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 A flowchart of a dynamic code management method provided in one embodiment of the present application;
[0038] Figure 2 A block diagram of the module structure of the dynamic code management method provided in one embodiment of the present application;
[0039] Figure 3 A structural block diagram of a dynamic code management system provided in one embodiment of the present application;
[0040] Figure 4 This is a diagram of the internal structure of a computer device provided in one embodiment of the present application.
[0041] Description of reference numerals:
[0042] 10. Dynamic code management system; 100. Configuration module; 200. Parsing module; 300. Compilation module. DETAILED DESCRIPTION
[0043] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0044] The serial numbers assigned to the components herein, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings). In the description of this application, it should be understood that the orientation or position relationship indicated by the terms "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", etc. are based on the orientation or position relationship shown in the accompanying drawings, which is only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation to this application.
[0045] In the present application, unless otherwise clearly specified and limited, a first feature being “above” or “below” a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being “above”, “above”, and “above” a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being “below”, “below”, and “below” a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.
[0046] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be an intermediate element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be an intermediate element at the same time.
[0047] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0048] See also Figure 1 and Figure 2 , an embodiment of the present application provides a dynamic code management method. The method includes:
[0049] S102: Determine a dynamic code range, and generate corresponding configuration rules according to the dynamic code range, wherein the configuration rules include execution plan information and dynamic code information.
[0050] In some embodiments, the dynamic code range that needs to be managed can be determined by the version plan of the code, and then the configuration generator in the processor is used to generate corresponding configuration rules according to the determined dynamic code range. In some embodiments, the configuration rules may include execution plan information and dynamic code information. Among them, the execution plan information may include plan feature ID, plan creator, plan creation time, plan trigger type (timed trigger or manual trigger), plan execution time (for timed trigger), plan status (to be executed, executing, executed, canceled, failed to execute, etc.) and other information. The dynamic code information may include a source code information list, in which several source code information objects are stored. Each source code information object contains: the version control module branch of the source code source, the version number of the source code (the default is the latest version of the branch, and a specific version number can also be specified), the source code file name, the source code path and other information.
[0051] S104: parsing the configuration rules and determining a dynamic code source file list, and storing the dynamic code source file list in a storage module.
[0052] In some embodiments, the configuration rules can be parsed by the configuration rule executor in the processor and a list of dynamic code source files can be determined, and the list of dynamic code source files can be stored in a storage module. Specifically, the configuration rule executor starts parsing the content according to the received configuration rules. First, the timing of the plan trigger is determined according to the content of the execution plan information: when the plan trigger type is a timed trigger, the plan is automatically executed when the time reaches the predetermined plan execution time; when the plan trigger type is a manual trigger, it can be manually triggered by personnel. When the plan starts to execute, the configuration rule executor will traverse the source code information list in the dynamic code information in the configuration rules, and for each source code information object in the list, according to the version control module branch, source code version number, source code file name, source code path and other information provided by it, a search instruction is sent to the version control module in the processor.
[0053] Then the version control module sends the specific dynamic code source file list to the configuration rule executor based on the retrieval instruction. The configuration rule executor then sends the received dynamic code source file list to the storage module for storage for subsequent use. In some embodiments, the storage module can be an object storage module, which can reduce storage costs and is suitable for large-scale data storage.
[0054] S106: Obtain code compilation instructions, obtain a dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compile the code in the dynamic code source file list, and update the compiled dynamic code compilation result to a corresponding position of the dynamic code compilation result storage container.
[0055] In some embodiments, the compiler in the processor can obtain code compilation instructions, obtain a list of dynamic code source files corresponding to the compilation instructions based on the code compilation instructions, compile the code in the list of dynamic code source files, and update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container. Specifically, after the compiler obtains the code compilation instructions, it can obtain the list of dynamic code source files corresponding to the compilation instructions from the storage module, and compile the code in the list of dynamic code source files. Update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container. In some embodiments, for existing and equivalent dynamic code compilation results, the compiler will skip repeated compilation, thereby reducing compilation time and resource waste.
[0056] This embodiment adopts the above method. After determining the dynamic code range, the subsequent deployment work will be automated, and the dynamic code will be compiled through a unique configuration rule. When a rollback is required, the dynamic code can be completely rolled back by rolling back the old configuration rule, thereby achieving effective version management of the dynamically compiled code and improving management efficiency.
[0057] In some embodiments, the steps of parsing the configuration rules and determining a list of dynamic code source files, and storing the list of dynamic code source files in a storage module include: parsing the execution plan information in the configuration rules, determining the plan trigger type, and the plan trigger type includes a timed trigger and a manual trigger; when the plan starts to execute, traversing the source code information list of the dynamic code information in the configuration rules and determining a list of dynamic code source files; storing the list of dynamic code source files in a storage module. In some embodiments, the timing time of the timed trigger can be set according to actual needs, and no specific limitation is made here.
[0058] In some embodiments, the step of traversing the source code information list of the dynamic code information in the configuration rules and determining the dynamic code source file list when the plan starts to execute includes: when the plan starts to execute, traversing the source code information list of the dynamic code information in the configuration rules, and obtaining and determining the dynamic code source file list based on information such as the version control module branch of the source code, the version number of the source code, the source code file name and the source code path.
[0059] In some embodiments, the step of parsing the execution plan information in the configuration rules and determining the plan trigger type, wherein the plan trigger type includes a timed trigger and a manual trigger, comprises: parsing the execution plan information in the configuration rules and determining the plan trigger type; if the plan trigger type is a timed trigger, the plan is automatically executed when the time reaches a preset time; if the plan trigger type is a manual trigger, the plan is manually executed. In some embodiments, the preset time can be selected according to actual needs, for example, the preset time can be set to 1ms, 0.1ms, etc.
[0060] In some embodiments, the steps of obtaining a code compilation instruction, obtaining a list of dynamic code source files corresponding to the compilation instruction based on the code compilation instruction, compiling the code in the list of dynamic code source files, and updating the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container include: obtaining a code compilation instruction, obtaining a list of dynamic code source files corresponding to the compilation instruction from a storage module based on the code compilation instruction; compiling the code in the list of dynamic code source files, and updating the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container; obtaining a list of dynamic code compilation result, and updating the compiled dynamic code compilation result to the list of dynamic code compilation result. In some embodiments, after the compiled dynamic code compilation result is updated to the corresponding position of the dynamic code compilation result storage container, the list of dynamic code compilation result can be updated synchronously for subsequent use and improved efficiency.
[0061] In some embodiments, the dynamic code management method further includes: the executing program asynchronously calls the dynamic code in the dynamic code compilation result storage container to run the program. In other words, the compilation and calling of the dynamic code are executed asynchronously, so that when the running program calls the updated dynamic code, the execution efficiency of the production project will not be affected, and the logic of the program can be updated without feeling.
[0062] See also Figure 3 Another embodiment of the present application provides a dynamic code management system 10. The dynamic code management system 10 includes: a configuration module 100, a parsing module 200, and a compiling module 300. The configuration module 100 is used to determine the dynamic code range, and generate corresponding configuration rules according to the dynamic code range, and the configuration rules include execution plan information and dynamic code information. The parsing module 200 is connected to the configuration module 100. The parsing module 200 is used to parse the configuration rules and determine the dynamic code source file list, and store the dynamic code source file list to the storage module. The compiling module 300 is connected to the parsing module 200. The compiling module 300 is used to obtain code compilation instructions, obtain the dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compile the code in the dynamic code source file list, and update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container.
[0063] In some embodiments, the specific structure of the configuration module 100 is not limited, as long as it has the function of determining the dynamic code range and generating corresponding configuration rules according to the dynamic code range. Specifically, the configuration module 100 can be a configuration executor, a processor, etc. The specific structure of the configuration module 100 can be selected according to actual needs and is not specifically limited here.
[0064] In some embodiments, the specific structure of the parsing module 200 is not limited, as long as it has the function of parsing the configuration rules and determining the dynamic code source file list, and storing the dynamic code source file list in the storage module. Specifically, the parsing module 200 can be a processor or an integrated controller. The specific structure of the parsing module 200 can be selected according to actual needs and is not specifically limited here.
[0065] In some embodiments, the specific structure of the compilation module 300 is not limited, as long as it has the function of obtaining code compilation instructions, obtaining a dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compiling the code in the dynamic code source file list, and updating the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container. Specifically, the compilation module 300 can be a compiler or an integrated processor, etc. The specific structure of the compilation module 300 can be selected according to actual needs and is not specifically limited here.
[0066] The dynamic code management system 10 described in this embodiment adopts the above method. After determining the dynamic code range, the subsequent deployment work will be automated, and the dynamic code will be compiled through a unique configuration rule. When a rollback is required, the dynamic code can be completely rolled back by rolling back the old configuration rule, thereby realizing effective version management of the dynamically compiled code and improving management efficiency.
[0067] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a dynamic code management method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0068] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0069] See also Figure 4 Another embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the dynamic code management method described in any one of the above embodiments are implemented.
[0070] In one embodiment, the processor implements the following steps when executing the computer program:
[0071] S102: Determine a dynamic code range, and generate corresponding configuration rules according to the dynamic code range, wherein the configuration rules include execution plan information and dynamic code information;
[0072] S104: parsing the configuration rules and determining a dynamic code source file list, and storing the dynamic code source file list in a storage module;
[0073] S106: Obtain code compilation instructions, obtain a dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compile the code in the dynamic code source file list, and update the compiled dynamic code compilation result to a corresponding position of the dynamic code compilation result storage container.
[0074] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the dynamic code management method described in any one of the above embodiments are implemented.
[0075] In one embodiment, the computer program, when executed by a processor, implements the following steps:
[0076] S102: Determine a dynamic code range, and generate corresponding configuration rules according to the dynamic code range, wherein the configuration rules include execution plan information and dynamic code information;
[0077] S104: parsing the configuration rules and determining a dynamic code source file list, and storing the dynamic code source file list in a storage module;
[0078] S106: Obtain code compilation instructions, obtain a dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compile the code in the dynamic code source file list, and update the compiled dynamic code compilation result to a corresponding position of the dynamic code compilation result storage container.
[0079] The above-mentioned computer device and computer-readable storage medium adopt the above-mentioned method. After determining the dynamic code range, the subsequent deployment work will be automated, and the dynamic code will be compiled through a unique configuration rule. When a rollback is required, the dynamic code can be completely rolled back by rolling back the old configuration rule, thereby realizing effective version management of the dynamically compiled code and improving management efficiency.
[0080] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0081] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0082] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A dynamic code management method, characterized in that: include: Determine a dynamic code range, and generate corresponding configuration rules according to the dynamic code range, wherein the configuration rules include execution plan information and dynamic code information; Parsing the configuration rules and determining a list of dynamic code source files, and storing the list of dynamic code source files in a storage module; Obtain code compilation instructions, obtain a dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compile the code in the dynamic code source file list, and update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container.
2. The dynamic code management method according to claim 1, characterized in that: The step of determining the dynamic code range and generating corresponding configuration rules according to the dynamic code range, wherein the configuration rules include execution plan information and dynamic code information comprises: Determine dynamic code scope based on version plan; Generate corresponding configuration rules according to the dynamic code range, the configuration rules include execution plan information and dynamic code information, the execution plan information includes plan creation time, plan trigger type, plan execution time and plan status, the dynamic code information includes a source code information list, and the source code information object in the source code information list includes a source code version number, a source code file name and a source code path.
3. The dynamic code management method according to claim 2, characterized in that: The step of parsing the configuration rules and determining a list of dynamic code source files, and storing the list of dynamic code source files in a storage module comprises: Parsing the execution plan information in the configuration rule to determine the plan trigger type, which includes timed trigger and manual trigger; When the plan starts to be executed, the source code information list of the dynamic code information in the configuration rule is traversed and a list of dynamic code source files is determined; The dynamic code source file list is stored in a storage module.
4. The dynamic code management method according to claim 3, characterized in that: When the plan starts to be executed, the step of traversing the source code information list of the dynamic code information in the configuration rule and determining the dynamic code source file list includes: When the plan starts to be executed, the source code information list of the dynamic code information in the configuration rule is traversed, and the dynamic code source file list is obtained and determined according to the version number, source code file name and source code path of the source code.
5. The dynamic code management method according to claim 3, characterized in that: The step of parsing the execution plan information in the configuration rule and determining the plan trigger type, wherein the plan trigger type includes a timed trigger and a manual trigger, comprises: Parsing the execution plan information in the configuration rule to determine the plan trigger type; If the plan trigger type is a timed trigger, the plan will be automatically executed when the preset time is reached; If the plan trigger type is manual trigger, the plan is executed manually.
6. The dynamic code management method according to claim 1, characterized in that: The steps of obtaining a code compilation instruction, obtaining a dynamic code source file list corresponding to the compilation instruction based on the code compilation instruction, compiling the code in the dynamic code source file list, and updating the compiled dynamic code compilation result to a corresponding position of a dynamic code compilation result storage container include: Obtaining a code compilation instruction, and obtaining a dynamic code source file list corresponding to the compilation instruction from a storage module based on the code compilation instruction; Compile the codes in the dynamic code source file list, and update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container; Get the list of dynamic code compilation result objects, and update the compiled dynamic code compilation result objects to the list of dynamic code compilation result objects.
7. The dynamic code management method according to claim 1, characterized in that: The method further comprises: The executing program asynchronously calls the dynamic code in the dynamic code compilation result storage container to run the program.
8. A dynamic code management system, characterized in that: include: A configuration module, used to determine a dynamic code range and generate corresponding configuration rules according to the dynamic code range, wherein the configuration rules include execution plan information and dynamic code information; A parsing module connected to the configuration module, the parsing module is used to parse the configuration rules and determine a list of dynamic code source files, and store the list of dynamic code source files in a storage module; A compilation module is connected to the parsing module, and the compilation module is used to obtain code compilation instructions, obtain a dynamic code source file list corresponding to the compilation instructions based on the code compilation instructions, compile the code in the dynamic code source file list, and update the compiled dynamic code compilation result to the corresponding position of the dynamic code compilation result storage container.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.