Task allocation method and device, equipment, storage medium and program product
By calculating the priority values of tasks and processing objects, and dynamically matching tasks and processing objects, the problem of mismatch between allocation results and processing object status in the existing technology is solved, and task processing efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411087121.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-15
AI Technical Summary
In the prior art, when tasks are allocated, the processing status of the processing object changes dynamically, resulting in a mismatch between the allocation result and the specific status of the processing object, reducing task processing efficiency and accuracy.
By obtaining relevant data of tasks and processing objects, calculate the current allocation priority value and scheduling priority value, determine the highest priority value and match the tasks and processing objects, and dynamically adjust task allocation to improve the matching degree.
It improves the efficiency and accuracy of task processing, and improves the accuracy of allocation results by matching the status of tasks and processing objects in real time.
Smart Images

Figure CN118779112A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of resource management technology, and in particular to a task allocation method, device, equipment, storage medium and program product. Background Art
[0002] With the rapid development of the Internet industry, the functions supported by Internet products and the number of users using Internet products are increasing. The processing objects need to manage and review the task data generated when users use Internet products. For example, the content posted by users using chat software, or the operational content posted by operators in the background, need to be managed and reviewed to ensure the security and purity of Internet products. This involves task allocation, that is, allocating the task data corresponding to the user to the processing object.
[0003] Currently, when allocating tasks, allocation conditions are generally pre-configured, such as pre-configuring the correspondence between each processing object and each task, and then using a process engine or other means to allocate tasks to corresponding processing objects for processing according to the above correspondence.
[0004] However, in the actual allocation process, the specific processing status of the processing object when processing tasks, such as processing quantity, processing accuracy, etc., changes dynamically, which makes the allocation result mismatch with the specific processing status of the processing object, reducing the task processing efficiency and accuracy. Summary of the invention
[0005] The present application provides a task allocation method, device, equipment, storage medium and program product to solve the problem in the prior art that the allocation result does not match the specific processing status of the processing task of the processing object, thereby reducing the task processing efficiency and accuracy.
[0006] In a first aspect, the present application provides a task allocation method, comprising: obtaining allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object; the allocation data comprises an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero; the scheduling data comprises the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate;
[0007] The current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold, and the current scheduling priority value corresponding to each processing object is calculated according to the corresponding number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate;
[0008] Determine the highest allocation priority value and the highest scheduling priority value according to the calculation result, and calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value;
[0009] In response to determining that the target matching score is greater than a preset matching threshold, the task corresponding to the highest allocation priority value is allocated to the processing object corresponding to the highest scheduling priority value.
[0010] In one possible design, the current allocation priority value corresponding to each task is calculated based on the corresponding initial allocation priority value and the preset waiting threshold, including: determining the difference between the current time and the time when the allocation data corresponding to each task is in the preset task queue; in response to the existence of at least one task corresponding to a difference value greater than the preset waiting threshold, respectively calculating the sum of the initial allocation priority value corresponding to each task whose difference value is greater than the preset waiting threshold and the first adjustment value, and determining the corresponding sum value as the corresponding current allocation priority value; in response to the existence of at least one task corresponding to a difference value less than or equal to the preset waiting threshold, determining the initial allocation priority value corresponding to each task whose difference value is less than or equal to the preset waiting threshold as the corresponding current allocation priority value.
[0011] In one possible design, the current scheduling priority value corresponding to each processing object is calculated based on the corresponding number of recently processed tasks, the number of tasks to be processed and the review accuracy, including: obtaining the preset weight values corresponding to the number of recently processed tasks, the number of tasks to be processed and the review accuracy; calculating the weighted sum of the number of recently processed tasks and the review accuracy, and determining whether the number of tasks to be processed is zero; if not, calculating the weighted ratio of the weighted sum and the number of tasks to be processed, and determining the weighted ratio as the current scheduling priority value corresponding to each processing object; if so, determining the weighted sum as the current scheduling priority value corresponding to each processing object.
[0012] In one possible design, the allocation data also includes: task details information; the calculation of the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value includes: obtaining a preset matching model, task details information corresponding to the highest allocation priority value, and processing object information corresponding to the highest scheduling priority value; the preset matching model is trained using historical processing object associated task data marked with corresponding preset matching values, and the historical processing object associated task data includes: historical processing object information and historical task details information corresponding to the historical processing object, or historical processing object information, historical task details information corresponding to the historical processing object, and the review accuracy of the historical processing object; the task details information corresponding to the highest allocation priority value and the processing object information corresponding to the highest scheduling priority value are input into the preset matching model; the target matching value is output based on the preset matching model, and a preset matching weight value is obtained; the target matching score is calculated according to the preset matching weight value and the target matching value.
[0013] In one possible design, obtaining allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object includes: obtaining allocation data corresponding to at least one task in a preset task queue, and obtaining scheduling data corresponding to at least one processing object through a communication connection with at least one processing object terminal.
[0014] In one possible design, allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value includes: sending the task detail information corresponding to the highest allocation priority value to the processing object terminal corresponding to the highest scheduling priority value through a communication connection with at least one processing object terminal.
[0015] In one possible design, after calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, it also includes: in response to determining that the target matching score is less than or equal to a preset matching threshold, determining a first high scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object; calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value; in response to determining that the target matching score is greater than the preset matching threshold, assigning the task corresponding to the highest allocation priority value to the processing object corresponding to the first high scheduling priority value; in response to determining that the target matching score is less than or equal to the preset matching threshold, executing the steps of determining the latest first high scheduling priority value to calculating the target matching score, until it is determined that the target matching score is greater than the preset matching threshold, assigning the task corresponding to the highest allocation priority value to the processing object corresponding to the latest first high scheduling priority value.
[0016] In one possible design, after allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value, it also includes: determining the second highest matching priority value according to the calculation results of the current allocation priority values corresponding to each task, and determining the second high scheduling priority value according to the calculation results of the current scheduling priority values corresponding to each processing object; calculating the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second high scheduling priority value; in response to determining that the target matching score is greater than a preset matching threshold, allocating the task corresponding to the second highest allocation priority value to the processing object corresponding to the second high scheduling priority value; in response to determining that the target matching score is less than or equal to the preset matching threshold, executing the steps of determining the latest second high scheduling priority value to calculating the target matching score, until it is determined that the target matching score is greater than the preset matching threshold, and allocating the task corresponding to the second highest allocation priority value to the processing object corresponding to the latest second high scheduling priority value.
[0017] In one possible design, before obtaining the allocation data corresponding to at least one task, it also includes: receiving a task allocation instruction sent by at least one user terminal; the task allocation instruction includes specific task information; generating the allocation data corresponding to each task based on each specific task information, and storing the allocation data corresponding to each task in a preset task queue in the order of receipt.
[0018] In one possible design, before obtaining the allocation data corresponding to at least one task, it also includes: receiving a task allocation instruction sent by at least one user terminal; the task allocation instruction includes specific task information and task expediting information; generating the allocation data corresponding to each task based on the specific task information and the task expediting information, and storing the allocation data corresponding to each task in a preset task queue according to the generation result and the receiving order.
[0019] In one possible design, it also includes: in response to determining that at least one processing object terminal is in an offline state and the corresponding number of tasks to be processed is not zero, obtaining allocation data corresponding to the tasks to be processed; obtaining the corresponding current allocation priority value in the allocation data corresponding to the tasks to be processed, and obtaining a second adjustment value; determining the sum of the second adjustment value and the current allocation priority value as the latest current allocation priority value corresponding to each task, and allocating the tasks to be processed based on the latest current allocation priority value.
[0020] In a possible design, it also includes: in response to determining that the current time meets the requirements of a preset review cycle, obtaining a preset number of processed task detail information and corresponding processing object information; sending each processed task detail information and corresponding processing object information to the review object terminal, and receiving the review results of the processed task corresponding to the processing object sent by the review object terminal.
[0021] In a possible design, the allocation data also includes: a task identifier and task status information; the task identifier is automatically generated by the system and is a unique identifier used to represent the identity of the task; the task status information is status information used to represent successful submission of the task.
[0022] In a second aspect, the present application provides a task allocation device, comprising: an acquisition module, used to acquire allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object; the allocation data includes an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero; the scheduling data includes the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate;
[0023] A calculation module is used to calculate the current allocation priority value corresponding to each task according to the corresponding initial allocation priority value and the preset waiting threshold, and calculate the current scheduling priority value corresponding to each processing object according to the corresponding number of recently processed tasks, the number of tasks to be processed and the review accuracy;
[0024] A determination module, used for determining a highest allocation priority value and a highest scheduling priority value according to the calculation result;
[0025] The calculation module is further used to calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value;
[0026] The allocation module is used to allocate the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value in response to determining that the target matching score is greater than a preset matching threshold.
[0027] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0028] The memory stores computer-executable instructions;
[0029] The processor executes the computer-executable instructions stored in the memory to implement the task allocation method described in the first aspect and various possible designs of the first aspect.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the task allocation method described in the first aspect and various possible designs of the first aspect.
[0031] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the task allocation method described in the first aspect and various possible designs of the first aspect.
[0032] The task allocation method, apparatus, device, storage medium and program product provided by the present application obtain allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object; the allocation data includes an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero; the scheduling data includes the number of recently processed tasks, the number of tasks to be processed and the review accuracy rate; the current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold, and the current scheduling priority value corresponding to each processing object is calculated according to the corresponding number of recently processed tasks, the number of tasks to be processed and the review accuracy rate; the highest allocation priority value and the highest scheduling priority value are determined according to the calculation results, and the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value is calculated; in response to determining that the target matching score is greater than the preset matching threshold, the task corresponding to the highest allocation priority value is allocated to the processing object corresponding to the highest scheduling priority value. Since the allocation data including the initial allocation priority value and the preset waiting threshold corresponding to at least one task has been obtained, and the scheduling data including the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate corresponding to at least one processing object has been obtained, the current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold value, and the current scheduling priority value corresponding to each processing object is calculated according to the corresponding number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate, and the highest allocation priority value and the highest scheduling priority value can be determined according to the calculation results. And by calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, when it is determined that the target matching score is greater than the preset matching threshold, the task corresponding to the highest allocation priority value can be assigned to the processing object corresponding to the highest scheduling priority value, thereby improving the matching degree between the allocation result and the specific processing state of the processing object, thereby improving the efficiency and accuracy of task processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0034] Figure 1 An application scenario diagram of the task allocation method provided in an embodiment of the present application;
[0035] Figure 2 The process of the task allocation method provided in the embodiment of the present application Figure 1 ;
[0036] Figure 3 The process of the task allocation method provided in the embodiment of the present application Figure 2 ;
[0037] Figure 4 The process of the task allocation method provided in the embodiment of the present application Figure 3 ;
[0038] Figure 5 The process of the task allocation method provided in the embodiment of the present application Figure 4 ;
[0039] Figure 6 A complete flowchart of the task allocation method provided in the embodiment of the present application;
[0040] Figure 7 A schematic diagram of the structure of a task allocation device provided in an embodiment of the present application;
[0041] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0042] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0043] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0044] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.
[0045] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0046] In the prior art, when allocating tasks, the relevant management personnel generally configure the corresponding relationship between each processing object and each task in the system in advance, for example, the business relationship, that is, establish a corresponding relationship between the processing objects and tasks belonging to the same business. Then, when there is at least one task to be processed, the process engine and other means are used to allocate each task to the corresponding processing object for processing according to the above-mentioned corresponding relationship. However, in the actual allocation process, the specific processing status of the processing object when processing the task, such as the number of processing, processing accuracy, etc., changes dynamically, which makes the allocation result inconsistent with the specific processing status of the processing object, reducing the efficiency and accuracy of task processing.
[0047] In response to the above technical problems, the present application proposes the following technical concept: in order to improve the matching degree between the allocation result and the specific processing status of the processing object processing task, thereby improving the task processing efficiency and accuracy, instead of configuring the correspondence between each processing object and each task, and performing task allocation based on this correspondence, the urgency of each task is determined in real time, and the scheduling priority of each processing object is calculated in real time in combination with the specific processing status of the processing object processing task. For example, the scheduling priority of each processing object is calculated in real time in combination with information such as the most recent processing quantity, the number to be processed, and the processing accuracy, and then, according to the urgency of each task, a processing object with a higher scheduling priority is assigned to each task in turn, and the matching degree of this allocation result is calculated. If the matching degree is high, each task is assigned to the corresponding processor, thereby improving the matching degree between the allocation result and the specific processing status of the processing object, thereby improving the task processing efficiency and accuracy.
[0048] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0049] Figure 1 This is an application scenario diagram of the task allocation method provided in the embodiment of the present application. Figure 1As shown, the application scenario includes: at least one user terminal 1, an electronic device 2, and at least one processing object terminal 3. Among them, at least one user terminal 1 is a terminal where at least one user using an Internet product is located, the electronic device 2 is a device for performing task allocation, and at least one processing object terminal 3 is a terminal where at least one processing object responsible for reviewing the data generated by the user in the Internet product is located. Among them, the electronic device 2 is connected to the at least one user terminal 1 and the at least one processing object terminal 3 for communication. First, the electronic device 2 obtains the allocation data corresponding to at least one task including the initial allocation priority value and the preset waiting threshold based on the communication connection with at least one user terminal 1, and obtains the scheduling data corresponding to at least one processing object including the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate based on the communication connection with at least one processing object terminal 3. Then, the current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold, and the current scheduling priority value corresponding to each processing object is calculated according to the corresponding number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate. Finally, the highest allocation priority value and the highest scheduling priority value are determined according to the calculation results, and the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value is calculated. It is determined whether the target matching score is greater than the preset matching threshold. If so, the task corresponding to the highest allocation priority value is assigned to the processing object corresponding to the highest scheduling priority value. The initial allocation priority value is not zero.
[0050] based on Figure 1 In the application scenario shown, an embodiment of the present application also provides a task allocation method.
[0051] Figure 2 The process of the task allocation method provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, the task allocation method includes:
[0052] S201, obtaining allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object. The allocation data includes an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero. The scheduling data includes the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate.
[0053] Among them, the task is to review the data generated when users use Internet products.
[0054] Among them, the processing object is the object of the processing task, that is, the object responsible for reviewing the data generated when the user uses the Internet product.
[0055] The allocation data refers to the data that needs to be considered when allocating tasks, and is specifically used to represent the current state of the task to be allocated.
[0056] The scheduling data is data that needs to be considered when assigning tasks to the processing object, and is specifically used to characterize the current task processing status of the processing object.
[0057] In this embodiment, the electronic device can first obtain specific task information fed back by at least one user terminal and specific processing status information fed back by at least one processing object terminal based on the communication connection with the user terminal and the processing object terminal, and then generate allocation data corresponding to at least one task based on the at least one specific task information, and determine scheduling data corresponding to at least one processing object based on the at least one specific processing status information.
[0058] Based on this, allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object are obtained.
[0059] Among them, the user terminal is the terminal where the user who uses the Internet product is located, and the processing object terminal is the terminal where the processing object responsible for the review task is located.
[0060] Among them, specific task information is used to reflect the data generated when users use Internet products. Specific processing status information is used to reflect the specific status of the processing object when processing tasks.
[0061] The process of generating allocation data based on specific task information is described in detail below.
[0062] It is understandable that the generated allocation data may include the following: task identification, task status information, initial allocation priority value, preset waiting threshold value and task detail information.
[0063] The task identifier is a unique identifier that represents the identity of the task. When generating the task identifier, a strategy for automatically generating the task identifier can be pre-set. After receiving the specific task information fed back by the user terminal, a unique task identifier is automatically generated based on the above strategy, for example, a unique task number is generated based on the user name. This embodiment does not limit the specific form of the task identifier.
[0064] Among them, the task status information is the status information that indicates the successful submission of the task. Similarly, when generating the task status information, a strategy for automatically generating the task status information can be pre-set. After receiving the specific task information fed back by the user terminal, the task status information indicating that the task has been submitted is generated based on the above strategy, such as the field where "Submitted" is located. This embodiment does not limit the specific content of the task status information.
[0065] Among them, the initial allocation priority value is an initial value that characterizes the urgency of the task, that is, the more urgent the task is, the greater its initial allocation priority value is. When generating the initial allocation priority value, a default value can be configured for the initial allocation priority value in advance. After receiving the specific task information fed back by the user terminal, the initial allocation priority value is automatically set to the default value, such as "1". This embodiment does not limit the specific default value, but since each task has an allocation requirement, the initial allocation priority value corresponding to each task is not zero.
[0066] The preset waiting threshold is the maximum time value that a task is allowed to be in a waiting state for assignment. When generating the preset waiting threshold, the preset waiting threshold can be configured with a maximum time value that a task is allowed to be in a waiting state in advance. After receiving specific task information fed back by the user terminal, the preset waiting threshold is automatically set to the maximum time value, such as "5 minutes". This embodiment does not limit the specific time value.
[0067] The task details information is information related to the data generated when the user uses the Internet product, such as the specific data released by the user in the chat software. After receiving the specific task information fed back by the user terminal, the data reflected by the specific task information is obtained, and the data is serialized to obtain the corresponding character string, thereby generating the task details information. This embodiment does not limit the specific data.
[0068] It can be understood that after generating the task identifier, task status information, initial allocation priority value, preset waiting threshold value and task detail information, serializing them in json format can generate the allocation data corresponding to the task.
[0069] The following describes in detail the process of determining the scheduling data corresponding to the processing object based on the specific processing status information.
[0070] It is understandable that the determined scheduling data may include the following: the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate.
[0071] The number of recently processed tasks is the number of tasks that the processing object has processed in the recent period of time. When determining the number of recently processed tasks, a time window can be pre-defined, and the time window can be used to represent the processed tasks. Then, when it is determined that at least one task is processed by the processing object, these tasks and the completion timestamps corresponding to these tasks are stored in the corresponding hash table, and then the number of tasks processed by the processing object in a certain period of time is obtained according to the timestamp, such as the number of tasks processed in the last 3 minutes.
[0072] Among them, the number of tasks to be processed is the number of tasks that have been assigned to the processing object but have not been processed by the processing object. When determining the number of tasks to be processed, the number of all tasks assigned to the processing object can be determined based on the allocation result, and the number of tasks processed by the processing object can be obtained based on the time window, and then the difference between these two numbers can be taken to obtain the number of tasks to be processed.
[0073] The review accuracy rate is the ratio of the processed tasks that meet the requirements to all the processed tasks. When determining the review accuracy rate, the review results of the processed objects corresponding to the processed tasks can be obtained, and then the ratio of the number of qualified tasks in the review results to the number of all tasks assigned to the processed objects can be calculated to obtain the review accuracy rate of the processed objects corresponding to the processed tasks.
[0074] It is understandable that after determining the number of recently processed tasks, the number of tasks to be processed, and the review accuracy, the scheduling data corresponding to the processing tasks is determined.
[0075] S202, calculating the current allocation priority value corresponding to each task according to the corresponding initial allocation priority value and the preset waiting threshold, and calculating the current scheduling priority value corresponding to each processing object according to the corresponding number of recently processed tasks, the number of tasks to be processed and the review accuracy.
[0076] The current allocation priority value is a value representing the current urgency of the task.
[0077] It can be understood that the higher the current allocation priority value is, the more urgent the task is and the task needs to be allocated with priority.
[0078] The current scheduling priority value is a value used to characterize the current scheduling feasibility of the processing object.
[0079] It can be understood that, the higher the current scheduling priority value is, the higher the current scheduling feasibility of the processing object is, that is, the processing object can be allocated with priority during allocation.
[0080] In this embodiment, after obtaining the allocation data corresponding to at least one task and the scheduling data corresponding to at least one processing object, the current allocation priority value corresponding to each task is calculated based on the initial allocation priority value in each allocation data and the preset waiting threshold value to determine the current urgency of each task. Then, the current scheduling priority value corresponding to each processing object is calculated based on the number of recently processed tasks, the number of tasks to be processed, and the review accuracy in each scheduling data to determine the current scheduling feasibility of each processing object.
[0081] S203. Determine the highest allocation priority value and the highest scheduling priority value according to the calculation result, and calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value.
[0082] The highest allocation priority value is the current allocation priority value with the highest value among all current allocation priority values, and the highest scheduling priority value is the current scheduling priority value with the highest value among all current scheduling priority values.
[0083] The target matching score is a score that represents the matching degree between a task and a processing object.
[0084] In this embodiment, after obtaining each current allocation priority value and each current scheduling priority value, according to the calculation result, the current allocation priority value with the highest value is determined among the current allocation priority values, and the current allocation priority value is determined as the highest allocation priority value. Similarly, the current scheduling priority value with the highest value is determined among the current scheduling priority values, and the current scheduling priority value is determined as the highest scheduling priority value.
[0085] Based on this, the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value is calculated according to the determination result.
[0086] S204: In response to determining that the target matching score is greater than a preset matching threshold, assigning the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value.
[0087] The preset matching threshold is the minimum value that the preset target matching score should reach when meeting the matching requirement.
[0088] In this embodiment, after obtaining the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, the pre-configured preset matching threshold is obtained, and the preset matching threshold is compared with the target matching score to determine whether the target matching score is greater than the preset matching threshold.
[0089] Based on this, in response to the judgment result that the target matching score is greater than the preset matching threshold, it means that the target matching score meets the matching requirements, that is, the task corresponding to the currently determined highest allocation priority value and the processing object corresponding to the highest scheduling priority value have a strong match, then the task is assigned to the processing object.
[0090] The task allocation method provided in this embodiment obtains allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object; the allocation data includes an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero; the scheduling data includes the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate; the current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold, and the current scheduling priority value corresponding to each processing object is calculated according to the corresponding number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate; the highest allocation priority value and the highest scheduling priority value are determined according to the calculation results, and the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value is calculated; in response to determining that the target matching score is greater than the preset matching threshold, the task corresponding to the highest allocation priority value is allocated to the processing object corresponding to the highest scheduling priority value. Since the allocation data including the initial allocation priority value and the preset waiting threshold corresponding to at least one task has been obtained, and the scheduling data including the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate corresponding to at least one processing object has been obtained, the current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold value, and the current scheduling priority value corresponding to each processing object is calculated according to the corresponding number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate, and the highest allocation priority value and the highest scheduling priority value can be determined according to the calculation results. And by calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, when it is determined that the target matching score is greater than the preset matching threshold, the task corresponding to the highest allocation priority value can be assigned to the processing object corresponding to the highest scheduling priority value, thereby improving the matching degree between the allocation result and the specific processing state of the processing object, thereby improving the efficiency and accuracy of task processing.
[0091] Figure 3 The process of the task allocation method provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, in this embodiment Figure 2 On the basis of the corresponding embodiment, the current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold value, and further refined. In this embodiment, when the current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold value, the following steps are specifically included:
[0092] S301: Determine the difference between the current time and the time when the allocation data corresponding to each task is in the preset task queue.
[0093] The current time is the time for starting to calculate the current allocation priority value corresponding to each task.
[0094] It can be understood that the current allocation priority value represents the current urgency of the task, that is, the more urgent the task is, the higher the corresponding current allocation priority value is, and the more likely it is to be allocated first. Therefore, under this allocation form, there may be some tasks in the preset task queue that have not been allocated for a long time. In order to ensure user experience, the urgency of these tasks that have not been allocated for a long time needs to be appropriately adjusted to increase their probability of being allocated.
[0095] Specifically, the current time is first determined based on the positioning component, and the waiting time of the allocation data corresponding to each task in the preset task queue is determined, and the difference between the two times is calculated to obtain the unallocated time of each task.
[0096] S302, in response to the existence of at least one task corresponding to a difference value greater than a preset waiting threshold, respectively calculate the sum of the initial allocation priority value and the first adjustment value corresponding to each task having a difference value greater than the preset waiting threshold, and determine the corresponding sum value as the corresponding current allocation priority value.
[0097] The first adjustment value is pre-configured and is used to adjust the current urgency value of a task that has not been assigned for a long time.
[0098] In this embodiment, after obtaining the difference value corresponding to each task, a pre-configured preset waiting threshold is obtained, and the difference value corresponding to each task is compared with the preset waiting threshold to determine whether the difference value corresponding to each task is greater than the preset waiting threshold.
[0099] Based on this, in response to the existence of at least one task whose corresponding difference is greater than the preset waiting threshold, it indicates that at least one task has not been assigned for a long time, and the urgency of these tasks needs to be adjusted. Further, a pre-configured first adjustment value is obtained, and the initial allocation priority value corresponding to each task whose difference is greater than the preset waiting threshold is obtained, and the sum of the above initial allocation priority values and the first adjustment value is calculated respectively, and the sum of the tasks whose difference is greater than the preset waiting threshold is determined as the current allocation priority value corresponding to each task whose difference is greater than the preset waiting threshold.
[0100] S303: In response to the existence of at least one task corresponding to a difference value less than or equal to a preset waiting threshold, determine the initial allocation priority value corresponding to each task having a difference value less than or equal to the preset waiting threshold as the corresponding current allocation priority value.
[0101] In this embodiment, based on determining whether the difference corresponding to each task is greater than the preset waiting threshold, in response to the existence of at least one task whose difference is less than or equal to the preset waiting threshold, it indicates that at least one task is still waiting for allocation and the waiting time is short, and there is no need to adjust the urgency of these tasks. Based on this, the initial allocation priority value corresponding to each task whose difference is less than or equal to the preset waiting threshold is directly determined as the corresponding current allocation priority value.
[0102] The task allocation method provided in this embodiment, when calculating the current allocation priority value corresponding to each task according to the corresponding initial allocation priority value and the preset waiting threshold, determines the difference between the current time and the time when the allocation data corresponding to each task is in the preset task queue; in response to the existence of at least one task corresponding to a difference value greater than the preset waiting threshold, respectively calculates the sum of the initial allocation priority value and the first adjustment value corresponding to each task whose difference value is greater than the preset waiting threshold, and determines the corresponding sum value as the corresponding current allocation priority value; in response to the existence of at least one task corresponding to a difference value less than or equal to the preset waiting threshold, determines the initial allocation priority value corresponding to each task whose difference value is less than or equal to the preset waiting threshold as the corresponding current allocation priority value. Since the allocation data includes the initial allocation priority value and the preset waiting threshold that are not zero, by determining the difference between the current time and the time when the allocation data corresponding to each task is in the preset task queue, when it is determined that there is at least one task corresponding to a difference value greater than the preset waiting threshold, the urgency of these tasks can be increased, that is, respectively calculates the sum of the initial allocation priority value and the first adjustment value corresponding to each task whose difference value is greater than the preset waiting threshold, and thus determines the corresponding sum value as the corresponding current allocation priority value. When it is determined that there is at least one task whose corresponding difference is less than or equal to the preset waiting threshold, the initial allocation priority value corresponding to each task whose difference is less than or equal to the preset waiting threshold is directly determined as the corresponding current allocation priority value, thereby accurately determining the urgency of each task, avoiding long waiting time for some tasks, and improving user experience.
[0103] Figure 4 The process of the task allocation method provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, in this embodiment Figure 2 On the basis of the corresponding embodiment, the current scheduling priority value corresponding to each processing object is calculated according to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate, and is further refined. In this embodiment, when the current scheduling priority value corresponding to each processing object is calculated according to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate, the following steps are specifically included:
[0104] S401, obtaining preset weight values corresponding to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate.
[0105] Among them, the preset weight value is a weight value pre-configured by relevant management personnel according to actual requirements, and specifically can be a value greater than 1.
[0106] In this embodiment, the preset weight value is not an inherent value of a certain feature. For each feature in the scheduling data, namely the number of recently processed tasks, the number of tasks to be processed, and the review accuracy, there is a corresponding designated preset weight value pair.
[0107] Specifically, first obtain the preset weight values corresponding to the pre-configured number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate.
[0108] S402: Calculate the weighted sum of the number of recently processed tasks and the review accuracy, and determine whether the number of tasks to be processed is zero.
[0109] In this embodiment, after obtaining the preset weight values corresponding to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate, the number of recently processed tasks corresponding to each processing object is multiplied by the corresponding preset weight value, and the review accuracy rate corresponding to each processing object is multiplied by the corresponding preset weight value, and then the sum of the two multiplication results is calculated to obtain the weighted sum value corresponding to each processing object.
[0110] It is understandable that for each processing object, if there is a pending task, it means that the processing object needs a certain amount of time to complete the pending task before processing the newly assigned task. If there is no pending task, it means that the processing object does not need to process other tasks and can process the newly assigned task.
[0111] Therefore, after obtaining the weighted sum value corresponding to each processing object, in order to further evaluate the current scheduling feasibility of each processing object, the number of pending tasks of each processing object needs to be considered. Based on this, it is determined whether the number of pending tasks corresponding to each processing object is zero.
[0112] S403: If not, calculate the weighted ratio of the weighted sum value to the number of tasks to be processed, and determine the weighted ratio as the current scheduling priority value corresponding to each processing object.
[0113] In this embodiment, if it is determined that the number of pending tasks corresponding to each processing object is not zero, it means that each processing object has at least one pending task, and the impact of these pending tasks on the scheduling feasibility needs to be considered. The number of pending tasks corresponding to each processing object is further multiplied by the corresponding preset weight value, and the ratio of the weighted sum value corresponding to each processing object to the above multiplication result is calculated to obtain the weighted ratio.
[0114] Based on this, the determined weighted ratio is determined as the current scheduling priority value corresponding to each processing object.
[0115] S404: If yes, determine the weighted sum value as the current scheduling priority value corresponding to each processing object.
[0116] In this embodiment, if it is determined that the number of pending tasks corresponding to each processing object is zero, it means that there are no pending tasks for each processing object, and there is no need to consider the impact of the pending tasks on the scheduling feasibility. The weighted sum value is directly determined as the current scheduling priority value corresponding to each processing object.
[0117] In order to more clearly illustrate the above process of calculating the current scheduling priority value, a specific formula is used below for explanation:
[0118]
[0119] in, is the current scheduling priority value, The number of recently processed tasks, is the number of tasks to be processed and To check the accuracy, The weight for the number of recently processed tasks, is the weight for the review accuracy, is the weight for the number of tasks to be processed.
[0120] According to the formula, it can be seen that the current scheduling priority value is proportional to the number of recently processed tasks and the review accuracy, and inversely proportional to the number of tasks to be processed.
[0121] The task allocation method provided in this embodiment, when calculating the current scheduling priority value corresponding to each processing object according to the corresponding number of recently processed tasks, the number of tasks to be processed and the review accuracy, obtains the preset weight values corresponding to the number of recently processed tasks, the number of tasks to be processed and the review accuracy respectively; calculates the weighted sum of the number of recently processed tasks and the review accuracy, and determines whether the number of tasks to be processed is zero; if not, calculates the weighted ratio of the weighted sum value and the number of tasks to be processed, and determines the weighted ratio as the current scheduling priority value corresponding to each processing object; if so, determines the weighted sum value as the current scheduling priority value corresponding to each processing object. Since the scheduling data contains the number of recently processed tasks, the number of tasks to be processed and the review accuracy, and the corresponding preset weight values are pre-configured for them, the weighted sum of the number of recently processed tasks and the review accuracy can be calculated by obtaining the preset weight values corresponding to the number of recently processed tasks, the number of tasks to be processed and the review accuracy respectively. By judging whether the number of tasks to be processed is zero, when it is determined that it is not zero, the impact of the tasks to be processed on the scheduling can be further considered, and the weighted ratio of the weighted sum value to the number of tasks to be processed can be calculated, so as to determine the weighted ratio as the current scheduling priority value corresponding to each processing object, and when it is determined to be zero, the weighted sum value can be directly determined as the current scheduling priority value corresponding to each processing object, thereby accurately calculating the current scheduling priority value corresponding to each processing object.
[0122] Figure 5 The process of the task allocation method provided in the embodiment of the present application Figure 4 ,like Figure 5 As shown, in this embodiment Figure 2 On the basis of the corresponding embodiment, the allocation data is further refined, and the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value is further refined. In this embodiment, the allocation data also includes: task details information. When calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, the following steps are specifically included:
[0123] S501, obtaining a preset matching model, task details information corresponding to the highest allocation priority value, and processing object information corresponding to the highest scheduling priority value. The preset matching model is trained using historical processing object associated task data marked with corresponding preset matching values, and the historical processing object associated task data includes: historical processing object information and historical task details information corresponding to the historical processing object, or historical processing object information, historical task details information corresponding to the historical processing object, and the review accuracy of the historical processing object.
[0124] The preset matching model is a pre-established model used to calculate the matching degree between the task and the processing object.
[0125] The processing object information is any information representing the identity of the processing object, such as the processing object identifier, the processing object number, etc.
[0126] Among them, the historical processing object associated task data is the historical data generated when a processing object processes a task, specifically including the historical processing object information and the historical task details information corresponding to the historical processing object, or the historical processing object information, the historical task details information corresponding to the historical processing object and the review accuracy of the historical processing object.
[0127] The preset matching value is a score assigned to the result of a processing object processing a task, and is used to represent the matching degree between the processing object and the task.
[0128] The historical processing object information is used to characterize the identity of the processing object that has processed the task. The historical task details information is information related to the data generated when the user used the Internet product, such as the specific data that the user has published in the chat software.
[0129] In this embodiment, the previous matching results can be obtained in advance to obtain the historical processing object associated task data, that is, the historical processing object information and the historical task details information corresponding to the historical processing object, and score the processing process to obtain the corresponding preset matching value, such as "90". Then, the historical processing object associated task data is marked with the corresponding preset matching value, and the historical processing object associated task data marked with the corresponding preset matching value is used as a training sample.
[0130] It is understandable that in order to ensure the processing quality of the processing object, the results of the processing object processing tasks will be extracted and reviewed within a certain time period. Therefore, in the previous matching results, there may be some historical processing object associated task data that have been reviewed. Therefore, the review accuracy of the historical processing objects can be further considered.
[0131] Optionally, based on the previous matching results, historical processing object-related task data including historical processing object information, historical task details information corresponding to the historical processing object, and the review accuracy of the historical processing object are obtained, and the processing process is comprehensively scored to obtain the corresponding preset matching value. The historical processing object-related task data is then marked with the corresponding preset matching value, and the historical processing object-related task data marked with the corresponding preset matching value is used as a training sample.
[0132] Based on this, an original model is established, and the model is trained with the above training samples until convergence to obtain a preset matching model.
[0133] In this embodiment, in response to calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, the preset matching model, the task details information corresponding to the highest allocation priority value, and the processing object information corresponding to the highest scheduling priority value are first obtained.
[0134] S502: Input the task details information corresponding to the highest allocation priority value and the processing object information corresponding to the highest scheduling priority value into a preset matching model.
[0135] In this embodiment, after obtaining the preset matching model, the task details information corresponding to the highest allocation priority value, and the processing object information corresponding to the highest scheduling priority value, the task details information corresponding to the highest allocation priority value and the processing object information corresponding to the highest scheduling priority value are input into the preset matching model.
[0136] S503: Output a target matching value based on a preset matching model, and obtain a preset matching weight value.
[0137] The preset matching weight value is a weight value pre-configured for the target matching value, and specifically may be a value greater than 1.
[0138] In this embodiment, the preset matching model performs calculations based on the input results, outputs the target matching value corresponding to when the processing object reflected by the processing object information corresponding to the highest scheduling priority value processes the task reflected by the task details information corresponding to the highest allocation priority value, and obtains the preset matching weight value pre-configured for the target matching value.
[0139] S504: Calculate the target matching score according to the preset matching weight value and the target matching value.
[0140] In this embodiment, after the target matching value and the corresponding preset matching weight are obtained, the target matching value and the preset matching weight value are multiplied to obtain the corresponding target matching score.
[0141] The task allocation method provided in this embodiment, the allocation data also includes: task detail information, when calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, a preset matching model, the task detail information corresponding to the highest allocation priority value, and the processing object information corresponding to the highest scheduling priority value are obtained; the preset matching model is trained using historical processing object associated task data marked with corresponding preset matching values, and the historical processing object associated task data includes: historical processing object information and historical task detail information corresponding to the historical processing object, or historical processing object information, historical task detail information corresponding to the historical processing object, and the review accuracy of the historical processing object; the task detail information corresponding to the highest allocation priority value and the processing object information corresponding to the highest scheduling priority value are input into the preset matching model; the target matching value is output based on the preset matching model, and the preset matching weight value is obtained; the target matching score is calculated according to the preset matching weight value and the target matching value. Since the allocation data also includes task detail information, and a preset matching model is established in advance with historical processing object information marked with preset matching values and historical task detail information corresponding to historical processing objects / historical processing object information marked with preset matching values, historical task detail information corresponding to historical processing objects, and the review accuracy of historical processing objects as training samples, so by obtaining the preset matching model, the task detail information corresponding to the highest allocation priority value, and the processing object information corresponding to the highest scheduling priority value, the task detail information corresponding to the highest allocation priority value and the processing object information corresponding to the highest scheduling priority value can be input into the preset matching model, and the target matching value can be output based on the preset matching model, so that by obtaining the preset matching weight value, the target matching score can be calculated according to the preset matching weight value and the target matching value, thereby improving the accuracy of the calculated target matching score, and then improving the accuracy of determining the degree of matching between the task and the corresponding processing object.
[0142] As an optional embodiment, based on the above embodiment, this embodiment further refines the step of obtaining the allocation data corresponding to at least one task and the scheduling data corresponding to at least one processing object in S201, and S201 specifically includes the following steps:
[0143] The allocation data corresponding to at least one task is obtained in a preset task queue, and the scheduling data corresponding to at least one processing object is obtained through a communication connection with at least one processing object terminal.
[0144] The preset task queue is a pre-set queue for storing allocation data corresponding to each task, which may be in the form of a task pool or a task manager. This embodiment does not limit the specific form of the queue.
[0145] It is understandable that for the tasks fed back by each user terminal, a preset task queue needs to be set to temporarily store the allocation data corresponding to each task. When task allocation begins, task allocation is performed based on the allocation data corresponding to each task in the preset task queue.
[0146] Specifically, a preset task queue is obtained, and the allocation data corresponding to each task is further obtained therein. At the same time, the processing status of each processing object terminal is monitored based on the communication connection with each processing object terminal, and the scheduling data corresponding to each processing object is determined and obtained according to each processing status. The specific determination method is similar to the determination method in S201, and will not be repeated here.
[0147] The task allocation method provided in this embodiment acquires the allocation data corresponding to at least one task and the scheduling data corresponding to at least one processing object in the preset task queue when acquiring the allocation data corresponding to at least one task and the scheduling data corresponding to at least one processing object, and acquires the scheduling data corresponding to at least one processing object through the communication connection with at least one processing object terminal. Since the preset task queue is preset and the communication connection with at least one processing object terminal is pre-established, the allocation data corresponding to at least one task and the scheduling data corresponding to at least one processing object can be acquired through the preset task queue and each communication connection, thereby smoothly acquiring each allocation data and each scheduling data, and improving the success rate of subsequent task allocation.
[0148] As an optional embodiment, in this embodiment Figure 2 On the basis of the corresponding embodiment, the step of allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value in S204 is further refined, and S204 specifically includes the following steps:
[0149] The task detail information corresponding to the highest allocation priority value is sent to the processing object terminal corresponding to the highest scheduling priority value through a communication connection with at least one processing object terminal.
[0150] It is understandable that the ultimate goal of task allocation is to allow the processing object to review the data generated by the users corresponding to the task in the Internet product.
[0151] Based on this, in response to assigning the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value, based on the communication connection with at least one processing object terminal, the task detail information corresponding to the highest allocation priority value is sent to the processing object terminal corresponding to the highest scheduling priority value, so that the processing object corresponding to the processing object terminal can review the data generated by the user in the Internet product reflected in the task detail information.
[0152] The task allocation method provided in this embodiment, when allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value, sends the task details information corresponding to the highest allocation priority value to the processing object terminal corresponding to the highest scheduling priority value through a communication connection with at least one processing object terminal. Through a communication connection with at least one processing object terminal, the task details information corresponding to the highest allocation priority value can be sent to the processing object terminal corresponding to the highest scheduling priority value, thereby sending the user data reflected by the task details information to the processing object corresponding to the processing object terminal, thereby enabling the processing object to smoothly obtain the user data to be processed, further improving the success rate of task allocation.
[0153] As an optional embodiment, based on the above-mentioned previous embodiment, after calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, this embodiment further includes the following steps:
[0154] Step a1: In response to determining that the target matching score is less than or equal to a preset matching threshold, a first high scheduling priority value is determined according to a calculation result of a current scheduling priority value corresponding to each processing object.
[0155] Among them, the first high scheduling priority value is the next current scheduling priority value after the highest scheduling priority value, which is a specific value further determined based on the result that the task and the processing object are not matched enough.
[0156] In this embodiment, based on the judgment in the corresponding embodiment of S204 that the target matching score is greater than the preset matching threshold, in response to determining that the target matching score is less than or equal to the preset matching threshold, it means that the target matching score does not meet the matching requirement, that is, the task corresponding to the currently determined highest allocation priority value and the processing object corresponding to the highest scheduling priority value have a low matching degree. Then, based on the stronger urgency of the task, according to the calculation result of the current scheduling priority value corresponding to each processing object, the next current scheduling priority value that is located after the highest scheduling priority value and whose specific value is only less than the highest scheduling priority value is determined, and the current scheduling priority value is determined to be the first high scheduling priority value.
[0157] Step a2: Calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value.
[0158] In this embodiment, after the first high scheduling priority value is determined, the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value is calculated. The specific calculation method is similar to the method of calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value in S203 and S501-S504, and will not be repeated here.
[0159] Step a3: In response to determining that the target matching score is greater than a preset matching threshold, the task corresponding to the highest allocation priority value is allocated to the processing object corresponding to the first high scheduling priority value.
[0160] In this embodiment, based on the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value, it is determined whether the target matching score is greater than the preset matching threshold. If so, the task corresponding to the highest allocation priority value is assigned to the processing object corresponding to the first high scheduling priority value. The specific execution method is similar to S204 and will not be repeated here.
[0161] Step a4: In response to determining that the target matching score is less than or equal to the preset matching threshold, execute the steps of determining the latest first high scheduling priority value to calculating the target matching score, until it is determined that the target matching score is greater than the preset matching threshold, and assign the task corresponding to the highest allocation priority value to the processing object corresponding to the latest first high scheduling priority value.
[0162] In this embodiment, based on whether the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value is greater than the preset matching threshold, if not, the steps of determining the latest first high scheduling priority value to calculating the target matching score are executed until it is determined that the target matching score is greater than the preset matching threshold. The task corresponding to the highest allocation priority value is assigned to the processing object corresponding to the latest first high scheduling priority value. The specific execution method is similar to step a1 to step a2, and will not be repeated here one by one.
[0163] The task allocation method provided in this embodiment, after calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, in response to determining that the target matching score is less than or equal to a preset matching threshold, determines a first high scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object; calculates the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value; in response to determining that the target matching score is greater than the preset matching threshold, allocates the task corresponding to the highest allocation priority value to the processing object corresponding to the first high scheduling priority value; in response to determining that the target matching score is less than or equal to the preset matching threshold, executes the steps of determining the latest first high scheduling priority value to calculating the target matching score, until it is determined that the target matching score is greater than the preset matching threshold, and allocates the task corresponding to the highest allocation priority value to the processing object corresponding to the latest first high scheduling priority value. Since the task corresponding to the highest allocation priority value may not be sufficiently matched with the processing object corresponding to the highest scheduling priority value, the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value can be calculated by determining the first high scheduling priority value, and when it is determined that the target matching score is greater than the preset matching threshold, the task corresponding to the highest allocation priority value can be assigned to the processing object corresponding to the first high scheduling priority value. When it is determined that the target matching score is less than or equal to the preset matching threshold, the steps of determining the latest first high scheduling priority value to calculating the target matching score are executed repeatedly until it is determined that the target matching score is greater than the preset matching threshold, and the task corresponding to the highest allocation priority value is assigned to the processing object corresponding to the latest first high scheduling priority value. In this way, while considering the urgency of the task, the task is assigned to the processing object that best matches it, thereby further improving the accuracy of task processing.
[0164] As an optional embodiment, in this embodiment Figure 2 On the basis of the corresponding embodiment, after allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value, the following steps are also included:
[0165] Step b1: Determine the second highest matching priority value according to the calculation result of the current allocation priority value corresponding to each task, and determine the second highest scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object.
[0166] The second highest matching priority value is the next current allocation priority value whose specific value is further determined based on the result of the task corresponding to the highest allocation priority value that has been allocated, and is located after the highest allocation priority value.
[0167] The second high scheduling priority value is the next current scheduling priority value whose specific value is further determined based on the result of allocating the task to the processing object corresponding to the highest scheduling priority value and is located after the highest scheduling priority value.
[0168] In this embodiment, after the task corresponding to the highest allocation priority value is allocated to the processing object corresponding to the highest scheduling priority value, the next task is allocated.
[0169] Specifically, according to the calculation results of the allocation priority values corresponding to each task, the next current allocation priority value located after the highest allocation priority value and having a value only less than the highest allocation priority value is determined, and the current allocation priority value is determined as the second highest matching priority value. At the same time, according to the calculation results of the current scheduling priority values corresponding to each processing object, the second high scheduling priority value is determined. The specific determination method is similar to the determination of the first high scheduling priority value according to the calculation results of the current scheduling priority values corresponding to each processing object in step a1, and will not be repeated here.
[0170] Step b2: Calculate the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second highest scheduling priority value.
[0171] In this embodiment, after determining the second highest matching priority value and the second highest scheduling priority value, the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second high scheduling priority value is calculated. The specific calculation method is similar to the method of calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value in S203 and S501-S504, and will not be repeated here.
[0172] Step b3: In response to determining that the target matching score is greater than the preset matching threshold, the task corresponding to the second highest allocation priority value is allocated to the processing object corresponding to the second highest scheduling priority value.
[0173] In this embodiment, based on the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second highest scheduling priority value, it is determined whether the target matching score is greater than the preset matching threshold. If so, the task corresponding to the second highest allocation priority value is assigned to the processing object corresponding to the second high scheduling priority value. The specific execution method is similar to S204 and will not be repeated here.
[0174] Step b4: In response to determining that the target matching score is less than or equal to the preset matching threshold, execute the steps of determining the latest second high scheduling priority value to calculating the target matching score, until it is determined that the target matching score is greater than the preset matching threshold, and assign the task corresponding to the second highest allocation priority value to the processing object corresponding to the latest second high scheduling priority value.
[0175] In this embodiment, based on whether the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second high scheduling priority value is greater than the preset matching threshold, if not, the steps of determining the latest second high scheduling priority value to calculating the target matching score are executed until it is determined that the target matching score is greater than the preset matching threshold, and the task corresponding to the second highest allocation priority value is assigned to the processing object corresponding to the latest second high scheduling priority value. The specific execution method is similar to steps b1 to a2, and will not be repeated here one by one.
[0176] The task allocation method provided in this embodiment determines the second highest matching priority value according to the calculation result of the current allocation priority value corresponding to each task, and determines the second high scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object, after allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value; calculates the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second high scheduling priority value; in response to determining that the target matching score is greater than a preset matching threshold, allocates the task corresponding to the second highest allocation priority value to the processing object corresponding to the second high scheduling priority value; in response to determining that the target matching score is less than or equal to the preset matching threshold, executes the steps of determining the latest second high scheduling priority value to calculating the target matching score, until it is determined that the target matching score is greater than the preset matching threshold, and allocates the task corresponding to the second highest allocation priority value to the processing object corresponding to the latest second high scheduling priority value. Since other tasks need to be assigned, the target matching score between the task corresponding to the second highest matching priority value and the processing object corresponding to the second high scheduling priority value can be calculated by determining the second highest matching priority value and the second high scheduling priority value. When it is determined that the target matching score is greater than the preset matching threshold, the task corresponding to the second highest matching priority value can be assigned to the processing object corresponding to the second high scheduling priority value. When it is determined that the target matching score is less than or equal to the preset matching threshold, the steps of determining the latest second high scheduling priority value to calculating the target matching score are executed in a loop until it is determined that the target matching score is greater than the preset matching threshold. The task corresponding to the second highest matching priority value is assigned to the processing object corresponding to the latest second high scheduling priority value. In this way, each task is assigned to the processing object that best matches it in turn according to its urgency, thereby further improving the accuracy of task processing and further improving the user experience.
[0177] As an optional embodiment, based on any of the above embodiments, this embodiment further includes the following steps before obtaining the allocation data corresponding to at least one task:
[0178] Step c1: receiving a task assignment instruction sent by at least one user terminal. The task assignment instruction includes specific task information.
[0179] The task allocation instruction is an instruction for assigning a task, and specifically includes specific task information.
[0180] It can be understood that a prerequisite for the execution of this solution is that the allocation data corresponding to each task has been stored in the preset task queue.
[0181] Based on this, at least one user can trigger the task assignment component based on a specific operation on the Internet product through a corresponding user terminal. Then, in response to the above component being triggered, the corresponding user terminal generates specific task information based on the user's specific operation, stores the specific task information as a task assignment instruction, and then sends the task assignment instruction to the electronic device.
[0182] Based on this, a task allocation instruction sent by at least one user terminal is received.
[0183] Step c2: generating allocation data corresponding to each task based on each specific task information, and storing the allocation data corresponding to each task in a preset task queue in a receiving order.
[0184] The receiving order is the order of receiving the task allocation instructions sent by at least one user terminal.
[0185] In this embodiment, in response to receiving at least one task assignment instruction, at least one specific task information is obtained in the instruction, and based on the result of obtaining each specific task information, a task identifier, task status information, initial assignment priority value and task detail information corresponding to each task are generated, thereby generating assignment data corresponding to each task. The specific generation method is similar to the generation method described in S201 and will not be repeated here.
[0186] Based on this, the allocation data corresponding to each task is stored in a preset task queue in the order of receipt.
[0187] The task assignment method provided in this embodiment receives a task assignment instruction sent by at least one user terminal before obtaining the assignment data corresponding to at least one task; the task assignment instruction includes specific task information; the assignment data corresponding to each task is generated based on each specific task information, and the assignment data corresponding to each task is stored in a preset task queue in the order of receiving. Since one of the prerequisites for the execution of this scheme is that the assignment data corresponding to each task has been stored, by receiving the task assignment instruction including the specific task information sent by at least one user terminal, the assignment data corresponding to each task can be generated based on each specific task information, and the assignment data corresponding to each task can be stored in the preset task queue in the order of receiving, so that the assignment data corresponding to each task can be successfully obtained later, further improving the success rate of task assignment.
[0188] As an optional embodiment, based on any of the above embodiments, this embodiment further includes the following steps before obtaining the allocation data corresponding to at least one task:
[0189] Step d1: receiving a task assignment instruction sent by at least one user terminal. The task assignment instruction includes specific task information and task expediting information.
[0190] In this embodiment, the task allocation instruction also includes task expediting information, which is information indicating that the task needs to be expedited.
[0191] Based on this, at least one user can trigger the task expediting component and the task assignment component based on specific operations on the Internet product through the corresponding user terminal. Then, in response to the above components being triggered, the corresponding user terminal generates specific task information based on the user's specific operations, generates task expediting information based on the expediting requirements, stores the specific task information and task expediting information as task assignment instructions, and then sends the task assignment instructions to the electronic device.
[0192] Based on this, a task allocation instruction sent by at least one user terminal is received.
[0193] Step d2: Generate allocation data corresponding to each task based on each specific task information and task expediting information, and store the allocation data corresponding to each task in a preset task queue according to the generation result and the receiving order.
[0194] In this embodiment, in response to receiving at least one task assignment instruction, corresponding specific task information and corresponding task expediting information are obtained in each task assignment instruction, and based on the result of obtaining the expediting information of each task, a preset adjustment value is obtained. The preset adjustment value is a pre-configured value for the current urgency of the task with expediting requirements.
[0195] Based on this, based on the results of obtaining each specific task information, the task identifier, task status information, initial allocation priority value and task details information corresponding to each task are generated. The specific generation method is similar to the generation method described in S201, and will not be repeated here.
[0196] It should be noted that when generating the initial allocation priority values, it is necessary to add the preset adjustment values to the default values based on the expedited requirements of the tasks to obtain the initial allocation priority values.
[0197] Further, according to the size of each initial allocation priority value in the generated result, the allocation data corresponding to each task is stored in the preset task queue in descending order. Then, for the tasks with the same initial allocation priority value determined at this time, they are stored in the order of receipt.
[0198] The task assignment method provided in this embodiment receives a task assignment instruction sent by at least one user terminal; the task assignment instruction includes specific task information and task expediting information; the assignment data corresponding to each task is generated based on each specific task information and task expediting information, and the assignment data corresponding to each task is stored in a preset task queue according to the generation result and the receiving order. Since the user may have an expedited demand, by receiving a task assignment instruction including specific task information and task expediting information, the assignment data corresponding to each task can be generated based on each specific task information and task expediting information, and the assignment data corresponding to each task can be stored in a preset task queue according to the generation result and the receiving order, so that the assignment data corresponding to each task can be arranged in order based on the expedited demand, thereby improving the efficiency of determining the current assignment priority value in the subsequent process, and enabling the assignment data corresponding to each task to be obtained smoothly in the subsequent process, further improving the success rate of task assignment.
[0199] As an optional embodiment, this embodiment, based on any of the above embodiments, further includes the following steps:
[0200] Step e1: in response to determining that at least one processing target terminal is in an offline state and the corresponding number of tasks to be processed is not zero, obtaining allocation data corresponding to the tasks to be processed.
[0201] The offline state refers to a state where the processing object terminal is closed or the processing system is not entered.
[0202] In this embodiment, in response to determining that at least one processing object terminal is offline and the corresponding number of pending tasks is not zero, it means that the processing object is offline before completing the assigned tasks and needs to further assign its remaining pending tasks. Based on this, the assignment data corresponding to the pending tasks is obtained.
[0203] Step e2: Obtain the corresponding current allocation priority value in the allocation data corresponding to the task to be processed, and obtain the second adjustment value.
[0204] The second adjustment value is pre-configured and is used to adjust the urgency of the left-behind task.
[0205] In this embodiment, after the allocation data corresponding to the task to be processed is obtained, the corresponding current allocation priority value is obtained from the allocation data corresponding to the task to be processed, and the second adjustment value is obtained.
[0206] Step e3: Determine the sum of the second adjustment value and the current allocation priority value as the latest current allocation priority value corresponding to each task, and allocate the tasks to be processed based on the latest current allocation priority value.
[0207] The latest current allocation priority value is the latest determined current allocation priority value.
[0208] In this embodiment, after obtaining the current allocation priority value and the second adjustment value corresponding to the task to be processed, the second adjustment value is added to the current allocation priority value, and the sum is determined as the latest current allocation priority value corresponding to each task, and the tasks to be processed are allocated based on the latest current allocation priority value. The specific allocation method is similar to S201-S204 and will not be repeated here.
[0209] The task allocation method provided in this embodiment, in response to determining that there is at least one processing object terminal in an offline state and the corresponding number of pending tasks is not zero, obtains the allocation data corresponding to the pending tasks; obtains the corresponding current allocation priority value in the allocation data corresponding to the pending tasks, and obtains the second adjustment value; determines the sum of the second adjustment value and the current allocation priority value as the latest current allocation priority value corresponding to each task, and allocates the pending tasks based on the latest current allocation priority value. Since the processor may go offline before completing the task, when it is determined that this situation occurs, by obtaining the allocation data corresponding to the pending tasks, the corresponding current allocation priority value can be obtained therein, and by obtaining the second adjustment value, the sum of the second adjustment value and the current allocation priority value can be determined as the latest current allocation priority value corresponding to each task, thereby allocating the pending tasks based on the latest current allocation priority value, thereby avoiding the inability to process the remaining tasks and further improving the user experience.
[0210] As an optional embodiment, this embodiment, based on any of the above embodiments, further includes the following steps:
[0211] Step f1: in response to determining that the current time meets the requirement of the preset review period, obtaining a preset number of processed task details information and corresponding processing object information.
[0212] Among them, the preset review cycle is a pre-set review time period, that is, how often the review is performed. For example, if the preset review cycle is 3 days, then the review is performed every 3 days.
[0213] It should be understood that the above examples are merely illustrative and should not constitute any limitation to the present application.
[0214] The preset number is the number of tasks that are preset. The processed task details information is the task details information corresponding to the processed tasks, and the processed tasks are tasks that have been processed by the processing object.
[0215] In this embodiment, the current time is first obtained based on the positioning component, and the pre-configured preset review cycle is obtained. Then the difference between the current time and the last review time is calculated, and it is determined whether the difference is equal to the preset review cycle. If so, it is determined that the current time meets the requirements of the preset review cycle, and the processed tasks need to be reviewed. Based on this, a preset number of processed tasks are extracted from all processed tasks, and the task details information corresponding to these processed tasks, that is, the processed task details information, is obtained, and the processing object information responsible for processing these tasks is obtained.
[0216] Step f2: Send the detailed information of each processed task and the corresponding processing object information to the review object terminal, and receive the review result of the processing object corresponding to the processed task sent by the review object terminal.
[0217] The review object terminal is the terminal where the object responsible for reviewing the processed tasks is located.
[0218] In this embodiment, after obtaining a preset number of processed task detail information and corresponding processing object information, each processed task detail information and corresponding processing object information are sent to the review object terminal, and the review object reviews each processed task detail information based on the corresponding terminal, and sends the review results corresponding to the processing objects involved to the electronic device.
[0219] Based on this, the review result of the processed task corresponding to the processing object sent by the review object terminal is received.
[0220] It can be understood that after obtaining the review results of the processing objects corresponding to the processed tasks, the review accuracy corresponding to the processing objects involved can be determined based on each review result, and the review accuracy can be applied in the calculation process of the current scheduling priority value and the training process of the preset matching model.
[0221] The task allocation method provided in this embodiment, in response to determining that the current time meets the requirements of the preset review cycle, obtains a preset number of processed task details information and corresponding processing object information; sends each processed task details information and corresponding processing object information to the review object terminal, and receives the review result of the processed task corresponding to the processing object sent by the review object terminal. Since the preset review cycle is pre-configured, when it is determined that the current time meets the requirements of the preset review cycle, by obtaining a preset number of processed task details information and corresponding processing object information, each processed task details information and corresponding processing object information can be sent to the review object terminal, thereby receiving the review result of the processed task corresponding to the processing object sent by the review object terminal, thereby smoothly determining the review accuracy corresponding to the processing object involved, and applying it in the determination of the scheduling priority value and the training of the matching model, improving the accuracy of task matching, and thus further improving the accuracy of task processing.
[0222] As an optional embodiment, based on any of the above embodiments, the allocation data of this embodiment further includes: a task identifier and task status information; the task identifier is a unique identifier automatically generated by the system and used to represent the identity of the task; the task status information is status information used to represent the successful submission of the task. By marking the task with a unique task identifier and generating task status information representing the task status, it is ensured that the task can be successfully identified, further improving the success rate of task allocation.
[0223] Figure 6 A complete flowchart of the task allocation method provided in the embodiment of the present application;
[0224] S601: Receive a task allocation instruction sent by at least one user terminal.
[0225] The task assignment instruction includes specific task information.
[0226] S602: Generate allocation data corresponding to each task based on each specific task information, and store the allocation data corresponding to each task in a preset task queue in a receiving order.
[0227] or,
[0228] S603: Receive a task allocation instruction sent by at least one user terminal.
[0229] The task assignment instruction includes specific task information and task expediting information.
[0230] S604: Generate allocation data corresponding to each task based on each specific task information and task expediting information, and store the allocation data corresponding to each task in a preset task queue according to the generation result and the receiving order.
[0231] S605: Obtain allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object.
[0232] The allocation data includes an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero. The scheduling data includes the number of recently processed tasks, the number of pending tasks, and the review accuracy rate.
[0233] Specifically, allocation data corresponding to at least one task is obtained in a preset task queue, and scheduling data corresponding to at least one processing object is obtained through a communication connection with at least one processing object terminal.
[0234] S606: Calculate the current allocation priority value corresponding to each task according to the corresponding initial allocation priority value and the preset waiting threshold.
[0235] Specifically, the difference between the current time and the time when the allocation data corresponding to each task is in the preset task queue is determined. In response to the existence of a difference value corresponding to at least one task being greater than a preset waiting threshold, the sum of the initial allocation priority value and the first adjustment value corresponding to each task whose difference value is greater than the preset waiting threshold is calculated respectively, and the corresponding sum value is determined as the corresponding current allocation priority value. In response to the existence of a difference value corresponding to at least one task being less than or equal to the preset waiting threshold, the initial allocation priority value corresponding to each task whose difference value is less than or equal to the preset waiting threshold is determined as the corresponding current allocation priority value.
[0236] S607: Calculate the current scheduling priority value corresponding to each processing object according to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy.
[0237] Specifically, the preset weight values corresponding to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy are obtained. The weighted sum of the number of recently processed tasks and the review accuracy is calculated, and it is determined whether the number of tasks to be processed is zero. If not, the weighted ratio of the weighted sum value to the number of tasks to be processed is calculated, and the weighted ratio is determined as the current scheduling priority value corresponding to each processing object. If so, the weighted sum value is determined as the current scheduling priority value corresponding to each processing object.
[0238] S608. Determine the highest allocation priority value and the highest scheduling priority value according to the calculation result.
[0239] S609: Calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value.
[0240] The allocation data also includes: task details information.
[0241] Specifically, obtain a preset matching model, task details information corresponding to the highest allocation priority value, and processing object information corresponding to the highest scheduling priority value. The preset matching model is trained using historical processing object associated task data marked with preset matching values, and the historical processing object associated task data includes: historical processing object information and historical task details information corresponding to the historical processing object, or historical processing object information, historical task details information corresponding to the historical processing object, and the review accuracy of the historical processing object. Input the task details information corresponding to the highest allocation priority value and the processing object information corresponding to the highest scheduling priority value into the preset matching model. Output the target matching value based on the preset matching model, and obtain the preset matching weight value. Calculate the target matching score based on the preset matching weight value and the target matching value.
[0242] S610: Determine whether the target matching score is greater than a preset matching threshold. If so, execute S611-S616; if not, execute S617-S620.
[0243] S611. Allocate the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value.
[0244] Specifically, the task detail information corresponding to the highest allocation priority value is sent to the processing object terminal corresponding to the highest scheduling priority value through a communication connection with at least one processing object terminal.
[0245] S612: Determine the next highest matching priority value according to the calculation result of the current allocation priority value corresponding to each task.
[0246] S613: Determine a second high scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object.
[0247] S614. Calculate the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second highest scheduling priority value.
[0248] S615: Determine whether the target matching score is greater than the preset matching threshold. If so, execute S616; if not, execute S613-S615 in a loop until it is determined that the target matching score is greater than the preset matching threshold.
[0249] S616. Allocate the task corresponding to the second highest allocation priority value to the processing object corresponding to the second highest scheduling priority value.
[0250] S617: Determine a first high scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object.
[0251] S618. Calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value.
[0252] S619: Determine whether the target matching score is greater than the preset matching threshold. If so, execute S620. If not, execute S617-S619 in a loop until it is determined that the target matching score is greater than the preset matching threshold.
[0253] S620: Allocate the task corresponding to the highest allocation priority value to the processing object corresponding to the first high scheduling priority value.
[0254] S621: In response to determining that at least one processing target terminal is in an offline state and the corresponding number of tasks to be processed is not zero, obtain allocation data corresponding to the tasks to be processed.
[0255] S622. Obtain the corresponding current allocation priority value in the allocation data corresponding to the task to be processed, and obtain the second adjustment value.
[0256] S623: Determine the sum of the second adjustment value and the current allocation priority value as the latest current allocation priority value corresponding to each task.
[0257] S624. Allocate the tasks to be processed based on the latest current allocation priority value.
[0258] S625: In response to determining that the current time meets the requirement of the preset review period, obtain a preset number of processed task details and corresponding processing object information.
[0259] S626: Send the detailed information of each processed task and the corresponding processing object information to the review object terminal.
[0260] S627: Receive the review result of the processed task corresponding to the processing object sent by the review object terminal.
[0261] The allocation data also includes: task identification and task status information.
[0262] The task ID is automatically generated by the system and is used to uniquely identify the task. The task status information is used to indicate whether the task has been successfully submitted.
[0263] Figure 7 A schematic diagram of the structure of the task allocation device provided in the embodiment of the present application is shown in FIG. Figure 7 As shown, the execution subject of the present application is a task allocation device, which is specifically located in an electronic device. The task allocation device 70 provided in this embodiment includes: an acquisition module 71, a calculation module 72, a determination module 73, and an allocation module 74.
[0264] Among them, the acquisition module 71 is used to obtain the allocation data corresponding to at least one task and the scheduling data corresponding to at least one processing object; the allocation data includes an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero; the scheduling data includes the number of recently processed tasks, the number of tasks to be processed and the review accuracy rate; the calculation module 72 is used to calculate the current allocation priority value corresponding to each task according to the corresponding initial allocation priority value and the preset waiting threshold value, and calculate the current scheduling priority value corresponding to each processing object according to the corresponding number of recently processed tasks, the number of tasks to be processed and the review accuracy rate; the determination module 73 is used to determine the highest allocation priority value and the highest scheduling priority value according to the calculation results; the calculation module 72 is also used to calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value; the allocation module 74 is used to allocate the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value in response to determining that the target matching score is greater than the preset matching threshold.
[0265] Optionally, the calculation module 72, when calculating the current allocation priority value corresponding to each task according to the corresponding initial allocation priority value and the preset waiting threshold, is specifically used to:
[0266] Determine the difference between the current time and the time when the allocation data corresponding to each task is in the preset task queue; in response to the existence of at least one task corresponding to a difference value greater than a preset waiting threshold, respectively calculate the sum of the initial allocation priority value and the first adjustment value corresponding to each task whose difference value is greater than the preset waiting threshold, and determine the corresponding sum value as the corresponding current allocation priority value; in response to the existence of at least one task corresponding to a difference value less than or equal to the preset waiting threshold, determine the initial allocation priority value corresponding to each task whose difference value is less than or equal to the preset waiting threshold as the corresponding current allocation priority value.
[0267] Optionally, the calculation module 72, when calculating the current scheduling priority value corresponding to each processing object according to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy, is specifically used to:
[0268] Obtain the preset weight values corresponding to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate; calculate the weighted sum of the number of recently processed tasks and the review accuracy rate, and determine whether the number of tasks to be processed is zero; if not, calculate the weighted ratio of the weighted sum value to the number of tasks to be processed, and determine the weighted ratio as the current scheduling priority value corresponding to each processing object; if so, determine the weighted sum value as the current scheduling priority value corresponding to each processing object.
[0269] Optionally, the allocation data also includes: task details information;
[0270] Accordingly, the calculation module 72, when calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, is specifically used to:
[0271] Obtain a preset matching model, task detail information corresponding to the highest allocation priority value, and processing object information corresponding to the highest scheduling priority value; the preset matching model is trained using historical processing object associated task data marked with corresponding preset matching values, and the historical processing object associated task data includes: historical processing object information and historical task detail information corresponding to the historical processing object, or historical processing object information, historical task detail information corresponding to the historical processing object, and the review accuracy of the historical processing object; input the task detail information corresponding to the highest allocation priority value and the processing object information corresponding to the highest scheduling priority value into the preset matching model; output the target matching value based on the preset matching model, and obtain the preset matching weight value; calculate the target matching score according to the preset matching weight value and the target matching value.
[0272] Optionally, when acquiring the allocation data corresponding to at least one task and the scheduling data corresponding to at least one processing object, the acquisition module 71 is specifically configured to:
[0273] The allocation data corresponding to at least one task is obtained in a preset task queue, and the scheduling data corresponding to at least one processing object is obtained through a communication connection with at least one processing object terminal.
[0274] Optionally, the calculation module 72, when allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value, is specifically configured to:
[0275] The task detail information corresponding to the highest allocation priority value is sent to the processing object terminal corresponding to the highest scheduling priority value through a communication connection with at least one processing object terminal.
[0276] Optionally, the task allocation device provided in this embodiment further includes: an execution module.
[0277] Among them, the determination module 73 is also used to determine the first high scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object in response to determining that the target matching score is less than or equal to the preset matching threshold after the calculation module 72 calculates the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value; the calculation module 72 is also used to calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value; the allocation module 74 is also used to allocate the task corresponding to the highest allocation priority value to the processing object corresponding to the first high scheduling priority value in response to determining that the target matching score is greater than the preset matching threshold; the execution module is used to, in response to determining that the target matching score is less than or equal to the preset matching threshold, execute the steps of determining the latest first high scheduling priority value to calculating the target matching score, until it is determined that the target matching score is greater than the preset matching threshold, and allocate the task corresponding to the highest allocation priority value to the processing object corresponding to the latest first high scheduling priority value.
[0278] Optionally, the determination module 73 is also used to determine the second highest matching priority value according to the calculation result of the current allocation priority value corresponding to each task, and determine the second high scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object after the allocation module 74 allocates the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value; the calculation module 72 is also used to calculate the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second high scheduling priority value; the allocation module 74 is also used to allocate the task corresponding to the second highest allocation priority value to the processing object corresponding to the second high scheduling priority value in response to determining that the target matching score is greater than a preset matching threshold; the execution module is also used to execute the steps of determining the latest second high scheduling priority value to calculating the target matching score in response to determining that the target matching score is less than or equal to the preset matching threshold, until it is determined that the target matching score is greater than the preset matching threshold, and the allocation module 74 is also used to allocate the task corresponding to the second highest allocation priority value to the processing object corresponding to the latest second high scheduling priority value.
[0279] Optionally, the task allocation device provided in this embodiment further includes: a receiving module, a generating module, and a storage module.
[0280] Among them, the receiving module is used to receive the task assignment instruction sent by at least one user terminal before the acquisition module 71 acquires the assignment data corresponding to at least one task; the task assignment instruction includes specific task information; the generating module is used to generate the assignment data corresponding to each task based on each specific task information, and the storage module is used to store the assignment data corresponding to each task in a preset task queue in the order of reception.
[0281] Optionally, the receiving module is further used to receive a task assignment instruction sent by at least one user terminal before the acquisition module 71 acquires the assignment data corresponding to at least one task; the task assignment instruction includes specific task information and task expediting information; the generating module is further used to generate the assignment data corresponding to each task based on each specific task information and task expediting information, and the storing module is further used to store the assignment data corresponding to each task in a preset task queue according to the generation result and the receiving order.
[0282] Optionally, the acquisition module 71 is also used to obtain the allocation data corresponding to the pending tasks in response to determining that there is at least one processing object terminal in an offline state and the corresponding number of pending tasks is not zero; obtain the corresponding current allocation priority value in the allocation data corresponding to the pending tasks, and obtain the second adjustment value; the determination module 73 is also used to determine the sum of the second adjustment value and the current allocation priority value as the latest current allocation priority value corresponding to each task, and the allocation module 74 is also used to allocate the pending tasks based on the latest current allocation priority value.
[0283] Optionally, the task allocation device provided in this embodiment further includes: a sending module.
[0284] Among them, the acquisition module 71 is also used to obtain a preset number of processed task details information and corresponding processing object information in response to determining that the current time meets the requirements of the preset review cycle; the sending module is used to send each processed task details information and the corresponding processing object information to the review object terminal, and receive the review results of the processed task corresponding to the processing object sent by the review object terminal.
[0285] Optionally, the allocation data also includes: a task identifier and task status information; the task identifier is a unique identifier automatically generated by the system and used to represent the identity of the task; the task status information is status information used to represent the successful submission of the task.
[0286] The task allocation device provided in the embodiment of the present application can be used to execute the technical solution of the task allocation method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0287] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the allocation module 74 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above allocation module 74. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0288] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device 80 may include: a processor 81 and a memory 82 .
[0289] The processor 81 executes the computer execution instructions stored in the memory, so that the processor 81 executes the scheme in the above embodiment. The processor 81 can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0290] The memory 82 is connected to the processor 81 via a system bus and completes communication between them. The memory 82 is used to store computer program instructions.
[0291] It can be used to execute the above task allocation method and obtain the relevant configuration information required when executing task allocation.
[0292] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.
[0293] The electronic device provided in the embodiment of the present application may further include a transceiver, which can be used to send and receive data.
[0294] The electronic device provided in the embodiment of the present application may also be the terminal device of the above embodiment.
[0295] An embodiment of the present application also provides a chip for executing instructions, which is used to execute the technical solution of the task allocation method in the above embodiment.
[0296] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the task allocation method of the above embodiment.
[0297] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, the technical solution of the task allocation method in the above embodiment can be implemented.
[0298] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules 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 an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0299] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to implement the solution of this embodiment.
[0300] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0301] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.
[0302] It should be understood that the above processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0303] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0304] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.
[0305] The above 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 read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0306] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic control unit or a main control device.
[0307] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0308] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A task allocation method, characterized in that: include: Acquire allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object; the allocation data includes an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero; The scheduling data includes the number of recently processed tasks, the number of pending tasks, and the review accuracy rate; The current allocation priority value corresponding to each task is calculated according to the corresponding initial allocation priority value and the preset waiting threshold, and the current scheduling priority value corresponding to each processing object is calculated according to the corresponding number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate; Determine the highest allocation priority value and the highest scheduling priority value according to the calculation result, and calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value; In response to determining that the target matching score is greater than a preset matching threshold, the task corresponding to the highest allocation priority value is allocated to the processing object corresponding to the highest scheduling priority value.
2. The method according to claim 1, characterized in that The calculating the current allocation priority value corresponding to each task according to the corresponding initial allocation priority value and the preset waiting threshold value includes: Determine the difference between the current time and the time of the assigned data corresponding to each task in the preset task queue; In response to the existence of a difference value corresponding to at least one task being greater than a preset waiting threshold, respectively calculating the sum of the initial allocation priority value and the first adjustment value corresponding to each task whose difference value is greater than the preset waiting threshold, and determining the corresponding sum value as the corresponding current allocation priority value; In response to at least one task corresponding to a difference value less than or equal to a preset waiting threshold, the initial allocation priority values corresponding to the tasks having differences less than or equal to the preset waiting threshold are determined as corresponding current allocation priority values.
3. The method according to claim 1, characterized in that The current scheduling priority value corresponding to each processing object is calculated according to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy, including: Obtaining preset weight values corresponding to the number of recently processed tasks, the number of tasks to be processed, and the review accuracy rate; Calculate the weighted sum of the number of recently processed tasks and the review accuracy, and determine whether the number of tasks to be processed is zero; If not, then calculating a weighted ratio of the weighted sum value to the number of tasks to be processed, and determining the weighted ratio as a current scheduling priority value corresponding to each processing object; If so, the weighted sum value is determined as the current scheduling priority value corresponding to each processing object.
4. The method according to claim 1, characterized in that: The allocation data also includes: task details information; The calculating of the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value includes: Obtaining a preset matching model, task details information corresponding to the highest allocation priority value, and processing object information corresponding to the highest scheduling priority value; the preset matching model is trained using historical processing object associated task data marked with corresponding preset matching values, and the historical processing object associated task data includes: historical processing object information and historical task details information corresponding to the historical processing object, or historical processing object information, historical task details information corresponding to the historical processing object, and the review accuracy rate of the historical processing object; Inputting the task details information corresponding to the highest allocation priority value and the processing object information corresponding to the highest scheduling priority value into the preset matching model; Outputting a target matching value based on the preset matching model and obtaining a preset matching weight value; A target matching score is calculated according to the preset matching weight value and the target matching value.
5. The method according to claim 1, characterized in that The obtaining of allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object includes: The allocation data corresponding to at least one task is obtained in a preset task queue, and the scheduling data corresponding to at least one processing object is obtained through a communication connection with at least one processing object terminal.
6. The method according to claim 1, characterized in that The allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value comprises: The task detail information corresponding to the highest allocation priority value is sent to the processing object terminal corresponding to the highest scheduling priority value through a communication connection with at least one processing object terminal.
7. The method according to claim 4, characterized in that After calculating the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value, the method further includes: In response to determining that the target matching score is less than or equal to a preset matching threshold, determining a first high scheduling priority value according to a calculation result of a current scheduling priority value corresponding to each processing object; Calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the first high scheduling priority value; In response to determining that the target matching score is greater than a preset matching threshold, assigning the task corresponding to the highest allocation priority value to the processing object corresponding to the first high scheduling priority value; In response to determining that the target matching score is less than or equal to a preset matching threshold, the steps of determining the latest first high scheduling priority value to calculating the target matching score are executed until it is determined that the target matching score is greater than the preset matching threshold, and the task corresponding to the highest allocation priority value is allocated to the processing object corresponding to the latest first high scheduling priority value.
8. The method according to claim 1, characterized in that After allocating the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value, the method further includes: Determine the second highest matching priority value according to the calculation result of the current allocation priority value corresponding to each task, and determine the second highest scheduling priority value according to the calculation result of the current scheduling priority value corresponding to each processing object; Calculate the target matching score between the task corresponding to the second highest allocation priority value and the processing object corresponding to the second highest scheduling priority value; In response to determining that the target matching score is greater than a preset matching threshold, assigning the task corresponding to the second highest allocation priority value to the processing object corresponding to the second highest scheduling priority value; In response to determining that the target matching score is less than or equal to a preset matching threshold, the steps of determining the latest second high scheduling priority value to calculating the target matching score are executed until it is determined that the target matching score is greater than the preset matching threshold, and the task corresponding to the second highest allocation priority value is assigned to the processing object corresponding to the latest second high scheduling priority value.
9. The method according to any one of claims 1 to 8, characterized in that: Before obtaining the allocation data corresponding to at least one task, the method further includes: Receiving a task assignment instruction sent by at least one user terminal; the task assignment instruction includes specific task information; The allocation data corresponding to each task is generated based on each specific task information, and the allocation data corresponding to each task is stored in a preset task queue according to the receiving order.
10. The method according to any one of claims 1 to 8, characterized in that: Before obtaining the allocation data corresponding to at least one task, the method further includes: Receiving a task assignment instruction sent by at least one user terminal; the task assignment instruction includes specific task information and task expediting information; Based on each specific task information and task expediting information, the allocation data corresponding to each task is generated, and the allocation data corresponding to each task is stored in a preset task queue according to the generation result and the receiving order.
11. The method according to any one of claims 1 to 8, characterized in that: Also includes: In response to determining that at least one processing target terminal is in an offline state and the corresponding number of tasks to be processed is not zero, obtaining allocation data corresponding to the tasks to be processed; Obtaining a corresponding current allocation priority value from the allocation data corresponding to the task to be processed, and obtaining a second adjustment value; The sum of the second adjustment value and the current allocation priority value is determined as the latest current allocation priority value corresponding to each task, and the tasks to be processed are allocated based on the latest current allocation priority value.
12. The method according to any one of claims 1 to 8, characterized in that: Also includes: In response to determining that the current time meets the requirement of the preset review period, obtaining a preset number of processed task details and corresponding processing object information; The detailed information of each processed task and the corresponding processing object information are sent to the review object terminal, and the review result of the processing object corresponding to the processed task sent by the review object terminal is received.
13. The method according to any one of claims 1 to 8, characterized in that: The allocation data also includes: task identification and task status information; The task identifier is automatically generated by the system and is a unique identifier used to represent the identity of the task; the task status information is status information used to represent the successful submission of the task.
14. A task allocation device, characterized in that: include: An acquisition module, used to acquire allocation data corresponding to at least one task and scheduling data corresponding to at least one processing object; the allocation data includes an initial allocation priority value and a preset waiting threshold, and the initial allocation priority value is not zero; The scheduling data includes the number of recently processed tasks, the number of pending tasks, and the review accuracy rate; A calculation module is used to calculate the current allocation priority value corresponding to each task according to the corresponding initial allocation priority value and the preset waiting threshold, and calculate the current scheduling priority value corresponding to each processing object according to the corresponding number of recently processed tasks, the number of tasks to be processed and the review accuracy; A determination module, used for determining a highest allocation priority value and a highest scheduling priority value according to the calculation result; The calculation module is further used to calculate the target matching score between the task corresponding to the highest allocation priority value and the processing object corresponding to the highest scheduling priority value; The allocation module is used to allocate the task corresponding to the highest allocation priority value to the processing object corresponding to the highest scheduling priority value in response to determining that the target matching score is greater than a preset matching threshold.
15. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 13.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 13 when executed by a processor.
17. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 13 when being executed by a processor.
