Assembly line arrangement method and device based on dynamic dependency management, equipment and medium

CN118708266AActive Publication Date: 2024-09-27NEW COMM INVESTMENT (CHENGDU) BIG DATA CO LTD

Patent Information

Application Number
CN202411178148.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-09-27
Estimated Expiration
2044-08-27

AI Technical Summary

Technical Problem

The existing pipeline orchestration method based on DevOps tools has the problems of complexity management, poor flexibility, high cost and low security in multi-application projects.

Method used

Adopting a pipeline orchestration method based on dynamic dependency management, through task extraction, relationship analysis, dynamic dependency model construction and monitoring dependency changes, the task execution order is dynamically adjusted, and the dependency model is optimized based on execution feedback information to achieve dynamic dependencies between tasks. manage.

Benefits of technology

It improves process efficiency, enhances flexibility, reduces risks, improves quality and resource utilization, can quickly respond to business changes, reduces errors and failures, and improves the flexibility and visual management of the overall process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708266A
    Figure CN118708266A
Patent Text Reader

Abstract

The invention belongs to the technical field of flow arrangement, and discloses a flow line arrangement method, device and equipment based on dynamic dependency management and a medium, the method comprises the following steps: performing task extraction on a multi-application project flow to obtain a task set, the task set comprising a plurality of tasks; performing relation analysis on the plurality of tasks to obtain a dependency relation among the tasks; based on the dependency relationship among the tasks, a dynamic dependency model is constructed, and the dynamic dependency model is used for describing dynamic constraints among the tasks and the execution sequence of the tasks; monitoring the change of the dependency relationship among the tasks, and dynamically adjusting the execution sequence of the multi-application project process based on the changed dependency relationship; after any task is executed, execution feedback information is obtained, and the dynamic dependency model is optimized based on the execution feedback information. The method has the advantages of high process efficiency, high flexibility, low risk, high quality, quick response and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of process orchestration, and specifically relates to a pipeline orchestration method, device, equipment and medium based on dynamic dependency management. Background Art

[0002] Based on the pipeline orchestration method of integrating multiple application projects with DevOps tools (DevOps is a compound word of (Development (Dev) and Operation (Ops))), in the existing technology, the current application status is to use container orchestration scheduling systems such as Kubernetes to build the pipeline of cloud native applications. The existing technology mainly relies on the following key points: Infrastructure management (IaC): Use DevOps tools to automate infrastructure management, including automated installation and management of middleware. Value stream analysis: Analyze and organize the value stream to form an internal end-to-end, complete, orderly, and implementable workflow. Continuous integration / continuous delivery (CI / CD): This is a very important part of DevOps practice, the purpose is to shorten the time from submission to deployment of system changes to the production environment while ensuring high quality; Test nodes: Consider various test nodes when arranging the pipeline, including static code checking, automated unit testing, and manual test verification, to achieve collaborative work with QA / QC.

[0003] However, the above arrangement method still has at least the following defects in practical application: 1. Complexity management: As the number and scale of projects increase, managing dependencies between multiple applications and coordinating their build, test, and deployment processes becomes more complex; 2. Flexibility and scalability: Existing pipeline orchestration methods may not be flexible enough to adapt to rapidly changing business needs and technical environments; 3. Cost control: The implementation of automated tools and processes may incur additional costs, especially in terms of resource allocation and optimization; 4. Security issues: Automated processes may introduce new security vulnerabilities, and it is necessary to ensure that the security of the assembly line is fully considered and strengthened. Summary of the invention

[0004] The purpose of the present invention is to provide a pipeline orchestration method, device, equipment and medium based on dynamic dependency management, so as to solve the problems of high complexity, poor flexibility, high cost and low security of multi-application project processes in the prior art.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions: In a first aspect, the present invention provides a pipeline orchestration method based on dynamic dependency management, the method comprising: Extracting tasks from a multi-application project process to obtain a task set, wherein the task set includes a plurality of tasks; Perform relationship analysis on multiple tasks to obtain the dependencies between them; Based on the dependency relationship between the tasks, a dynamic dependency model is constructed, wherein the dynamic dependency model is used to describe the dynamic constraints between the tasks and the execution order of the tasks; Monitor changes in dependencies between tasks and dynamically adjust the execution order of multi-application project processes based on the changed dependencies; After any task is completed, the execution feedback information is obtained, and the dynamic dependency model is optimized based on the execution feedback information.

