An automatic execution system for instant messaging tasks

Through the cooperation of the data acquisition module, time wheel module and calling module, the overload status of the executor group and task output changes are detected, and task execution objects are adjusted, which solves the problem of overload and computing power waste caused by periodic task release, and improves execution task execution efficiency and system reliability of the server cluster.

CN116647530BActive Publication Date: 2024-09-10深圳花儿绽放网络科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310659867.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-09-10
Estimated Expiration
2043-06-06

AI Technical Summary

Technical Problem

In the existing instant messaging task system, the periodicity of task release may cause the executor to be overloaded and waste computing power, affecting execution efficiency.

Method used

The data acquisition module, time wheel module and calling module are used to manage task release through the time wheel, detect the overload status of the executor group and changes in the number of task outputs, adjust task execution objects, and reduce overload and waste of computing power.

Benefits of technology

It improves the task execution efficiency of the executor group, enhances the reliability of the system and the accuracy of task release.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116647530B
    Figure CN116647530B
Patent Text Reader

Abstract

The present invention relates to the field of task execution control, and in particular to an automatic execution system for instant messaging message tasks. The present invention sets a data acquisition module, a time wheel module, a processing module and a calling module, manages the time wheel through the time wheel module, and publishes the task. At the same time, the calling module manages the executor group in the processing module, determines the overload status of the executor group, and adjusts the task execution object of each executor based on the execution status of each executor group. The present invention reduces the overload and computing power waste of the executor through the coordinated cooperation of various modules, improves the task execution efficiency of the executor group, and improves the reliability of the entire system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of task execution control, and in particular to an automatic execution system for instant messaging tasks. Background Art

[0002] In a computer system, some tasks need to be executed at a scheduled time in the future. In the existing instant messaging task system, after a message is sent to the server, the server needs to first establish a service record, and then the scheduled task will pull the tasks that meet the execution conditions and submit them to the task scheduler for task execution scheduling. Pulling qualified tasks based on the timer can easily lead to problems in task execution due to special reasons, resulting in failure to trigger the scheduled task at a specific time point. In addition, due to the periodicity of task release, the executor may be overloaded and computing power may be wasted. Therefore, the relevant task execution control system came into being.

[0003] For example, Chinese patent publication number: CN108021439A discloses a task polling method, a task arrangement method and a related device, wherein multiple queues for arranging tasks are set in a computer system, and the delay time of the tasks arranged in the queues conforms to the time interval corresponding to the queues. For a queue, only the tasks in the queue are polled, so the number of tasks that need to be polled at one time is obviously less than the traditional method. For the first queue among the multiple queues, the tasks in the first queue are polled according to the polling cycle of the first queue, and the delay time of the polled tasks is calculated. If the delay time of the polled first task is within the time interval corresponding to the second queue, the first task is taken out of the first queue and arranged in the second queue with a smaller polling cycle. When the delay time of the first task is shorter, it can be arranged in the second queue with a shorter polling cycle. By more frequent polling, the possibility of timely execution of the first task when the delay time returns to zero is increased.

[0004] However, there are still the following problems in the prior art:

[0005] In the prior art, it is not considered that task release often has periodicity. Due to system processing requirements, the number of tasks released in the same cycle may be on an upward trend, thereby affecting the operating load of the executor, or on a downward trend, causing a waste of computing power, leading to executor overload and waste of computing power, and low task execution efficiency. Summary of the invention

[0006] To solve the above problems, the present invention provides an automatic execution system for instant messaging message tasks, comprising:

[0007] A data acquisition module, which is used to acquire tasks and assign each of the tasks to a time wheel;

[0008] A time wheel module, which is connected to the data acquisition module and is used to insert the acquired tasks into the time slot, wherein the time slot is a time slot set on the time wheel, the time wheel is pre-set, and there are several time wheels;

[0009] A processing module, comprising a plurality of executor groups, each of which is used to execute tasks of different categories, wherein the tasks are tasks output by each of the timing wheels;

[0010] A calling module, which is connected to the timing wheel module and the processing module, includes a detection unit and an adjustment unit.

[0011] The detection unit is used to obtain the running memory of each of the executors in real time, and divide the execution state of the executor group based on the overload state of the executor group and the change in the output quantity of the same-category tasks of the time wheel in subsequent cycles, wherein the same-category tasks are tasks of the same task type as the task category required to be executed by the executor group;

