CN114625505A - Waybill task execution method and device, electronic equipment and computer readable medium - Google Patents

Waybill task execution method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN114625505A
CN114625505A CN202210237090.0A CN202210237090A CN114625505A CN 114625505 A CN114625505 A CN 114625505A CN 202210237090 A CN202210237090 A CN 202210237090A CN 114625505 A CN114625505 A CN 114625505A
Authority
CN
China
Prior art keywords
task
waybill
group
target
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210237090.0A
Other languages
Chinese (zh)
Inventor
潮帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN202210237090.0A priority Critical patent/CN114625505A/en
Publication of CN114625505A publication Critical patent/CN114625505A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure discloses a waybill task execution method, a waybill task execution device, electronic equipment and a computer readable medium. One embodiment of the method comprises: determining the waybill tasks with task states meeting preset conditions in a preset waybill task table as target tasks to obtain target task groups; determining the priority of each target task in the target task group to obtain a task priority information group; according to the task priority information group, performing region division on target tasks in the target task group to generate a region division task group set; and performing waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and adding the waybill task execution result group to a preset waybill task execution result table. The implementation mode can improve the execution efficiency of the waybill task.

Description

Waybill task execution method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a waybill task execution method, a waybill task execution device, electronic equipment and a computer readable medium.
Background
The waybill task execution method is a method for distributing waybill tasks to complete execution operation. Currently, when executing a waybill task, the method generally adopted is as follows: and putting the waybill tasks to be executed into the message queue, and processing the waybill tasks in the message queue through the server.
However, when the waybill task is executed in the above manner, the following technical problems often exist:
firstly, the waybill tasks to be executed are placed in the message queue by a common method, so that the waybill tasks cannot be distinguished, and the execution efficiency of the waybill tasks is reduced;
secondly, the waybill tasks in the message queue are processed by using the same computing resource, and the computing resource is not adjusted according to the requirements of different waybill tasks, so that the utilization rate of the computing resource is reduced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose waybill task execution methods, apparatuses, electronic devices, and computer readable media to solve one or more of the technical problems noted in the background section above.
In a first aspect, some embodiments of the present disclosure provide a waybill task execution method, including: determining the waybill tasks of which the task states meet preset conditions in a preset waybill task list as target tasks to obtain a target task group, wherein the waybill task list comprises the waybill tasks and the task states corresponding to the waybill tasks; determining the priority of each target task in the target task group to obtain a task priority information group; according to the task priority information group, performing region division on target tasks in the target task group to generate a region division task group set; and performing waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and adding the waybill task execution result group into a preset waybill task execution result table.
Optionally, the method further includes: and sending the updated waybill task execution result table to a display terminal for displaying.
Optionally, the method further includes: creating an waybill task, and determining the task state of the created waybill task as an initial state; and adding the created waybill task and the corresponding task state into the waybill task table.
Optionally, the method further includes: updating the task state corresponding to each target task in the target task group into a state to be executed; and updating the task state corresponding to the regional division task which is finished by the waybill task execution operation to be a finished state in response to the fact that the waybill task execution operation corresponding to the regional division task in the regional division task group set is finished.
Optionally, the target task in the target task group includes at least one document information; and the determining the priority of each target task in the target task group to obtain a task priority information group, including: determining the quantity of the bill information included in each target task in the target task group to obtain a bill information quantity group; and determining the priority of each target task in the target task group according to the bill information quantity group to obtain a task priority information group.
Optionally, the preset execution region configuration information includes an execution region resource occupation ratio corresponding to each region division task group in the region division task group set; and performing waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, including: determining the task resource occupation ratio consumed by the waybill task execution operation corresponding to the area division task group in a preset time period; and in response to determining that the task resource occupation ratio is smaller than a first preset threshold, reducing the execution area resource occupation ratio corresponding to the area division task group.
Optionally, the performing, according to preset execution region configuration information, a waybill task execution operation on each region division task in each region division task group in the region division task group set to generate a waybill task execution result group further includes: and increasing the executing area resource occupation ratio corresponding to the area division task group in response to the fact that the task resource occupation ratio is larger than a second preset threshold value.
In a second aspect, some embodiments of the present disclosure provide an waybill task execution device, the device including: the first determining unit is configured to determine the waybill tasks of which the task states meet preset conditions in a preset waybill task table as target tasks to obtain a target task group, wherein the waybill task table comprises the waybill tasks and the task states corresponding to the waybill tasks; the second determining unit is configured to determine the priority of each target task in the target task group to obtain a task priority information group; the regional division unit is configured to perform regional division on the target tasks in the target task group according to the task priority information group so as to generate a regional division task group set; and the generating unit is configured to perform waybill task execution operation on each area division task in each area division task group in the area division task group set according to preset execution area configuration information to generate a waybill task execution result group, and add the waybill task execution result group to a preset waybill task execution result table.
Optionally, the waybill task execution device further includes a display unit. Wherein the display unit is configured to send the updated waybill task execution result table to the display terminal for display.
Optionally, the waybill task execution device further includes a creation unit and an addition unit. Wherein the creating unit is configured to create the waybill task and determine a task state of the created waybill task as an initial state; the adding unit is configured to add the created waybill task and the corresponding task state to the waybill task table.
Optionally, the waybill task execution device further includes a first updating unit and a second updating unit. The first updating unit is configured to update the task state corresponding to each target task in the target task group to a state to be executed; the second updating unit is configured to update a task state corresponding to the area division task for which the waybill task execution operation is completed to a completion state in response to determining that the waybill task execution operation corresponding to the area division task in the area division task group set is completed.
Optionally, the target task in the target task group includes at least one document information; and the second determining unit is further configured to determine the quantity of the document information included in each target task in the target task group, so as to obtain a document information quantity group; and determining the priority of each target task in the target task group according to the bill information quantity group to obtain a task priority information group.
Optionally, the preset execution region configuration information includes an execution region resource occupation ratio corresponding to each region division task group in the region division task group set; and the generating unit is further configured to determine a task resource proportion consumed by the waybill task execution operation corresponding to the area division task group in a preset time period; and in response to determining that the task resource occupation ratio is smaller than a first preset threshold, reducing the execution area resource occupation ratio corresponding to the area division task group.
Optionally, the generating unit is further configured to increase the resource occupation ratio of the execution region corresponding to the region division task group in response to determining that the task resource occupation ratio is greater than a second preset threshold.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the disclosure provide a computer readable medium on which a computer program is stored, wherein the program when executed by a processor implements the method described in any implementation of the first aspect.
The above embodiments of the present disclosure have the following advantages: by the waybill task execution method of some embodiments of the disclosure, the waybill task execution efficiency can be improved. Specifically, the reason why the execution efficiency of the waybill task is reduced by the related waybill task execution method is that: since the waybill tasks to be executed are placed in the message queue by the common method, the waybill tasks cannot be distinguished. Based on this, in the waybill task execution method according to some embodiments of the present disclosure, first, waybill tasks whose task states meet preset conditions in a preset waybill task table are determined as target tasks, and a target task group is obtained. The target task to be executed can be selected from the waybill task table. And then, determining the priority of each target task in the target task group to obtain a task priority information group. By determining the priority of the target task, the waybill tasks can be distinguished according to the priority of the target task. And then, according to the task priority information group, performing region division on the target tasks in the target task group to generate a region division task group set. Because the time required for executing the target tasks with different priorities is different. The target tasks in different priorities are divided into different execution areas through area division, so that the situation that the target task with longer execution time blocks the target task with shorter execution time, and the execution efficiency is reduced can be avoided. And finally, carrying out waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and adding the waybill task execution result group into a preset waybill task execution result table. By introducing the execution region configuration information, the region division tasks included in the respective region division task groups in the region division task group set can be simultaneously executed. Thus, the execution efficiency of the waybill task can be improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic illustration of an application scenario of a waybill task execution method of some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a waybill task execution method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a waybill task execution method according to the present disclosure;
FIG. 4 is a schematic illustration of creating a waybill task in some embodiments of a waybill task execution method in accordance with the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of a waybill task execution device according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and the embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of one application scenario of the waybill task execution method of some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may determine an waybill task whose task state satisfies a preset condition in a preset waybill task table 102 as a target task, and obtain a target task group 103, where the waybill task table 102 includes task states corresponding to the waybill task and the waybill task. As an example, the initial state may be characterized by a numerical identification (e.g., 0). Next, the computing device 101 may determine the priority of each target task in the target task group 103, resulting in a task priority information group 104. Then, the computing device 101 may perform region division on the target tasks in the target task group 104 according to the task priority information group 104 to generate a region division task group set 105. Finally, the computing device 101 may perform waybill task execution on each regional division task in each regional division task group in the regional division task group set 105 according to the preset execution region configuration information 106 to generate a waybill task execution result group 107, and add the waybill task execution result group 107 to a preset waybill task execution result table 108.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to fig. 2, a flow 200 of some embodiments of a waybill task execution method in accordance with the present disclosure is illustrated. The process 200 of the waybill task execution method includes the following steps:
step 201, determining the waybill task with the task state meeting the preset conditions in the preset waybill task list as a target task, and obtaining a target task group.
In some embodiments, an execution subject (e.g., the computing device 101 shown in fig. 1) of the waybill task execution method may determine, as a target task, a waybill task whose task state satisfies a preset condition in a preset waybill task table, so as to obtain a target task group. The waybill task list comprises waybill tasks and task states corresponding to the waybill tasks. The preset condition may be that the task state corresponding to the waybill task is an initial state. This initial state may be used to characterize the waybill task as not being performed. The initial state may be characterized by a numerical identification (e.g., 0). The preset waybill task table can be a data table used for storing waybill tasks. The waybill task can be used for characterizing user order information of which the task state is an initial state. The target task group may be used to characterize each target task that needs to be performed.
As an example, the user order task may refer to all order information of the user within a period of time (e.g., within one month). But also the price information (such as freight rate and the like) of the article obtained by the user through the terminal equipment.
Step 202, determining the priority of each target task in the target task group to obtain a task priority information group.
In some embodiments, the execution subject may determine priorities of the target tasks in the target task group, and obtain a task priority information group. Wherein the priority of the target task may be determined according to the data occupancy (e.g., in bytes) of the target task. First, the data occupation amount of each target task in the target task group can be determined. Then, each target task in the target task group may be prioritized according to a plurality of preset priorities. Finally, the priority of the target task may be determined as task priority information. Thus, a task priority information group can be obtained. The task priority information may include a target task and a corresponding priority. In addition, the number of priority partitions in the preset multiple priority partitions can be used for representing the number of the priority levels.
As an example, two priorities are preset to be partitioned between the partitions. Then, the target tasks in the target task group may be divided into two priority levels. Wherein, the two priority division zones may be respectively a "first priority: [1 byte-1 megabyte ], second priority: (1 megabyte-1 terabyte ] ".
And 203, performing region division on the target tasks in the target task group according to the task priority information group to generate a region division task group set.
In some embodiments, the execution main body may perform region division on the target tasks in the target task group according to the task priority information group to generate a region division task group set. The area division may be to determine an execution area corresponding to the target task in the target task group. The execution region may be used to perform a task execution operation on the divided target task. Each of the area division task groups in the area division task group set may correspond to different execution areas. The execution region may correspond one-to-one to the priority. Thus, target tasks at different priorities can be classified into different execution areas by area division. Therefore, the target task with longer execution time can be prevented from blocking the target task with shorter execution time, and the task execution efficiency is improved.
Step 204, performing waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and adding the waybill task execution result group to a preset waybill task execution result table.
In some embodiments, the execution subject may perform waybill task execution on each regional division task in each regional division task group in the regional division task group set according to preset execution region configuration information to generate a waybill task execution result group, and add the waybill task execution result group to a preset waybill task execution result table. The preset execution region configuration information may be a calculation resource (e.g., a thread number or a central processor resource) included in each execution region and used for executing the region-dividing task in the region-dividing task group. Thus, the region dividing tasks included in the respective region dividing task groups in the region dividing task group set can be simultaneously executed. The waybill task execution result group may correspond to the area division task group through an execution area. The waybill task execution result can be used for representing the waybill task execution operation for completing the area division task. The waybill task performance operation may be a determination of a total price in each waybill task. Or determining the total transit time in the waybill task, etc. And is not particularly limited herein. The preset waybill task execution result table can be used for storing waybill task execution results. And adding the waybill task execution result group into a preset waybill task execution result table to be used for recording the waybill task execution result and updating the waybill task execution result table.
Optionally, the execution main body may further send the updated waybill task execution result table to a display terminal for display. The updated waybill task execution result table can be displayed.
Optionally, the executing body may further perform the following steps:
the method comprises the steps of firstly, creating an waybill task, and determining the task state of the created waybill task as an initial state. The creating of the waybill task may refer to setting the acquired waybill information which needs to be executed by the waybill task as the waybill task. The initial state may be used to characterize the waybill task as not being performed.
And secondly, adding the created waybill task and the corresponding task state into the waybill task table. Therefore, the waybill task list can be updated in real time.
As an example, as shown in fig. 3, a calculation task 301 may be created first, and a task state of the created waybill task 301 may be determined as an initial state 302. The created waybill task 301 and corresponding task state 302 are then added to the waybill task table 303 described above.
Optionally, the executing body may further perform the following steps:
and step one, updating the task state corresponding to each target task in the target task group to be an execution state. The to-be-executed state can be used for representing that the target task needs to be subjected to waybill task execution operation.
And secondly, in response to the fact that the waybill task execution operation corresponding to the regional division task in the regional division task group set is completed, updating the task state corresponding to the regional division task completed by the waybill task execution operation to be a completed state. The task state updating method can be used for distinguishing waybill tasks in different task states, and the phenomenon that the execution efficiency is reduced due to repeated execution of the tasks is avoided.
The above embodiments of the present disclosure have the following advantages: by the waybill task execution method of some embodiments of the disclosure, the waybill task execution efficiency can be improved. Specifically, the reason why the relevant waybill task execution method reduces the execution efficiency of the waybill task is that: since the waybill tasks to be executed are placed in the message queue by the common method, the waybill tasks cannot be distinguished. Based on this, in the waybill task execution method according to some embodiments of the present disclosure, first, waybill tasks whose task states meet preset conditions in a preset waybill task table are determined as target tasks, and a target task group is obtained. The target task to be executed can be selected from the waybill task table. And then, determining the priority of each target task in the target task group to obtain a task priority information group. By determining the priority of the target task, the waybill tasks can be distinguished according to the priority of the target task. And then, according to the task priority information group, performing region division on the target tasks in the target task group to generate a region division task group set. Because the time required for executing the target tasks with different priorities is different. The target tasks at different priorities are divided into different execution areas through area division, so that the situation that the target tasks with longer execution time block the target tasks with shorter execution time, and the execution efficiency is reduced can be avoided. And finally, carrying out waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and adding the waybill task execution result group into a preset waybill task execution result table. By introducing the execution region configuration information, the region division tasks included in the respective region division task groups in the region division task group set can be simultaneously executed. Thus, the execution efficiency of the waybill task can be improved.
With further reference to fig. 4, a flow 400 of further embodiments of the waybill task execution method is illustrated. The process 400 of the waybill task execution method includes the following steps:
step 401, determining the waybill task with the task state meeting the preset conditions in the preset waybill task table as a target task, and obtaining a target task group.
In some embodiments, the specific implementation manner and technical effects of step 401 may refer to step 201 in those embodiments corresponding to fig. 2, and are not described herein again.
Step 402, determining the quantity of the bill information included in each target task in the target task group to obtain a bill information quantity group.
In some embodiments, an executing body (e.g., the computing device 101 shown in fig. 1) of the waybill task execution method may determine, by a counting unit, the number of the document information included in each target task in the target task group, so as to obtain a document information number group. The target tasks in the target task group can include at least one document information. The receipt information may refer to price information of an item that is required to perform the invoice task. Or may refer to price information for each item in a user order that requires a waybill task performance operation.
And step 403, determining the priority of each target task in the target task group according to the bill information quantity group to obtain a task priority information group.
In some embodiments, the execution main body may determine the priority of each target task in the target task group according to the document information amount group, to obtain a task priority information group. First, a priority value corresponding to the target task may be generated. Then, the generated priority value may be determined as the task priority information. The priority value corresponding to each target task may be generated by the following formula:
Figure BDA0003542676090000111
wherein Y represents a priority value. M represents a preset maximum priority value. And C represents the bill information quantity corresponding to the target task. f denotes a preset prioritization factor.
As an example, the preset maximum priority value may be 1. The number of document information corresponding to the target job may be 10. The preset prioritization factor may be: and the ratio of the estimated processing amount of the computing resources to the number of the computing resource servers.
As another example, the preset prioritization factor may be adjusted according to the distribution of the priorities of the waybill tasks. The number of document information included in each target task in the target task group can be normally distributed. If the quantity of the document information included in the target task represented by the position of the normal distribution mean value is less, it can be shown that the quantity of the document information included in more target tasks is less. Thus, the prioritization factor may be adjusted down to lower the priority value. Such that more computing resources may be allocated to perform such a target task. Thus, the utilization rate of computing resources is improved.
Specifically, a smaller priority value may indicate a higher priority of the target task.
And step 404, performing region division on the target tasks in the target task group according to the task priority information group to generate a region division task group set.
In some embodiments, the execution main body may perform region division on the target tasks in the target task group according to the task priority information group to generate a region division task group set. The corresponding relationship between the priority value in the task priority information and the priority value area in the preset priority value area group can be determined. The preset priority value region group can be used for representing the division regions of each priority. Each priority value field may be used to characterize a priority. If the priority value is in a priority value area, it can be determined that the target task corresponding to the priority value is in the priority represented by the priority value area. Thereby, the priority of the above target task can be determined. Finally, the target tasks at the same priority may be determined as the regionalized task group. Thus, a set of area division task groups can be obtained. Therefore, the target tasks with different priorities can be divided into different execution areas. The target task with long execution time is prevented from blocking the target task with short execution time, so that the execution efficiency is prevented from being reduced.
Step 405, performing waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and adding the waybill task execution result group to a preset waybill task execution result table.
In some embodiments, the preset execution region configuration information may include an execution region resource occupation ratio corresponding to each of the region division task groups in the region division task group set. The executing main body performs waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and the method may include the following steps:
firstly, determining the task resource occupation ratio consumed by the waybill task execution operation corresponding to the area division task group in a preset time period. In which the calculation resource occupation monitoring may be performed on the waybill task execution operations performed by the area division task group, and it is determined that the task resources consumed within a preset time period (for example, within 10 minutes) account for the pre-configured calculation resources. The pre-configured computing resources may be execution region computing resources corresponding to the region-dividing task group. The execution region computing resources may be pre-set according to a priority of the execution region.
And secondly, in response to the fact that the task resource occupation ratio is smaller than a first preset threshold value, reducing the execution area resource occupation ratio corresponding to the area division task group. The task resource occupation ratio is smaller than a first preset threshold (for example, 20%), and may represent a calculation resource amount preset for an execution region corresponding to the region division task group, which is far greater than a calculation resource amount used for performing an waybill task execution operation on the region division task. Therefore, the resource occupation ratio of the execution region corresponding to the region division task group can be reduced. Thus, dynamic adjustment of computing resources is achieved. So that the adjustment of the computing resources can be carried out according to the requirements of different waybill tasks. The utilization rate of computing resources is improved.
As an example, the execution region resource occupation ratio corresponding to the above region division task group can be reduced by half.
In some optional implementation manners of some embodiments, the executing main body performs waybill task execution operation on each area division task in each area division task group in the area division task group set according to preset execution area configuration information to generate a waybill task execution result group, and the method further includes the following steps:
and increasing the executing area resource occupation ratio corresponding to the area division task group in response to the fact that the task resource occupation ratio is larger than a second preset threshold value. The task resource ratio is greater than a second preset threshold (for example, 80%), and may represent a calculation resource amount preset for an execution region corresponding to the region division task group, which is close to a calculation resource amount used for performing an waybill task execution operation on the region division task. Thus, computational efficiency is reduced in order to avoid full or even overloaded computational resources. The resource occupation ratio of the execution region corresponding to the region division task group may be increased. Thus, dynamic adjustment of computing resources is achieved. So that the adjustment of the computing resources can be carried out according to the requirements of different waybill tasks. The utilization rate of computing resources is improved.
As an example, the execution area resource occupation ratio corresponding to the area division task group described above may be increased by half.
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 2, the process 400 of the waybill task execution method in some embodiments corresponding to fig. 4 embodies the steps of determining the priority of the target task and dynamically adjusting the computing resources. Therefore, the waybill tasks can be distinguished, and the execution efficiency of the waybill tasks is improved. Dynamic adjustment of computing resources is also possible. The utilization rate of computing resources is improved.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a waybill task execution device, which correspond to those shown in fig. 2, and which can be applied in various electronic devices.
As shown in fig. 5, the waybill task execution device 500 of some embodiments includes: a first determination unit 501, a second determination unit 502, an area division unit 503, and a generation unit 504. The first determining unit 501 is configured to determine an waybill task whose task state meets a preset condition in a preset waybill task table as a target task to obtain a target task group, where the waybill task table includes the waybill task and a task state corresponding to the waybill task; a second determining unit 502, configured to determine priorities of the target tasks in the target task group, to obtain a task priority information group; a region dividing unit 503 configured to perform region division on the target tasks in the target task group according to the task priority information group to generate a region division task group set; the generating unit 504 is configured to perform waybill task execution operation on each area division task in each area division task group in the area division task group set according to preset execution area configuration information to generate a waybill task execution result group, and add the waybill task execution result group to a preset waybill task execution result table.
In some optional implementations of some embodiments, the waybill task execution device 500 may further include a display unit. Wherein the display unit is configured to send the updated waybill task execution result table to the display terminal for display.
In some optional implementations of some embodiments, the waybill task execution device 500 may further include a creating unit and an adding unit. Wherein the creating unit is configured to create the waybill task and determine a task state of the created waybill task as an initial state; the adding unit is configured to add the created waybill task and the corresponding task state to the waybill task table.
In some optional implementations of some embodiments, the waybill task execution device 500 may further include a first updating unit and a second updating unit. The first updating unit is configured to update the task state corresponding to each target task in the target task group to a state to be executed; the second updating unit is configured to update a task state corresponding to the area division task for which the waybill task execution operation is completed to a completion state in response to determining that the waybill task execution operation corresponding to the area division task in the area division task group set is completed.
In some optional implementations of some embodiments, the target tasks in the target task group may include at least one document information; and the second determining unit in the waybill task execution device 500 may be further configured to determine the quantity of the document information included in each target task in the target task group, so as to obtain a document information quantity group; and determining the priority of each target task in the target task group according to the bill information quantity group to obtain a task priority information group.
In some optional implementation manners of some embodiments, the preset execution region configuration information includes an execution region resource occupation ratio corresponding to each region division task group in the region division task group set; and the generating unit in the waybill task execution device 500 may be further configured to determine a task resource proportion consumed by the waybill task execution operation corresponding to the area division task group in a preset time period; and in response to determining that the task resource occupation ratio is smaller than a first preset threshold, reducing the execution area resource occupation ratio corresponding to the area division task group.
In some optional implementations of some embodiments, the generating unit in the waybill task execution device 500 may be further configured to increase the execution area resource occupation ratio corresponding to the area division task group in response to determining that the task resource occupation ratio is greater than a second preset threshold.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to fig. 6, shown is a schematic diagram of an electronic device 600 suitable for use in implementing some embodiments of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, or the like; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining the waybill tasks of which the task states meet preset conditions in a preset waybill task list as target tasks to obtain a target task group, wherein the waybill task list comprises the waybill tasks and the task states corresponding to the waybill tasks; determining the priority of each target task in the target task group to obtain a task priority information group; according to the task priority information group, performing region division on target tasks in the target task group to generate a region division task group set; and performing waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and adding the waybill task execution result group into a preset waybill task execution result table.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a first determination unit, an area division unit, and a generation unit. Where the names of these units do not in some cases constitute a limitation on the unit itself, for example, the first determination unit may also be described as a "unit that determines a target task group".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.

