CN-122022330-A - Material distribution method and electronic equipment
Abstract
The application provides a material distribution method and electronic equipment, and relates to the technical field of material distribution. The method comprises the steps of taking a first target test task, applying for target materials by the first target test task, taking target material state information, mapping a database by the first target test task, the second target test task and pre-stored coefficients when the information indicates that the target materials are occupied by the second target test task, obtaining a first target score and a second target score, taking the dependency relationship between the first target test task and the second target test task, determining an allocation strategy by the first target score, the second target score and the dependency relationship, and carrying out material allocation according to the allocation strategy. The first target score, the second target score and the dependency relationship are used as two dimensions for judging the emergency degree of the test task, so that the emergency degree of the test task is finely distinguished, limited test resources are led to be preferentially served for the test task with higher comprehensive emergency degree, and the utilization rate of the resources is improved as a whole.
Inventors
- WANG DONG
- ZHANG QI
- LIU TING
- FENG ZHONGTANG
Assignees
- 苏州元脑智能科技有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260129
Claims (10)
- 1. A method of dispensing a material, comprising: Acquiring a first target test task, and applying for a target material according to the first target test task; Acquiring state information of the target material, and when the state information indicates that the target material is occupied by a second target test task, obtaining a first target score corresponding to the first target test task and a second target score corresponding to the second target test task according to the first target test task, the second target test task and a pre-stored coefficient mapping database; acquiring a dependency relationship between the first target test task and the second target test task; And determining a distribution strategy according to the first target score, the second target score and the dependency relation, and executing material distribution operation according to the distribution strategy.
- 2. The method of claim 1, wherein the obtaining a first target score corresponding to a first target test task and a second target score corresponding to a second target test task according to the first target test task, the second target test task, and a pre-stored coefficient mapping database comprises: According to the first target test task, the second target test task and a pre-stored coefficient mapping database, obtaining a basic coefficient and an emergency coefficient respectively corresponding to the first target test task and the second target test task; and obtaining a first target score corresponding to the first target test task and a second target score corresponding to the second target test task according to the basic coefficient and the emergency coefficient respectively corresponding to the first target test task and the second target test task.
- 3. The method of claim 2, wherein the urgency coefficients comprise a base urgency coefficient, a value weight coefficient, and a time urgency coefficient; Correspondingly, the obtaining a first target score corresponding to the first target test task and a second target score corresponding to the second target test task according to the basic coefficient and the emergency coefficient respectively corresponding to the first target test task and the second target test task includes: And obtaining a first target score corresponding to the first target test task and a second target score corresponding to the second target test task according to the basic coefficient, the basic urgency coefficient, the value weight coefficient and the time urgency coefficient respectively corresponding to the first target test task and the second target test task.
- 4. The method of claim 3, wherein the obtaining a first target score corresponding to the first target test task and a second target score corresponding to the second target test task according to the base coefficient, the base urgency coefficient, the value weight coefficient, and the time urgency coefficient, respectively, comprises: calculating the product results of the basic urgency coefficient, the value weight coefficient and the time urgency coefficient, which correspond to the first target test task and the second target test task respectively, so as to obtain a first product result corresponding to the first target test task and a second product result corresponding to the second target test task; Obtaining a first target score corresponding to a first target test task according to a basic coefficient corresponding to the first target test task and the first product result, and obtaining a second target score corresponding to a second target test task according to a basic coefficient corresponding to the second target test task and the second product result.
- 5. A method according to claim 3, wherein the temporal compression coefficients comprise a first temporal compression coefficient, a second temporal compression coefficient, and a third temporal compression coefficient, and the third temporal compression coefficient is less than the second temporal compression coefficient, the second temporal compression coefficient being less than the first temporal compression coefficient; Wherein when the remaining completion time of the test task is smaller than a first preset proportion of the total time of the test task, the first time urgent coefficient is used as the time urgent coefficient, or When the residual completion time of the test task is greater than or equal to the first preset proportion of the total time of the test task and less than or equal to the second preset proportion of the total time of the test task, the second time packing coefficient is used as the time packing coefficient, or And when the residual completion time of the test task is larger than a second preset proportion of the total time of the test task, taking the third time urgent coefficient as the time urgent coefficient.
- 6. The method of claim 1, wherein the allocation policies include a first allocation policy, a second allocation policy, and a third allocation policy; accordingly, the determining an allocation policy according to the first target score, the second target score and the dependency relationship includes: If the first target score is higher than the second target score and the dependency does not exist, triggering the first allocation policy, or If the first target score is lower than or equal to the second target score and the dependency relationship does not exist, triggering the second allocation policy, or And if the dependency relationship exists, triggering the third allocation strategy.
- 7. The method of claim 6, wherein the first allocation policy comprises: And acquiring a break point of the second target test task, and distributing the target material to the first target test task when the second target test task reaches the break point.
- 8. The method of claim 6, wherein the second allocation policy comprises: And acquiring the completion time of the second target test task, and distributing the target material to the first target test task when the second target test task reaches the completion time.
- 9. The method as recited in claim 1, further comprising: and distributing the target material to the first target test task when the state information indicates that the target material is in an idle state.
- 10. An electronic device comprising a processor and a memory communicatively coupled to the processor; The memory stores computer-executable instructions; The processor executes computer-executable instructions stored in the memory to implement the material dispensing method of any one of claims 1 to 9.
Description
Material distribution method and electronic equipment Technical Field The application relates to the technical field of material distribution, in particular to a material distribution method and electronic equipment. Background In the server hardware test flow, after receiving a test task, a tester needs to apply for required materials to a laboratory through a laboratory management system according to test configuration required by the task. At present, a laboratory management system can only display stock quantity information of materials in a static mode, and the single-dimension information presentation mode enables a tester to wait passively even if a self test task has higher urgency in the application process, but the required stock of the materials is insufficient, so that the tester cannot acquire an alternative scheme or push and transfer in time, thereby preventing the test task from being executed, and further causing lower utilization rate of test resources. Disclosure of Invention The embodiment of the application provides a material distribution method and electronic equipment, which are used for solving the technical problem of low utilization rate of test resources caused by related technologies. In a first aspect, an embodiment of the present application provides a material distribution method, including: Acquiring a first target test task, and applying for a target material according to the first target test task; Acquiring state information of a target material, and when the state information indicates that the target material is occupied by a second target test task, obtaining a first target score corresponding to the first target test task and a second target score corresponding to the second target test task according to the first target test task, the second target test task and a pre-stored coefficient mapping database; Acquiring a dependency relationship between a first target test task and a second target test task; And determining a distribution strategy according to the first target score, the second target score and the dependency relationship, and executing material distribution operation according to the distribution strategy. In a second aspect, an embodiment of the present application provides an electronic device, including a processor, and a memory communicatively coupled to the processor; The memory stores computer-executable instructions; The processor executes computer-executable instructions stored in the memory to implement the material distribution method as provided in the first aspect of the present application. The application provides a material distribution method and electronic equipment, which comprise the steps of obtaining a first target test task, applying for target materials according to the first target test task, obtaining state information of the target materials, mapping a database according to the first target test task, the second target test task and a pre-stored coefficient when the state information indicates that the target materials are occupied by the second target test task, obtaining a first target score corresponding to the first target test task and a second target score corresponding to the second target test task, obtaining a dependency relationship between the first target test task and the second target test task, determining a distribution strategy according to the first target score, the second target score and the dependency relationship, and executing material distribution operation according to the distribution strategy. The method has the advantages that the first target score, the second target score and the dependency relationship are used as two dimensions for judging the emergency degree of the test task, so that the emergency degree of the test task can be finely distinguished, limited test resources are led to serve the test task with higher comprehensive emergency degree preferentially, meanwhile, key resource idling caused by the blocking of the front-end task can be effectively avoided through the identification of the dependency relationship, the coordination efficiency and the utilization rate of the resources are improved integrally, and the ordered promotion of the key test tasks is guaranteed. Drawings The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. FIG. 1 is a schematic flow chart of a material distribution method according to an embodiment of the present application; FIG. 2 is a second flow chart of a material distribution method according to an embodiment of the present application; FIG. 3 is a flow chart of a material distribution method according to an embodiment of the present application; FIG. 4 is a flow chart of a material distribution method according to an embodiment of the present application; FIG. 5 is a schematic