Printing task allocation method and device, electronic equipment and storage medium
By splitting the printing task into sub-tasks and assigning it to multiple printers for execution, the inefficiency problem caused by the same printer to perform the same task is solved, and more efficient printing task completion and timely delivery is achieved.
Patent Information
- Application Number
- CN202411926028.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-03-14
AI Technical Summary
In the prior art, the same printer performs the same printing task, which leads to inefficient production efficiency, especially when processing large orders, which may cause the printer to fail to complete the printing task for a long time, resulting in delays in order delivery.
By splitting the print task into multiple subtasks and generating weights based on the predicted printing time of available printers, the print task is assigned to multiple printers for printing, so that each available printer can execute the corresponding subtasks simultaneously.
By splitting the printing tasks and assigning sub-tasks, the time required to complete the printing tasks is reduced, productivity is improved, and timely delivery of orders is ensured.
Smart Images

Figure CN119620974A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of cloud printing, and in particular relates to a printing task allocation method, device, electronic device and storage medium. Background Art
[0002] During the execution of printing tasks in existing printing orders, the same printer generally only executes the same printing task. When dealing with large orders with a large number of pages and copies of documents to be printed, the printer processing the large order may be unable to complete the printing task for a long time. In this case, even if there are other idle printers, they cannot be used. Therefore, the printing task execution method in which the same printer executes the same printing task may lead to low production efficiency and even delayed order delivery.
[0003] Therefore, the existing technology needs to be improved and developed. Summary of the invention
[0004] The purpose of the present application is to provide a printing task allocation method, device, electronic device and storage medium, which can solve the problem that the printing task execution mode of the same printer executing the same printing task may lead to low production efficiency and even delayed order delivery.
[0005] In a first aspect, the present application provides a printing task allocation method for splitting a printing task into multiple subtasks to allocate to multiple printers for printing, comprising the following steps: S1. Obtain the total number of pages according to the print task; S2. Obtain the number of available printers and the average historical printing speed of each available printer, calculate the average number of pages according to the total number of pages and the number of pages, and obtain the predicted printing time of each available printer according to the average number of pages and the average historical printing speed of each available printer; S3. generating a plurality of weights corresponding to the available printers one by one according to the predicted printing time of each available printer, and splitting the printing task into a plurality of subtasks corresponding to the available printers one by one according to the weight corresponding to each available printer, wherein the weight is negatively correlated with the predicted printing time of the corresponding available printer; S4. Allocate each subtask to a corresponding available printer for execution.
[0006] The printing task allocation method of the present application splits the printing task into multiple subtasks corresponding to the available printers one by one, so that each available printer can execute the corresponding subtask at the same time to reduce the time required to complete the printing task and improve production efficiency. In addition, the present application can allocate subtasks to each available printer according to the efficiency of each available printer, so that the time required for each available printer to complete the subtask is similar, thereby further reducing the time required to complete the printing task.
[0007] Furthermore, in step S3, the process of generating a plurality of weights corresponding to the available printers one by one according to the predicted printing time of each available printer includes: S31. Generate a plurality of weights corresponding to the available printers one by one according to the inverse ratio of the consecutive ratios of the predicted printing times of the available printers.
[0008] Furthermore, in step S2, the process of obtaining the predicted printing time of each available printer according to the average page number information and the average historical printing speed of each available printer includes: S21. Calculate the predicted working time of each available printer based on the quotient of the average number of pages and the average historical printing speed of each available printer; S22. Obtain the predicted printing time of each available printer according to the predicted working time of each available printer.
[0009] Furthermore, before step S22, the following steps are also included: A1. Obtain a single overload recovery time of each available printer, and calculate the overload recovery time of each available printer according to the single overload recovery time of each available printer and the average number of pages; In step S22, the process of obtaining the predicted printing time of each available printer according to the predicted working time of each available printer includes: A2. Calculate the predicted printing time of each available printer according to the sum of the predicted working time and the overload recovery time of each available printer.
[0010] In this embodiment, the printing task allocation method of the present application can take into account the total time required for the overload recovery process of the available printers when printing paper printed pages with an evenly distributed page number information into the predicted printing time, thereby making the predicted printing time of each available printer more accurate.
[0011] Furthermore, before step S22, the following steps are also included: B1. Get the warm-up time of each available printer; In step S22, the process of obtaining the predicted printing time of each available printer according to the predicted working time of each available printer includes: B2. Calculate the predicted printing time of each available printer based on the sum of the predicted working time and the preheating time of each available printer.
[0012] In this embodiment, the printing task allocation method of the present application can take into account the different printing speeds during the execution of different historical printing tasks into consideration of the average historical printing speed, so that the calculated average historical printing speed can be more accurate, thereby making the obtained predicted printing time more accurate.
[0013] Furthermore, the average historical printing speed of each available printer is the average printing speed of each available printer in the process of printing paper printed pages with the number of pages equal to the average page number information when executing several historical printing tasks in which the sum of the most recent printing output paper printed pages is greater than or equal to the average page number information.
[0014] Furthermore, between step S1 and step S2, the following steps are also included: C1. When the total number of pages is greater than the preset page threshold, execute step S2, otherwise execute step S5; S5. Obtain the average historical printing speed of each available printer, and assign the print task to the available printer with the fastest average historical printing speed.
[0015] In a second aspect, the present application provides a printing task allocation device, which is used to split a printing task into multiple subtasks to allocate to multiple printers for printing, including: The acquisition module is used to obtain the total number of pages according to the printing task; The duration prediction module is used to obtain the quantity information of available printers and the average historical printing speed of each available printer, calculate the average page number information according to the total page number information and the quantity information, and obtain the predicted printing duration of each available printer according to the average page number information and the average historical printing speed of each available printer; a splitting module, used to generate a plurality of weights corresponding to the available printers one by one according to the predicted printing time of each available printer, and split the printing task into a plurality of subtasks corresponding to the available printers one by one according to the weight corresponding to each available printer, wherein the weight is negatively correlated with the predicted printing time of the corresponding available printer; The allocation module is used to allocate each subtask to a corresponding available printer for execution.
[0016] A printing task allocation device of the present application splits a printing task into multiple subtasks corresponding to the available printers one by one, and enables each available printer to execute the corresponding subtask at the same time to reduce the time required to complete the printing task and improve production efficiency. In addition, the present application can allocate subtasks to each available printer according to the efficiency of each available printer, so that the time required for each available printer to complete the subtask is similar, thereby further reducing the time required to complete the printing task.
[0017] In a third aspect, the present application provides an electronic device, including a processor and a memory, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, it runs the steps in any of the above methods.
[0018] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in any of the above methods are performed.
[0019] From the above, it can be seen that the present application provides a printing task allocation method, device, electronic device and storage medium, wherein the printing task allocation method provided by the present application splits the printing task into multiple subtasks corresponding to the available printers one by one, and enables each available printer to execute the corresponding subtask at the same time to reduce the time required to complete the printing task and improve production efficiency. In addition, the present application can allocate subtasks to each available printer according to the efficiency of each available printer, so that the time required for each available printer to complete the subtask is similar, thereby further reducing the time required to complete the printing task.
[0020] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the embodiments of the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A flowchart of a printing task allocation method provided in an embodiment of the present application.
[0022] Figure 2 A schematic diagram of the structure of a printing task allocation device provided in an embodiment of the present application.
[0023] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0024] Figure 4 A flowchart of another printing task allocation method provided in an embodiment of the present application.
[0025] Explanation of reference numerals: 1. Acquisition module; 2. Duration prediction module; 3. Splitting module; 4. Allocation module; 301. Processor; 302. Memory; 303. Communication bus. DETAILED DESCRIPTION
[0026] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0027] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0028] First, as Figure 1 As shown, the present application provides a printing task allocation method for splitting a printing task into multiple subtasks to allocate to multiple printers for printing, comprising the following steps: S1. Obtain the total number of pages according to the print task; S2. Obtain the number of available printers and the average historical printing speed of each available printer, calculate the average number of pages according to the total number of pages and the number of pages, and obtain the predicted printing time of each available printer according to the average number of pages and the average historical printing speed of each available printer; S3. generating a plurality of weights corresponding to the available printers one by one according to the predicted printing time of each available printer, and splitting the printing task into a plurality of subtasks corresponding to the available printers one by one according to the weight corresponding to each available printer, wherein the weight is negatively correlated with the predicted printing time of the corresponding available printer; S4. Allocate each subtask to a corresponding available printer for execution.
[0029] Specifically, a printing task is a task of printing and outputting paper printed pages according to a file.
[0030] More specifically, the total number of pages information is the total number of paper printed pages that need to be printed in the printing task, the number of available printers information is the number of available printers, and the average historical printing speed of the available printers is the ratio of the number of paper printed pages printed by the available printers in a historical time period to the length of the historical time period.
[0031] More specifically, the method for calculating the average page number information may be to use the quotient of the total page number information and the quantity information as the average page number information.
[0032] More specifically, the step of calculating the average page number information based on the total page number information and the quantity information can distribute the paper printed pages that need to be printed out by the printing task to each available printer, and the step of obtaining the predicted printing time of each available printer can predict the printing time of each available printer when each available printer needs to print out a number of paper printed pages equal to the average page number information, thereby determining the efficiency difference of each available printer when the printing task is assigned to each available printer.
[0033] More specifically, since the weight is negatively correlated with the predicted printing time of the corresponding available printer, the weight corresponding to the available printer can characterize the efficiency of the available printer. Therefore, the present application splits the printing task into multiple subtasks corresponding to the available printers according to the weight of each available printer, so that each available printer can execute the corresponding subtask at the same time to reduce the time required to complete the printing task and improve production efficiency. In addition, subtasks can be assigned to each available printer according to the efficiency of each available printer, so that the time required for each available printer to complete the subtask is similar, thereby further reducing the time required to complete the printing task.
[0034] The printing task allocation method of the present application splits the printing task into multiple subtasks corresponding to the available printers one by one, so that each available printer can execute the corresponding subtask at the same time to reduce the time required to complete the printing task and improve production efficiency. In addition, the present application can allocate subtasks to each available printer according to the efficiency of each available printer, so that the time required for each available printer to complete the subtask is similar, thereby further reducing the time required to complete the printing task.
[0035] In some preferred embodiments, in step S3, the process of generating a plurality of weights corresponding to the available printers one by one according to the predicted printing time of each available printer includes: S31. Generate a plurality of weights corresponding to the available printers one by one according to the inverse ratio of the consecutive ratios of the predicted printing times of the available printers.
[0036] Specifically, the inverse ratio of the consecutive ratios of the predicted printing times of the available printers is the ratio of the efficiencies of the available printers. Therefore, in this embodiment, the printing task allocation method of the present application can easily generate weights that can characterize the efficiencies of the corresponding available printers.
[0037] In some preferred implementations, in step S2, the process of obtaining the predicted printing time of each available printer according to the average number of pages information and the average historical printing speed of each available printer includes: S21. Calculate the predicted working time of each available printer based on the quotient of the average number of pages and the average historical printing speed of each available printer; S22. Obtain the predicted printing time of each available printer according to the predicted working time of each available printer.
[0038] Specifically, the method for obtaining the predicted printing time of each available printer can be to directly use the predicted working time of each available printer as the predicted printing time of each available printer, or to use the predicted working time of each available printer and the time when the printing task is executed but not working as the predicted printing time of each available printer, wherein the time when each available printer executes the printing task but does not work can be the time required for format conversion of the file and other time.
[0039] Specifically, since the time required for an available printer to work when executing a subtask is generally much longer than the time required not to work, in this embodiment, the printing task allocation method of the present application obtains the predicted printing time of each available printer based on the predicted working time of each available printer, and can include the predicted working time of each available printer into the consideration range of the predicted printing time, so that the predicted printing time of each available printer can more accurately represent the efficiency of each available printer, so that the time required for each available printer to execute the corresponding subtask can be not much different.
[0040] In some preferred embodiments, before step S22, the method further includes: A1. Obtain a single overload recovery time of each available printer, and calculate the overload recovery time of each available printer according to the single overload recovery time of each available printer and the average number of pages; In step S22, the process of obtaining the predicted printing time of each available printer according to the predicted working time of each available printer includes: A2. Calculate the predicted printing time of each available printer according to the sum of the predicted working time and the overload recovery time of each available printer.
[0041] Specifically, the single overload recovery time is the time required for an available printer to recover from an overload state to a working state. The process of calculating the overload recovery time of each available printer based on the single overload recovery time of each available printer and the average page number information is to determine the number of overloads of each available printer when a print output of paper printed pages equal to the average page number information is required based on the average page number information, and determine the overload recovery time of each available printer based on the product of the number of overloads of each available printer and the single overload recovery time.
[0042] More specifically, since the available printers will be overloaded after printing for a long time, the available printers in the overloaded state need to stop working for a period of time before they can recover to a working state and print again. Therefore, the present application calculates the overload recovery time of each available printer based on the single overload recovery time and the average page number information of each available printer. The total time required for the overload recovery process of the available printer when printing paper printed pages with a number of output pages equal to the average page number information can be included in the consideration range of the predicted printing time, which can make the predicted printing time of each available printer more accurate.
[0043] In this embodiment, the printing task allocation method of the present application can take into account the total time required for the overload recovery process of the available printers when printing paper printed pages with an evenly distributed page number information into the predicted printing time, thereby making the predicted printing time of each available printer more accurate.
[0044] In some preferred embodiments, before step S22, the method further includes: B1. Get the warm-up time of each available printer; In step S22, the process of obtaining the predicted printing time of each available printer according to the predicted working time of each available printer includes: B2. Calculate the predicted printing time of each available printer based on the sum of the predicted working time and the preheating time of each available printer.
[0045] Specifically, available printers need to be preheated after being turned on before they can start working. Therefore, in this embodiment, the printing task allocation method of the present application can take the power-on time of the available printers into consideration when predicting the printing time, thereby making the predicted printing time of each available printer more accurate.
[0046] Preferably, in step B2, the process of calculating the predicted printing time of each available printer according to the sum of the predicted working time and the preheating time of each available printer includes: B22. Calculate the predicted printing time of each available printer based on the sum of the predicted working time, overload recovery time and preheating time of each available printer.
[0047] In some preferred embodiments, the average historical printing speed of each available printer is the average printing speed of each available printer in the process of printing paper printed pages with a number of pages equal to the average page number information when executing several historical printing tasks in which the sum of the most recent printing output paper printed pages is greater than or equal to the average page number information.
[0048] Specifically, in the present embodiment, the process of determining the average historical printing speed of the available printers is to determine the most recently executed historical printing tasks in which the sum of the number of paper printed pages to be printed is greater than or equal to the average page number information, and to determine the average printing speed of the available printers in the process of printing the paper printed pages with the number of pages being the average page number information when executing these historical printing tasks.
[0049] More specifically, since the printing speed of an available printer is related to the number of paper printed pages that need to be printed and the aging status of the available printer, the average printing speeds of the same available printer when executing two printing tasks at similar execution times are relatively close, and the average printing speeds of the same printer when executing two printing tasks with a similar number of paper printed pages are relatively close. Therefore, in this embodiment, the printing task allocation method of the present application can comprehensively consider the efficiency of the available printer when printing paper printed pages with an average number of page information, as well as the efficiency of the available printer when executing several recent historical printing tasks, so that the obtained predicted printing time can be more accurate.
[0050] like Figure 4 As shown, in some preferred embodiments, between step S1 and step S2, the following is further included: C1. When the total number of pages is greater than the preset page number threshold, execute step S2; otherwise, execute step S5; S5. Obtain the average historical printing speed of each available printer, and assign the print task to the available printer with the fastest average historical printing speed.
[0051] In this embodiment, the printing task allocation method of the present application can split the printing task only when the number of paper pages to be printed is large, and is specifically used in large order scenarios, so as to avoid starting too many available printers when the printing task is not heavy, thereby saving resources.
[0052] Second, as Figure 2 As shown, the present application provides a printing task allocation device, which is used to split a printing task into multiple subtasks to allocate to multiple printers for printing, including: Acquisition module 1, used to obtain total page number information according to the printing task; Duration prediction module 2, used to obtain the quantity information of available printers and the average historical printing speed of each available printer, calculate the average number of pages information according to the total number of pages information and the quantity information, and obtain the predicted printing duration of each available printer according to the average number of pages information and the average historical printing speed of each available printer; A splitting module 3 is used to generate a plurality of weights corresponding to the available printers according to the predicted printing time of each available printer, and split the printing task into a plurality of subtasks corresponding to the available printers according to the weight corresponding to each available printer, wherein the weight is negatively correlated with the predicted printing time of the corresponding available printer; The allocation module 4 is used to allocate each subtask to a corresponding available printer for execution.
[0053] A printing task allocation device of the present application splits a printing task into multiple subtasks corresponding to the available printers one by one, and enables each available printer to execute the corresponding subtask at the same time to reduce the time required to complete the printing task and improve production efficiency. In addition, the present application can allocate subtasks to each available printer according to the efficiency of each available printer, so that the time required for each available printer to complete the subtask is similar, thereby further reducing the time required to complete the printing task.
[0054] Thirdly, Figure 3As shown, the present application provides an electronic device, including a processor 301 and a memory 302, the processor 301 and the memory 302 are interconnected and communicate with each other through a communication bus 303 and / or other forms of connection mechanisms (not marked), the memory 302 stores a computer program executable by the processor 301, when the electronic device is running, the processor 301 executes the computer program to execute the printing task allocation method in any optional implementation of the above embodiment, to achieve the following functions: obtaining total page number information according to the printing task; obtaining the number information of available printers and the average historical printing speed of each available printer, calculating the average page number information according to the total page number information and the number information, and obtaining the predicted printing time of each available printer according to the average page number information and the average historical printing speed of each available printer; generating multiple weights corresponding to the available printers one by one according to the predicted printing time of each available printer, and splitting the printing task into multiple subtasks corresponding to the available printers one by one according to the weights corresponding to each available printer, the weights are negatively correlated with the predicted printing time of the corresponding available printers; and assigning each subtask to the corresponding available printer for execution.
[0055] In a fourth aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the printing task allocation method in any optional implementation of the above-mentioned embodiment is executed to achieve the following functions: obtaining total page number information according to the printing task; obtaining the number information of available printers and the average historical printing speed of each available printer, calculating the average page number information according to the total page number information and the number information, and obtaining the predicted printing time of each available printer according to the average page number information and the average historical printing speed of each available printer; generating multiple weights corresponding to the available printers one by one according to the predicted printing time of each available printer, and splitting the printing task into multiple subtasks corresponding to the available printers one by one according to the weight corresponding to each available printer, and the weight is negatively correlated with the predicted printing time of the corresponding available printer; and assigning each subtask to the corresponding available printer for execution. Among them, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0056] In summary, the present application provides a printing task allocation method, device, electronic device and storage medium, wherein the printing task allocation method of the present application splits the printing task into multiple subtasks corresponding to the available printers one by one, and enables each available printer to execute the corresponding subtask at the same time to reduce the time required to complete the printing task and improve production efficiency. In addition, the present application can allocate subtasks to each available printer according to the efficiency of each available printer, so that the time required for each available printer to complete the subtask is similar, thereby further reducing the time required to complete the printing task.
[0057] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0058] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0059] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0060] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0061] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A printing task allocation method, for splitting a printing task into multiple subtasks to allocate to multiple printers for printing, characterized in that: The following steps are involved: S1. Obtain the total number of pages according to the print task; S2. Obtain the quantity information of available printers and the average historical printing speed of each available printer, calculate the average number of pages information according to the total number of pages information and the quantity information, and obtain the predicted printing time of each available printer according to the average number of pages information and the average historical printing speed of each available printer; S3. generating a plurality of weights corresponding to the available printers one by one according to the predicted printing time of each available printer, and splitting the printing task into a plurality of subtasks corresponding to the available printers one by one according to the weight corresponding to each available printer, wherein the weight is negatively correlated with the predicted printing time of the corresponding available printer; S4. Allocate each subtask to a corresponding available printer for execution.
2. A printing task allocation method according to claim 1, characterized in that: In step S3, the process of generating a plurality of weights corresponding to the available printers one by one according to the predicted printing time of each available printer includes: S31. Generate a plurality of weights corresponding to the available printers one by one according to the inverse ratio of the consecutive ratios of the predicted printing times of the available printers.
3. A printing task allocation method according to claim 1, characterized in that: In step S2, the process of obtaining the predicted printing time of each available printer according to the average page number information and the average historical printing speed of each available printer includes: S21. Calculate the predicted working time of each available printer based on the quotient of the average number of pages information and the average historical printing speed of each available printer; S22. Obtain the predicted printing time of each available printer according to the predicted working time of each available printer.
4. A printing task allocation method according to claim 3, characterized in that: Before step S22, the following steps are also included: A1. Obtain a single overload recovery time of each available printer, and calculate the overload recovery time of each available printer according to the single overload recovery time of each available printer and the average number of pages; In step S22, the process of obtaining the predicted printing time of each available printer according to the predicted working time of each available printer includes: A2. Calculate the predicted printing time of each available printer according to the sum of the predicted working time and the overload recovery time of each available printer.
5. A printing task allocation method according to claim 3, characterized in that: Before step S22, the following steps are also included: B1. Get the warm-up time of each available printer; In step S22, the process of obtaining the predicted printing time of each available printer according to the predicted working time of each available printer includes: B2. Calculate the predicted printing time of each available printer based on the sum of the predicted working time and the preheating time of each available printer.
6. A printing task allocation method according to claim 3, characterized in that: The average historical printing speed of each available printer is the average printing speed in the process of printing paper printed pages with the number of pages equal to the average page number information when each available printer executes several historical printing tasks in which the sum of the most recent printing output paper printed pages is greater than or equal to the average page number information.
7. A printing task allocation method according to claim 1, characterized in that: The steps between step S1 and step S2 also include: C1. When the total number of pages is greater than the preset page threshold, execute step S2, otherwise execute step S5; S5. Obtain the average historical printing speed of each available printer, and assign the print task to the available printer with the fastest average historical printing speed.
8. A printing task distribution device, used for splitting a printing task into multiple subtasks to distribute to multiple printers for printing, characterized in that: include: An acquisition module (1) is used to obtain total page number information according to a printing task; The duration prediction module (2) is used to obtain the quantity information of available printers and the average historical printing speed of each available printer, calculate the average page number information according to the total page number information and the quantity information, and obtain the predicted printing duration of each available printer according to the average page number information and the average historical printing speed of each available printer; A splitting module (3) is used to generate a plurality of weights corresponding to the available printers according to the predicted printing time of each available printer, and split the printing task into a plurality of subtasks corresponding to the available printers according to the weight corresponding to each available printer, wherein the weight is negatively correlated with the predicted printing time of the corresponding available printer; The allocation module (4) is used to allocate each subtask to a corresponding available printer for execution.
9. An electronic device, characterized in that: The invention comprises a processor (301) and a memory (302), wherein the memory (302) stores a computer program executable by the processor (301), and when the processor (301) executes the computer program, the steps in the method according to any one of claims 1 to 7 are executed.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor (301), the steps in the method according to any one of claims 1 to 7 are performed.