Claims (10)

1. A waybill task execution method comprises the following steps:
determining the waybill tasks of which the task states meet preset conditions in a preset waybill task table as target tasks to obtain a target task group, wherein the waybill task table comprises the waybill tasks and the task states corresponding to the waybill tasks;
determining the priority of each target task in the target task group to obtain a task priority information group;
according to the task priority information group, performing region division on target tasks in the target task group to generate a region division task group set;
and performing waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and adding the waybill task execution result group to a preset waybill task execution result table.
2. The method of claim 1, wherein the method further comprises:
and sending the updated waybill task execution result table to a display terminal for displaying.
3. The method of claim 1, wherein the method further comprises:
creating an waybill task, and determining the task state of the created waybill task as an initial state;
and adding the created waybill task and the corresponding task state into the waybill task table.
4. The method of claim 3, wherein the method further comprises:
updating the task state corresponding to each target task in the target task group into a to-be-executed state;
and in response to determining that the waybill task execution operation corresponding to the area division task in the area division task group set is completed, updating the task state corresponding to the area division task completed by the waybill task execution operation to a completed state.
5. The method of claim 1, wherein a target task of the target task group includes at least one document information; and
the determining the priority of each target task in the target task group to obtain a task priority information group includes:
determining the quantity of the bill information included in each target task in the target task group to obtain a bill information quantity group;
and determining the priority of each target task in the target task group according to the bill information quantity group to obtain a task priority information group.
6. The method according to claim 1, wherein the preset execution region configuration information includes an execution region resource occupation ratio corresponding to each of the region-divided task groups in the region-divided task group set; and
the performing, according to preset execution region configuration information, a waybill task execution operation on each region division task in each region division task group in the region division task group set to generate a waybill task execution result group includes:
determining the task resource occupation ratio consumed by the waybill task execution operation corresponding to the regional division task group in a preset time period;
and in response to determining that the task resource occupation ratio is smaller than a first preset threshold, reducing the execution area resource occupation ratio corresponding to the area division task group.
7. The method according to claim 6, wherein the performing, according to preset execution region configuration information, a waybill task execution operation on each region division task in each region division task group in the region division task group set to generate a waybill task execution result group further comprises:
and in response to determining that the task resource occupation ratio is greater than a second preset threshold, increasing the execution area resource occupation ratio corresponding to the area division task group.
8. An waybill task execution device, comprising:
the first determining unit is configured to determine an waybill task of which the task state meets a preset condition in a preset waybill task table as a target task to obtain a target task group, wherein the waybill task table comprises the waybill task and the task state corresponding to the waybill task;
the second determining unit is configured to determine the priority of each target task in the target task group to obtain a task priority information group;
the regional division unit is configured to perform regional division on the target tasks in the target task group according to the task priority information group so as to generate a regional division task group set;
and the generating unit is configured to perform waybill task execution operation on each regional division task in each regional division task group in the regional division task group set according to preset execution regional configuration information to generate a waybill task execution result group, and add the waybill task execution result group to a preset waybill task execution result table.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-7.
CN202210237090.0A 2022-03-11 2022-03-11 Waybill task execution method and device, electronic equipment and computer readable medium Pending CN114625505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210237090.0A CN114625505A (en) 2022-03-11 2022-03-11 Waybill task execution method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210237090.0A CN114625505A (en) 2022-03-11 2022-03-11 Waybill task execution method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN114625505A true CN114625505A (en) 2022-06-14