[0012] The adjustment unit is used to adjust the task execution object of each executor based on the execution status of each executor group, wherein:

[0013] The adjustment unit calls the executor in the executor group in the first execution state to the executor group in the second execution state;

[0014] Or, under a preset condition, the adjustment unit calls the actuators in the actuator group in the third execution state to the actuator group in the second execution state;

[0015] The preset condition is that the number of executors that can be called in the executor group in the first execution state is lower than the required number.

[0016] Furthermore, each of the time wheels distributes tasks based on the flow of time, wherein:

[0017] The time wheel rotates once every preset period to determine whether there is a task stored in the time slot pointed to by the reference scale.

[0018] If there are tasks stored in the time slot, all the tasks in the time slot are distributed.

[0019] Furthermore, the detection unit obtains the output quantity of the same type of tasks in the subsequent several cycles of the time wheel, and calculates the trend parameter.

[0020] The detection unit calculates the trend parameter according to formula (1):

[0021] (1)

[0022] In formula (1), K represents the trend parameter, n represents the number of cycles, N(i+1) represents the number of outputs of the same type of tasks in the i+1th cycle, and N(i) represents the number of outputs of the same type of tasks in the i cycle.

[0023] Furthermore, the detection unit obtains the change in the number of outputs of the same type of tasks of the time wheel in several subsequent cycles, wherein:

[0024] The detection unit compares the absolute value of the trend parameter with a preset trend comparison parameter.

[0025] Under the first comparison condition, the detection unit determines that the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is an increasing change;

[0026] Under the second comparison condition, the detection unit determines that the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is a decreasing change;

[0027] The first comparison condition is that the trend parameter is greater than 0 and the absolute value of the trend parameter is greater than the preset trend comparison parameter, and the second comparison condition is that the trend parameter is less than 0 and the absolute value of the trend parameter is less than or equal to the preset trend comparison parameter.

[0028] Furthermore, the detection unit divides the execution state of the executor group based on the overload state of the executor group and the change in the output quantity of the same type of tasks of the time wheel in subsequent cycles, wherein:

[0029] Under the first condition, the detection unit determines that the actuator group is in the first execution state;

[0030] Under the second condition, the detection unit determines that the actuator group is in the second execution state;

[0031] Under the third condition, the detection unit determines that the actuator group is in a third execution state;

[0032] The first condition is that the executor group is in a non-overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is decreasing; the second condition is that the executor group is in an overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is increasing; the third condition is that the executor group is in an overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is decreasing, or the executor group is in a non-overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is increasing.

[0033] Furthermore, the detection unit is further used to determine the overload state of the actuator group based on the running memory of each actuator in the actuator group, wherein:

[0034] If the running memory of each actuator in the actuator group is greater than a preset running memory threshold, the detection unit determines that the actuator group is in an overload state;

[0035] If the running memory of each actuator in the actuator group is less than or equal to a preset running memory threshold, the detection unit determines that the actuator group is in a non-overload state.

[0036] Furthermore, the adjustment unit is also used to determine the calling priority, wherein:

[0037] If the executor group is in an overload state, and the output quantity of the same type of tasks output by the time wheel in a subsequent number of cycles is a decreasing change, the adjustment unit determines that the executor group is of high priority;

[0038] If the executor group is in a non-overload state, and the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is an increasing change, the adjustment unit determines that the executor group is of low priority.

[0039] Furthermore, the adjustment unit calls the executor in the executor group in the third execution state to the executor group in the second execution state, wherein:

[0040] The adjustment unit preferentially selects executors from a high-priority executor group and calls them to an executor group in a second execution state. If the number of called executors is still lower than the required number, the adjustment unit starts to call executors from a low-priority executor group to the executor group in the second execution state.

[0041] Furthermore, a call ratio threshold is set in the adjustment unit. When the adjustment unit calls executors in any executor group, the ratio of the number of called executors to the number of executors before the call must be lower than a preset ratio threshold.

[0042] Furthermore, a method for determining the required quantity is provided in the adjustment unit, and the required quantity is determined based on the total quantity of actuators in the actuator group in the second state.

[0043] Compared with the prior art, the present invention sets a data acquisition module, a timing wheel module, a processing module and a calling module, manages the timing wheel through the timing wheel module, publishes the task, and at the same time, manages the executor group in the processing module through the calling module, determines the overload status of the executor group, and adjusts the task execution object of each executor based on the execution status of each executor group. The present invention reduces the overload and waste of computing power of the executor through the coordinated cooperation of various modules, improves the task execution efficiency of the executor group, and improves the reliability of the entire system.

[0044] In particular, the present invention releases tasks through a time wheel, which reduces the amount of calculation compared to the traditional task scheduler traversal form and improves the accuracy and reliability of task release.

[0045] In particular, the detection unit of the present invention divides the execution state of the executor group. The first execution state indicates that the current executor group load is low, and the number of tasks of the corresponding category received subsequently is on a downward trend. In actual situations, under the above circumstances, the executor group is prone to waste of computing power subsequently. The second execution state indicates that the current executor group load is high, and the number of tasks of the corresponding category received subsequently is on an upward trend. In this case, the executor group may be overloaded subsequently. Therefore, the present invention calculates trend parameters so that the logic component can automatically and accurately identify the above situation, and then makes adjustments based on the above situation to schedule the executors in the executor group in the first execution state to the executor group in the second execution state. Furthermore, the executors are adjusted and deployed in advance to reduce the subsequent overload and waste of computing power of the executors, thereby improving the task execution efficiency of the executor group and improving the reliability of the entire system.

[0046] In particular, the adjustment unit of the present invention calls the executor in the executor group of the third execution state to the executor group of the second execution state under preset conditions. In actual situations, the third execution state is used as an alternative. The probability of the executor group of the third execution state being overloaded subsequently is higher than that of the executor group of the first execution state. Therefore, the executor group of the third execution state is used as an alternative to be called to the executor group of the second execution state, thereby adjusting and deploying the executor in advance, reducing the subsequent overload and waste of computing power of the executor, improving the task execution efficiency of the executor group, and improving the reliability of the entire system.

[0047] In particular, the adjustment unit of the present invention also determines the priority of calling the executor group in the third execution state. In actual situations, if the executor group is in an overload state, and the output number of the same type of tasks output by the timing wheel in several subsequent cycles is a decreasing change, the probability of subsequent overload is lower than that when the executor group is in a non-overload state, and the output number of the same type of tasks output by the timing wheel in several subsequent cycles is an increasing change, then the adjustment unit determines that the executor group is of low priority, and therefore, preferentially calls the executor group with a high priority, thereby reducing the subsequent overload and waste of computing power of the executor, improving the task execution efficiency of the executor group, and improving the reliability of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A schematic diagram of the structure of an automatic execution system for instant messaging message tasks according to an embodiment of the invention;

[0049] Figure 2 It is a schematic diagram of the calling module structure of an embodiment of the invention. DETAILED DESCRIPTION

[0050] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0051] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.

[0052] It should be noted that, in the description of the present invention, terms such as "up", "down", "left", "right", "inside" and "outside" indicating directions or positional relationships are based on the directions or positional relationships shown in the drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention.

[0053] In addition, it should be noted that in the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0054] See also Figure 1 as well as Figure 2, which are respectively a schematic diagram of the structure of the automatic execution system of the instant messaging message task and a schematic diagram of the structure of the calling module according to an embodiment of the present invention, the automatic execution system of the instant messaging message task of the present invention comprises:

[0055] A data acquisition module, which is used to acquire tasks and assign each of the tasks to a time wheel;

[0056] A time wheel module, which is connected to the data acquisition module and is used to insert the acquired tasks into the time slot, wherein the time slot is a time slot set on the time wheel, the time wheel is pre-set, and there are several time wheels;

[0057] A processing module, comprising a plurality of executor groups, each of which is used to execute tasks of different categories, wherein the tasks are tasks output by each of the timing wheels;

[0058] A calling module, which is connected to the timing wheel module and the processing module, includes a detection unit and an adjustment unit.

[0059] The detection unit is used to obtain the running memory of each of the executors in real time, and divide the execution state of the executor group based on the overload state of the executor group and the change in the output quantity of the same-category tasks of the time wheel in subsequent cycles, wherein the same-category tasks are tasks of the same task type as the task category required to be executed by the executor group;

[0060] The adjustment unit is used to adjust the task execution object of each executor based on the execution status of each executor group, wherein:

[0061] The adjustment unit calls the executor in the executor group in the first execution state to the executor group in the second execution state;

[0062] Or, under a preset condition, the adjustment unit calls the actuators in the actuator group in the third execution state to the actuator group in the second execution state;

[0063] The preset condition is that the number of executors that can be called in the executor group in the first execution state is lower than the required number.

[0064] Specifically, the present invention does not limit the specific structure of the data acquisition module. The data acquisition module can be a data transceiver that establishes a communication protocol with the terminal in advance, and only needs to be able to realize the function of acquiring task information.

[0065] Specifically, the present invention does not limit the specific setting method of the time wheel. The time wheel is a data structure used for time management and task scheduling. It is usually used in systems such as operating system kernels, network routers, and schedulers. The time wheel can be regarded as a circular array, in which each position represents a time period. The size of the time wheel is fixed, and the length of each time period is also fixed. The time wheel stores time periods in ascending order, and each time period has a slot, which can store tasks that need to be executed within the time period. Of course, those skilled in the art can also set the time wheel in other ways. This is a prior art and will not be repeated.

[0066] Specifically, the executor group can be regarded as a server group. The executor can be a server with the function of executing various tasks. It only needs to be able to execute the corresponding tasks. In actual situations, various types of tasks are often required, so it is necessary to set up an executor group to execute the corresponding types of tasks.

[0067] Specifically, the present invention does not limit the specific structure of the calling module. The calling module can be composed of logic components, and the logic components include field programmable components, microprocessors, computers, etc.

[0068] Specifically, each of the time wheels distributes tasks based on the flow of time, wherein:

[0069] The time wheel rotates once every preset period to determine whether there is a task stored in the time slot pointed to by the reference scale. The reference scale can be a pointer, and the above process is executed when it points to the corresponding time slot.

[0070] If there are tasks stored in the time slot, all the tasks in the time slot are distributed.

[0071] Specifically, the detection unit obtains the output quantity of the same type of tasks in the subsequent several cycles of the time wheel, and calculates the trend parameter.

[0072] The detection unit calculates the trend parameter according to formula (1):

[0073] (1)

[0074] In formula (1), K represents the trend parameter, n represents the number of cycles, N(i+1) represents the number of outputs of the same type of tasks in the i+1th cycle, and N(i) represents the number of outputs of the same type of tasks in the i cycle.

[0075] Specifically, the detection unit obtains the change in the number of outputs of the same type of tasks of the time wheel in the subsequent several cycles, where:

[0076] The detection unit compares the absolute value of the trend parameter with a preset trend comparison parameter.

[0077] Under the first comparison condition, the detection unit determines that the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is an increasing change;

[0078] Under the second comparison condition, the detection unit determines that the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is a decreasing change;

[0079] The first comparison condition is that the trend parameter is greater than 0 and the absolute value of the trend parameter is greater than the preset trend comparison parameter, and the second comparison condition is that the trend parameter is less than 0 and the absolute value of the trend parameter is less than or equal to the preset trend comparison parameter.

[0080] In the embodiment, the trend comparison parameter K0 is calculated in advance based on the average value Nm of the task volume output by the time wheel in several cycles. In the present embodiment, K0=α×Nm is set, where α represents a predetermined coefficient. In order to avoid the trend comparison parameter being too large while being able to reflect the trend change, technical personnel in this field may select the predetermined coefficient within a predetermined interval [0, 15%].

[0081] Specifically, the detection unit divides the execution state of the executor group based on the overload state of the executor group and the change in the output quantity of the same type of tasks of the time wheel in subsequent cycles, wherein:

[0082] Under the first condition, the detection unit determines that the actuator group is in the first execution state;

[0083] Under the second condition, the detection unit determines that the actuator group is in the second execution state;

[0084] Under the third condition, the detection unit determines that the actuator group is in a third execution state;

[0085] The first condition is that the executor group is in a non-overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is decreasing; the second condition is that the executor group is in an overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is increasing; the third condition is that the executor group is in an overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is decreasing, or the executor group is in a non-overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is increasing.

[0086] The detection unit of the present invention divides the execution state of the executor group. The first execution state represents that the current executor group load is low, and the number of subsequent received tasks of the corresponding category is on a downward trend. In actual situations, under the above circumstances, the executor group is prone to waste of computing power subsequently. The second execution state represents that the current executor group load is high, and the number of subsequent received tasks of the corresponding category is on an upward trend. In this case, the executor group may be overloaded subsequently. Therefore, the present invention calculates trend parameters so that the logic component can automatically and accurately identify the above situation, and then makes adjustments based on the above situation to schedule the executors in the executor group in the first execution state to the executor group in the second execution state. Then, the executors are adjusted and deployed in advance to reduce the subsequent overload and waste of computing power of the executors, thereby improving the task execution efficiency of the executor group and improving the reliability of the entire system.

[0087] The adjustment unit of the present invention calls the executor in the executor group of the third execution state to the executor group of the second execution state under preset conditions. In actual situations, the third execution state is used as an alternative. The probability of the executor group of the third execution state being overloaded subsequently is higher than that of the executor group of the first execution state. Therefore, the executor group of the third execution state is used as an alternative to be called to the executor group of the second execution state, thereby adjusting and deploying the executor in advance, reducing the subsequent overload and waste of computing power of the executor, improving the task execution efficiency of the executor group, and improving the reliability of the entire system.

[0088] Specifically, the detection unit is further used to determine the overload state of the actuator group based on the running memory of each actuator in the actuator group, wherein:

[0089] If the running memory of each actuator in the actuator group is greater than a preset running memory threshold, the detection unit determines that the actuator group is in an overload state;

[0090] If the running memory of each actuator in the actuator group is less than or equal to a preset running memory threshold, the detection unit determines that the actuator group is in a non-overload state.

[0091] Specifically, the adjustment unit is also used to determine the call priority, wherein:

[0092] If the executor group is in an overload state, and the output quantity of the same type of tasks output by the time wheel in a subsequent number of cycles is a decreasing change, the adjustment unit determines that the executor group is of high priority;

[0093] If the executor group is in a non-overload state, and the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is an increasing change, the adjustment unit determines that the executor group is of low priority.

[0094] Specifically, the adjustment unit calls the executor in the executor group in the third execution state to the executor group in the second execution state, wherein:

[0095] The adjustment unit preferentially selects executors from a high-priority executor group and calls them to an executor group in a second execution state. If the number of called executors is still lower than the required number, the adjustment unit starts to call executors from a low-priority executor group to the executor group in the second execution state.

[0096] The adjustment unit of the present invention also determines the priority of calling the executor group in the third execution state. In actual situations, if the executor group is in an overload state, and the output number of the same category of tasks output by the timing wheel in several subsequent cycles is a decreasing change, the probability of subsequent overload is lower than that when the executor group is in a non-overload state, and the output number of the same category of tasks output by the timing wheel in several subsequent cycles is an increasing change, then the adjustment unit determines that the executor group is of low priority, and therefore, preferentially calls the executor group with a high priority, thereby reducing the subsequent overload and waste of computing power of the executor, improving the task execution efficiency of the executor group, and improving the reliability of the entire system.

[0097] Specifically, a call ratio threshold is set in the adjustment unit. When the adjustment unit calls an executor in any executor group, the ratio of the number of called executors to the number of executors before the call must be lower than the preset ratio threshold.

[0098] The purpose of setting the call ratio threshold in this embodiment is to ensure the execution computing capability of the original executor group, so those skilled in the art can set the call ratio threshold within the interval [0, 0.25].

[0099] Specifically, the adjustment unit is provided with a method for determining the required number Nx, and the required number is determined based on the total number Nm2 of actuators in the actuator group in the second state.

[0100] In this embodiment, the required quantity Nx is set to Nm2×e, where e represents a setting coefficient. Those skilled in the art can set the setting coefficient within the interval [0, 0.15] while ensuring the adjustment effect.

[0101] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.

Claims

1. An automatic execution system for instant messaging tasks, characterized in that: include: A data acquisition module, which is used to acquire tasks and assign each of the tasks to a time wheel; A time wheel module, which is connected to the data acquisition module and is used to insert the acquired tasks into the time slot, wherein the time slot is a time slot set on the time wheel, the time wheel is pre-set, and there are several time wheels; A processing module, comprising a plurality of executor groups, each of which is used to execute tasks of different categories, wherein the tasks are tasks output by each of the timing wheels; A calling module, which is connected to the timing wheel module and the processing module, includes a detection unit and an adjustment unit. The detection unit is used to obtain the running memory of each of the executors in real time, and divide the execution state of the executor group based on the overload state of the executor group and the change in the output quantity of the same-category tasks of the time wheel in subsequent cycles, wherein the same-category tasks are tasks of the same task type as the task category required to be executed by the executor group; The adjustment unit is used to adjust the task execution object of each executor based on the execution status of each executor group, wherein: The adjustment unit calls the executor in the executor group in the first execution state to the executor group in the second execution state; Or, under a preset condition, the adjustment unit calls the actuators in the actuator group in the third execution state to the actuator group in the second execution state; The preset condition is that the number of executors that can be called in the executor group in the first execution state is lower than the required number; Each of the time wheels distributes tasks based on the flow of time, wherein: The time wheel rotates once every preset period to determine whether there is a task stored in the time slot pointed to by the reference scale. If there are tasks stored in the time slot, all the tasks in the time slot are distributed; The detection unit obtains the output quantity of the same type of tasks in the subsequent several cycles of the time wheel and calculates the trend parameter. The detection unit calculates the trend parameter according to formula (1): (1) In formula (1), K represents the trend parameter, n represents the number of cycles, N(i+1) represents the number of outputs of the same type of tasks in the i+1th cycle, and N(i) represents the number of outputs of the same type of tasks in the i cycle; The detection unit obtains the change in the output quantity of the same type of tasks of the time wheel in the subsequent several cycles, wherein: The detection unit compares the absolute value of the trend parameter with a preset trend comparison parameter. Under the first comparison condition, the detection unit determines that the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is an increasing change; Under the second comparison condition, the detection unit determines that the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is a decreasing change; The first comparison condition is that the trend parameter is greater than 0 and the absolute value of the trend parameter is greater than the preset trend comparison parameter, and the second comparison condition is that the trend parameter is less than 0 and the absolute value of the trend parameter is less than or equal to the preset trend comparison parameter; The detection unit divides the execution state of the actuator group based on the overload state of the actuator group and the change in the output quantity of the same type of tasks of the time wheel in subsequent cycles, wherein: Under the first condition, the detection unit determines that the actuator group is in the first execution state; Under the second condition, the detection unit determines that the actuator group is in the second execution state; Under the third condition, the detection unit determines that the actuator group is in a third execution state; The first condition is that the executor group is in a non-overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is decreasing; the second condition is that the executor group is in an overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is increasing; the third condition is that the executor group is in an overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is decreasing, or the executor group is in a non-overload state, and the output number of the same category tasks of the timing wheel in the subsequent several cycles is increasing.

2. The automatic execution system of instant messaging tasks according to claim 1, characterized in that: The detection unit is also used to determine the overload state of the actuator group based on the running memory of each actuator in the actuator group, wherein: If the running memory of each actuator in the actuator group is greater than a preset running memory threshold, the detection unit determines that the actuator group is in an overload state; If the running memory of each actuator in the actuator group is less than or equal to a preset running memory threshold, the detection unit determines that the actuator group is in a non-overload state.

3. The automatic execution system of instant messaging tasks according to claim 1, characterized in that: The adjustment unit is also used to determine the calling priority, wherein: If the executor group is in an overload state, and the output quantity of the same type of tasks output by the time wheel in a subsequent number of cycles is a decreasing change, the adjustment unit determines that the executor group is of high priority; If the executor group is in a non-overload state, and the output quantity of the same type of tasks of the time wheel in the subsequent several cycles is an increasing change, the adjustment unit determines that the executor group is of low priority.

4. The automatic execution system of instant messaging tasks according to claim 3, characterized in that: The adjustment unit calls the executors in the executor group in the third execution state to the executor group in the second execution state, wherein: The adjustment unit preferentially selects executors from a high-priority executor group and calls them to an executor group in a second execution state. If the number of called executors is still lower than the required number, the adjustment unit starts to call executors from a low-priority executor group to the executor group in the second execution state.

5. The automatic execution system of instant messaging tasks according to claim 1, characterized in that: The adjustment unit is provided with a call ratio threshold. When the adjustment unit calls an executor in any executor group, the ratio of the number of called executors to the number of executors before the call must be lower than the preset ratio threshold.

6. The automatic execution system of instant messaging tasks according to claim 1, characterized in that: The adjustment unit is provided with a method for determining the required quantity, and the required quantity is determined based on the total quantity of actuators in the actuator group in the second state.