[0006] Preferably, the dynamically adjusting the execution order of the multi-application project process includes: starting execution of a new task, pausing the current task, skipping the current task, or repeating the current task.

[0007] Preferably, a dynamic dependency model is constructed based on the dependency relationship between the tasks, including: Based on the dependency relationship between the tasks, determine the dependency coefficient between the tasks; Determine the delay between tasks based on the dependencies between them; A dynamic dependency model is constructed based on the dependency coefficients between tasks, the dependency relationships between tasks, and the delay durations between tasks.

[0008] Preferably, based on the dependency relationship between the tasks, the dependency coefficient between the tasks is determined, including: For any task, extract other tasks in the task set that have dependencies with the task; Determine the public parameters and private parameters between the task and other tasks that have dependencies with the task; A dependency coefficient between the task and other tasks having a dependency relationship with the task is determined according to the number of public parameters and the number of private parameters.

[0009] Preferably, when there is a dependency relationship between any task in the task set and another task, the expression of the dynamic dependency model is: ; In the formula, A Indicates the task A , B Indicates the task B , Indicates the task BThe execution start time of Indicates the task A The execution end time of Indicates the task A With the task B The dependence coefficient between For the task A With the task B The dependencies between Indicates the task A With the task B The delay time between .

[0010] Preferably, when there is a dependency relationship between any one task in the task set and at least two other tasks, the expression of the dynamic dependency model is: ; In the formula, Indicates i The execution start time of a task, Indicates j The execution end time of a task, J Indicates i The total number of other tasks that the task has dependencies on. Indicates i Task and j The dependency coefficients between other tasks, Indicates i Task and j Dependencies between other tasks, Indicates i Task and j The delay time between other tasks; i =1,2,…, I , I represents the total number of tasks in the task set, j For the i The task has a dependency relationship j Other tasks, J < I ,and i ≠ j .

[0011] Preferably, the dynamic dependency model is optimized based on the execution feedback information, including: According to the execution feedback information, the dependency coefficients between the tasks and the dependency relations between the tasks are adjusted to obtain the adjusted dependency coefficients between the tasks and the adjusted dependency relations between the tasks; The dynamic dependency model is reconstructed according to the adjusted dependency coefficients between the tasks and the adjusted dependency relations between the tasks.

[0012] In a second aspect, the present invention provides a pipeline orchestration device based on dynamic dependency management, which is used to implement the above-mentioned pipeline orchestration method based on dynamic dependency management, and the device includes: A task extraction module is used to extract tasks from multi-application project processes to obtain a task set, wherein the task set includes multiple tasks; The relationship analysis module is used to analyze the relationship between multiple tasks and obtain the dependency relationship between the tasks; A model building module, used to build a dynamic dependency model based on the dependency relationship between the tasks, wherein the dynamic dependency model is used to describe the dynamic constraints between the tasks and the execution order of the tasks; The relationship monitoring module is used to monitor the changes in the dependencies between tasks and dynamically adjust the execution order of multi-application project processes based on the changed dependencies; The model optimization module is used to obtain execution feedback information after any task is completed, and optimize the dynamic dependency model based on the execution feedback information.

[0013] In a third aspect, the present invention provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned pipeline orchestration method based on dynamic dependency management when executing the computer program.

[0014] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned pipeline orchestration method based on dynamic dependency management.

[0015] Beneficial effects: 1. Improved process efficiency: By sensing changes in dependencies in real time, tasks can be scheduled and executed more efficiently, avoiding unnecessary waiting and delays, and improving the efficiency of the overall process; 2. Enhanced flexibility: Dynamically adjust the execution of multi-application project processes based on dependencies, and flexibly respond to various situations, such as the addition, change or delay of tasks, so as to better adapt to changes in business needs; 3. Reduce risks: Timely discovery and handling of dependency conflicts or abnormal situations can reduce the occurrence of errors and failures and reduce project risks; 4. Improve quality: Ensuring that tasks are performed in the correct order helps improve the quality of products or services; 5. Better resource utilization: Allocate resources reasonably and improve resource utilization according to task dependencies and real-time requirements; 6. Visualization and monitoring: By building a dynamic dependency model, you can have a clearer understanding of the entire process, making it easier to monitor and manage; 7. Rapid response to changes: In a dynamic business environment, the ability to quickly respond to market changes and customer needs improves the company's competitiveness. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings: Figure 1 It is a flow chart of a pipeline orchestration method based on dynamic dependency management provided by one embodiment of the present invention; Figure 2 It is a block diagram of a pipeline orchestration device based on dynamic dependency management provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the present invention will be briefly introduced below in combination with the drawings and the description of the embodiments or the prior art. Obviously, the following description of the structure of the drawings is only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention.