Family

ID=81902683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210237090.0A Pending CN114625505A (en) 2022-03-11 2022-03-11 Waybill task execution method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN114625505A (en)

Similar Documents

Publication Publication Date Title
CN109408205B (en) Task scheduling method and device based on hadoop cluster
CN112363813A (en) Resource scheduling method and device, electronic equipment and computer readable medium
CN112445857A (en) Resource quota management method and device based on database
CN110673959A (en) System, method and apparatus for processing tasks
CN112799824A (en) Current limiting method, device, equipment and storage medium
CN111580974B (en) GPU instance allocation method, device, electronic equipment and computer readable medium
CN113760991A (en) Data operation method and device, electronic equipment and computer readable medium
CN115357350A (en) Task configuration method and device, electronic equipment and computer readable medium
CN112182374B (en) Inventory control method, apparatus, electronic device, and computer-readable medium
CN113791891A (en) Continuous integration task construction method, device, equipment and computer readable medium
CN110716809B (en) Method and device for scheduling cloud resources
CN111694670B (en) Resource allocation method, apparatus, device and computer readable medium
CN113703945B (en) Micro service cluster scheduling method, device, equipment and storage medium
CN114625505A (en) Waybill task execution method and device, electronic equipment and computer readable medium
CN112527454A (en) Container group scheduling method and device, electronic equipment and computer readable medium
CN111694672B (en) Resource allocation method, task submission method, device, electronic equipment and medium
CN112561301A (en) Work order distribution method, device, equipment and computer readable medium
CN114138427A (en) SLO guarantee method, SLO guarantee device, node, and storage medium
CN115344359A (en) Computing power resource allocation method, device, computer readable storage medium and equipment
CN112181605A (en) Load balancing method and device, electronic equipment and computer readable medium
CN112156453A (en) Example adaptive adjustment method, apparatus, computer readable storage medium and device
CN113138850A (en) Resource allocation method and device
CN112148448B (en) Resource allocation method, apparatus, device and computer readable medium
CN116820737A (en) Resource regulation method, device, electronic equipment and computer readable medium
CN117649096B (en) Paper box production task execution method and device, electronic equipment and computer medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination