Task allocation method and device for Jenkins platform

A technology of task allocation and average allocation, applied in the direction of resource allocation, multi-programming device, program control design, etc., can solve the problems of blocking subsequent task allocation execution, low task execution efficiency, task backlog, etc., to solve the problem of resource waste, The effect of reducing processing time and improving processing efficiency

Active Publication Date: 2017-01-18
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF11 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, due to the different execution capabilities of each task execution node, some task execution nodes may experience abnormalities during the execution process. Therefore, after a preset period of time, some task execution nodes will be idle, and some task execution nodes will be idle. In the case of a backlog of tasks, the task execution node of the task backlog is continuously busy, while other task execution nodes are idle, which will block the allocation and execution of subsequent tasks, resulting in waste of resources and low task execution efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Task allocation method and device for Jenkins platform
  • Task allocation method and device for Jenkins platform
  • Task allocation method and device for Jenkins platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0065] figure 1 It is a flow chart of a task assignment method based on the Jenkins platform shown according to an exemplary embodiment. This embodiment uses the method to be applied to the Jenkins platform as an example. In this embodiment, a task assignment is established on the Jenkins platform in advance node and multiple task execution nodes, figure 2 It is a node structure dia...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a task allocation method and device for a Jenkins platform. The method comprises the following steps: querying tasks to be executed in a database, wherein the tasks to be executed are the tasks which are not executed by task execution nodes, in sequence averagely allocating the tasks to be executed to all the task execution nodes on the Jenkins platform, further updating the states of the allocated tasks to be in executed states, when each task is executed, updating the state of the executed task to be completed, after a first preset time, determining that the number of the task execution nodes in idle states is greater than that of the task execution nodes in task backlog states, closing all the executing tasks, updating the states of the executing tasks into the states to be executed, after a second preset time, querying the tasks to be executed in the database again. The task allocation method and device for the Jenkins platform disclosed by the invention can solve the problem of resource waste and improve the overall task execution efficiency.

Description

technical field [0001] The present disclosure relates to the field of continuous software integration, and in particular to a task allocation method and device based on the Jenkins platform. Background technique [0002] Jenkins is an open source software project, which aims to provide an open and easy-to-use software platform, so that the software can be continuously integrated and used to monitor continuous and repetitive work, such as Android / iOS software automatic packaging, automatic testing, software release, website monitoring Waiting for work. [0003] When multiple nodes on the Jenkins platform execute a large number of tasks of the same type at the same time, the related task allocation method is to first establish multiple task execution nodes and a task allocation node on the Jenkins platform. After receiving the tasks, the task allocation node distributes similar tasks evenly Execute each task execution node. After a preset period of time, the task allocation n...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5027
Inventor 于淼梁博秦利园
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products