[0018] Embodiment 1 Figure 1 : is a flowchart of a pipeline orchestration method based on dynamic dependency management provided by an embodiment of the present invention. The pipeline orchestration method based on dynamic dependency management in this embodiment runs on a server or a management terminal or other device. The server or management terminal or other device includes: Integrated Development Environment (IDE) or code repository: used to store and manage code and support version control; Continuous Integration Server (CI Server): automatically compiles, tests, and packages code changes; Configuration management tools: tools that manage and automate infrastructure and its configuration, such as Ansible, Chef, or Puppet; Containerization and container orchestration systems: For example, container technology (Docker) is used to create isolated application environments, while Kubernetes is used to manage and orchestrate these containers; Visual code arrangement: Visual code arrangement and process arrangement can quickly create process and page functions through visual operations for subsequent integration; Continuous Deployment Tools (CD Tools): Automates the steps of releasing software to test, UAT, and production environments; Monitoring and logging system: collects system performance data and log information through various visualization tools for problem diagnosis and performance analysis, and quickly locates the current system problem node; Feedback and reporting mechanisms: Dashboards and reporting tools that provide information such as project status, success rate, performance indicators, etc. and provide timely feedback to project stakeholders.

[0019] Based on the above device, this embodiment provides a pipeline orchestration method based on dynamic dependency management, such as Figure 1 As shown, the method includes: Step S10: extracting tasks from the multi-application project process to obtain a task set, wherein the task set includes a plurality of tasks.

[0020] Step S20: Analyze the relationship between multiple tasks to obtain the dependency relationship between the tasks.

[0021] Step S30: constructing a dynamic dependency model based on the dependency relationship between the tasks, wherein the dynamic dependency model is used to describe the dynamic constraints between the tasks and the execution order of the tasks.

[0022] In this embodiment, the dynamic constraints between tasks are used to characterize that the completion time of any task may be restricted by resources, task priorities, environmental conditions, etc.; this embodiment can also visualize the dynamic dependency model so that the staff can understand the entire process more clearly and facilitate monitoring and management.

[0023] Specifically, based on the dependency relationship between tasks, a dynamic dependency model is constructed, including: Step S301: Determine the dependency coefficients between the tasks based on the dependency relationships between the tasks; Step S302: Determine the delay duration between tasks based on the dependency relationship between tasks; Step S303: construct a dynamic dependency model based on the dependency coefficients between the tasks, the dependency relationships between the tasks, and the delay durations between the tasks.

[0024] In step S301, based on the dependency relationship between the tasks, the dependency coefficients between the tasks are determined. The dependency coefficients between the tasks are determined, including: Step a10: for any task, extract other tasks in the task set that have a dependency relationship with the task; Step a20: determining the common parameters and private parameters between the task and other tasks having dependency relationships with the task; Step a30: Determine the dependency coefficient between the task and other tasks having a dependency relationship with the task according to the number of public parameters and the number of private parameters.

[0025] In this embodiment, the dependency coefficient between tasks is used to indicate the overlap between the scheduling parameters of two tasks when scheduling. For example, there is a dependency relationship between two tasks, that is, task A and tasks B ,Task A In the dynamic dependency model of task A and task B, there are 2 public parameters and 1 private parameter. A With the task B The dependence coefficient between them is 1 / (2+1).

[0026] In this embodiment, the dependency relationship between the tasks represents the acceptable deviation time between two tasks, for example: A After the execution is completed, immediately B Perform associated scheduling, the deviation time is 0; when the task B The task dependency is scheduled 200ms in advance. At this time, the deviation time is -200ms.

[0027] In this embodiment, when there is a dependency relationship between any task in the task set and another task, the expression of the dynamic dependency model is: (1); In formula (1), A Representation Task A , B Representation Task B , Representation Task B The execution start time of Representation Task A The execution end time of Representation Task A With the task B The dependence coefficient between The value range of is [0,1], For the task A With the task B The dependencies between Representation Task A With the task B The delay time between A With the task B Dependencies between and tasks A With the task B The dependence coefficient between , private parameters have tasksB The execution start time , then the task A With the task B The dependence coefficient between them is 1 / (2+1).

[0028] Formula (1) is mainly applicable to the situation where one task has a dependency relationship with only one other task, which is a one-to-one relationship. In a multi-application project process, there may be a one-to-many relationship or a many-to-many relationship between tasks. Therefore, it is also necessary to establish a one-to-many or many-to-many dynamic dependency model.

[0029] Specifically, when there is a dependency relationship between any one task in the task set and at least two other tasks, the expression of the dynamic dependency model is: (2); In formula (2), Indicates i The execution start time of a task, Indicates j The execution end time of a task, J Indicates i The total number of other tasks that the task has dependencies on. Indicates i Task and j The dependency coefficients between other tasks, The value range of is [0,1], Indicates i Task and j Dependencies between other tasks, Indicates i Task and j The delay time between other tasks; i =1,2,…, I , I represents the total number of tasks in the task set, j For the i The task has a dependency relationship j Other tasks, J < I ,and i ≠ j .

[0030] The common parameters in formula (2) are: i Task and j The dependency coefficients between other tasks , No. i Task and j Dependencies between other tasks ; Private parameters are:i The execution start time of the task : The number of common parameters will change according to the number of other tasks, so the dependency coefficient will change dynamically during the execution of the task; therefore, the change of the dependency coefficient can be monitored and the output of formula (2) (i.e., i The execution start time of each task) can be used to dynamically adjust the execution order of multi-application project processes.

[0031] Step S40: Monitor the changes in the dependencies between tasks, focusing on the dependency coefficients and Changes in dependencies dynamically adjust the execution order of multi-application project processes based on the changed dependencies.

[0032] In this embodiment, the dynamically adjusting the execution order of the multi-application project process includes: starting execution of a new task, pausing the current task, skipping the current task, or repeating the current task.

[0033] Step S50: After any task is executed, execution feedback information is obtained. The execution feedback information is obtained by observing the delay duration and total duration of the task during the execution process in the system log (the entire task execution duration), and then by adjusting the delay duration and total duration information of the execution task after each dependency relationship, to optimize the dynamic dependency model.

[0034] Specifically, the dynamic dependency model is optimized, including: Step S501: According to the execution feedback information (i.e. the delay time and total time of the task), adjust the dependency coefficients between the tasks and dependencies , and then collect new feedback information; Step S502: Adjust 10 times according to the method of step S501 to determine the dependency coefficient of the shortest duration of the task delay and the total duration. and dependencies ; Step S503: Adjust the dependency coefficient obtained in step S502 and dependencies The dynamic dependency model is reconstructed, that is, the dynamic dependency model is updated.

[0035] Embodiment 2 Figure 2 is a block diagram of a pipeline orchestration device based on dynamic dependency management provided by an embodiment of the present invention, such as Figure 2 As shown, this embodiment provides a pipeline orchestration device based on dynamic dependency management, which is used to implement the pipeline orchestration method based on dynamic dependency management of embodiment 1. The device includes: A task extraction module is used to extract tasks from multi-application project processes to obtain a task set, wherein the task set includes multiple tasks; The relationship analysis module is used to analyze the relationship between multiple tasks and obtain the dependency relationship between the tasks; A model building module, used to build a dynamic dependency model based on the dependency relationship between the tasks, wherein the dynamic dependency model is used to describe the dynamic constraints between the tasks and the execution order of the tasks; The relationship monitoring module is used to monitor the changes in the dependencies between tasks and dynamically adjust the execution order of multi-application project processes based on the changed dependencies; The model optimization module is used to obtain execution feedback information after any task is completed, and optimize the dynamic dependency model based on the execution feedback information.

[0036] This embodiment also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned pipeline orchestration method based on dynamic dependency management when executing the computer program.

[0037] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned pipeline orchestration method based on dynamic dependency management is implemented.

[0038] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0039] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0040] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A pipeline orchestration method based on dynamic dependency management, characterized in that: The method comprises: Extracting tasks from a multi-application project process to obtain a task set, wherein the task set includes a plurality of tasks; Perform relationship analysis on multiple tasks to obtain the dependencies between them; Based on the dependency relationship between the tasks, a dynamic dependency model is constructed, wherein the dynamic dependency model is used to describe the dynamic constraints between the tasks and the execution order of the tasks; Monitor changes in dependencies between tasks and dynamically adjust the execution order of multi-application project processes based on the changed dependencies; After any task is completed, the execution feedback information is obtained, and the dynamic dependency model is optimized based on the execution feedback information.

2. The pipeline orchestration method based on dynamic dependency management according to claim 1, characterized in that: The dynamically adjusting the execution order of the multi-application project process includes: starting execution of a new task, pausing the current task, skipping the current task, or repeating the current task.

3. The pipeline orchestration method based on dynamic dependency management according to claim 1, characterized in that: Based on the dependencies between tasks, a dynamic dependency model is constructed, including: Based on the dependency relationship between the tasks, determine the dependency coefficient between the tasks; Determine the delay between tasks based on the dependencies between them; A dynamic dependency model is constructed based on the dependency coefficients between tasks, the dependency relationships between tasks, and the delay durations between tasks.

4. The pipeline orchestration method based on dynamic dependency management according to claim 3, characterized in that: Based on the dependency relationship between tasks, the dependency coefficients between tasks are determined, including: For any task, extract other tasks in the task set that have dependencies with the task; Determine the public parameters and private parameters between the task and other tasks that have dependencies with the task; A dependency coefficient between the task and other tasks having a dependency relationship with the task is determined according to the number of public parameters and the number of private parameters.

5. The pipeline orchestration method based on dynamic dependency management according to claim 4, characterized in that: When there is a dependency relationship between any task in the task set and another task, the expression of the dynamic dependency model is: ; In the formula, A Indicates the task A , B Indicates the task B , Indicates the task B The execution start time of Indicates the task A The execution end time of Indicates the task A With the task B The dependence coefficient between For the task A With the task B The dependencies between Indicates the task A With the task B The delay time between .

6. The pipeline orchestration method based on dynamic dependency management according to claim 4, characterized in that: When there is a dependency relationship between any one task in the task set and at least two other tasks, the expression of the dynamic dependency model is: ; In the formula, Indicates i The execution start time of a task, Indicates j The execution end time of a task, J Indicates i The total number of other tasks that the task has dependencies on. Indicates i Task and j The dependency coefficients between other tasks, Indicates i Task and j Dependencies between other tasks, Indicates i Task and j The delay time between other tasks; i =1,2,…, I , I represents the total number of tasks in the task set, j For the i The task has a dependency relationship j Other tasks, J < I ,and i ≠ j .

7. The pipeline orchestration method based on dynamic dependency management according to claim 6, characterized in that: Optimize the dynamic dependency model based on execution feedback information, including: According to the execution feedback information, the dependency coefficients between the tasks and the dependency relationships between the tasks are adjusted to obtain the adjusted dependency coefficients between the tasks and the adjusted dependency relationships between the tasks; The dynamic dependency model is reconstructed according to the adjusted dependency coefficients between the tasks and the adjusted dependency relations between the tasks.

8. A pipeline orchestration device based on dynamic dependency management, used to implement the pipeline orchestration method based on dynamic dependency management according to any one of claims 1 to 7, characterized in that: The device comprises: A task extraction module is used to extract tasks from multi-application project processes to obtain a task set, wherein the task set includes multiple tasks; The relationship analysis module is used to analyze the relationship between multiple tasks and obtain the dependency relationship between the tasks; A model building module, used to build a dynamic dependency model based on the dependency relationship between the tasks, wherein the dynamic dependency model is used to describe the dynamic constraints between the tasks and the execution order of the tasks; The relationship monitoring module is used to monitor the changes in the dependencies between tasks and dynamically adjust the execution order of multi-application project processes based on the changed dependencies; The model optimization module is used to obtain execution feedback information after any task is completed, and optimize the dynamic dependency model based on the execution feedback information.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the pipeline orchestration method based on dynamic dependency management described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the pipeline orchestration method based on dynamic dependency management described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Multi-energy system digital twin application process modeling and deploying method and system

    CN112541836A

  • Data processing method and system, electronic equipment and program product

    CN113672269A

  • Task process design method and device

    CN115129944A

  • Task scheduling model construction method and device

    CN118377605A

  • Identifying software dependencies using line-of-code behavior and relation models

    US20200310954A1

Cited By

  • Synchronous sharing method for online office information

    CN118964495A

  • Traffic management method and system based on traffic situation

    CN120932464A

  • Workflow orchestration method and apparatus, server, storage medium, and program product

    WO2026138808A1