Method and system for early warning notification by controlling time wheel algorithm through SMS reply

By configuring the SMS early warning template in the database and using the time wheel algorithm, combined with the SMS reply content intervention task, the problem of repeated notifications in the SMS early warning system is solved, and accurate notification of the early warning system and efficient use of resources are achieved.

CN114819612BActive Publication Date: 2024-09-06FUJIAN TQ DIGITAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210428713.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2024-09-06
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

There is a problem of repeated notifications in the existing SMS early warning system, which leads to a waste of resources and increased screening costs, which may cause the person in charge of the system to miss important early warning information.

Method used

By configuring the SMS warning template information in the database, using the time wheel algorithm and the coroutine mechanism to organize the task data structure, and intervening in the task based on the SMS reply content, accurate notifications and the avoidance of invalid repeated warnings can be achieved.

Benefits of technology

It achieves precise notifications from the early warning system, avoids sending invalid repeated text messages, and improves the response speed and accuracy of system leaders to important early warnings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114819612B
    Figure CN114819612B
Patent Text Reader

Abstract

The present invention provides a method for performing early warning notification by controlling a time wheel algorithm through short message reply, and the method comprises the following steps: step S1, configuring short message early warning template information in a database; step S2, receiving an early warning start request, and reading the short message early warning template information in the database; step S3, each time wheel array with a subscript corresponds to a slot, and the slot has unit task data, and the subscript of the time wheel array is moved by one bit per second to judge whether the data in the slot corresponding to the time wheel array with the current subscript has a task; step S4, judging whether the time round of the task is equal to the current round of the system, if yes, then executing the task content in the current round, otherwise, entering and waiting for the next time; step S5, receiving a short message reply, and judging the short message reply content; step S6, receiving a request to cancel the early warning, and the received parameter has an identifier of the short message early warning template information; the present invention can solve the problem of accurate notification of the early warning system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and system for early warning notification by controlling a time wheel algorithm through short message reply. Background Art

[0002] Monitoring and early warning of the system is essential, which can improve the speed of our discovery of faults, and then repair the faults in time to make the system healthy and reliable. SMS notification is a very common means of use. As the most popular smart device, mobile phones can convey messages to the system manager in a timely manner and urge the system manager to respond quickly. However, the disadvantage of SMS notification is also obvious, that is, repeated notifications. After receiving the first warning SMS, the system manager may need 30 minutes to check and repair. Assuming that the warning is once every minute, then this warning SMS will be sent 29 times within 30 minutes, which not only wastes SMS fees, but also produces invalid warning information, increases screening costs, and may cause the system manager to miss other important warning information. If the number of repetitions is reduced by increasing the warning interval, it is possible that the system manager misses the first warning SMS and responds only after the second warning, resulting in failure to check the system in time. Summary of the invention

[0003] In order to overcome the above problems, an object of the present invention is to provide a method that can realize accurate notification of an early warning system and can avoid invalid and repeated early warning text messages.

[0004] The present invention is implemented by the following scheme: a method for early warning notification by controlling the time wheel algorithm through SMS reply, the method comprising the following steps:

[0005] Step S1, configuring SMS warning template information in the database;

[0006] Step S2, receiving a warning start request, reading SMS warning template information from the database, organizing it into a unit task data structure in combination with the received parameters of the warning request and storing it in a corresponding slot of the time wheel array;

[0007] Step S3: Each time wheel array with a subscript corresponds to a slot, and the slot contains unit task data. The subscript of the time wheel array is moved by one per second to determine whether there is a task in the data in the slot corresponding to the current subscript of the time wheel array. If yes, start the coroutine to traverse the task on the current slot of the current time wheel data. If no, continue to move;

[0008] Step S4: determine whether the time round of the task is equal to the current round of the system. If yes, execute the task content in the current round; if no, wait for the next round.

[0009] Step S5: receiving a text message reply, determining the content of the text message reply, and intervening in the task on the time wheel array;

[0010] Step S6, receiving a request to cancel the warning, receiving parameters including the identifier of the SMS warning template information, removing the task identified by the template on the time wheel array, thereby solving the problem of accurate notification of the warning system.

[0011] Furthermore, the step S1 is further specified as follows: configuring the SMS warning template information in the system database, which requires configuring the template identifier, template content, number of template content parameters, and notification mobile phone number.

[0012] Furthermore, the step S2 is further specified as follows: receiving a start warning request, receiving parameters including a template identifier, template content parameters, and a notification interval, reading SMS warning template information from a database, and combining the received parameters to organize the unit task data structure and store it in a corresponding slot of a time wheel array.

[0013] Furthermore, the step S3 is further specified as follows: each time wheel array with a subscript corresponds to a slot, and the slot contains unit task data. The subscript of the time wheel array is moved by one bit per second, and the coroutine is started to traverse the tasks on the current slot. The system sets a time wheel array sys_timearray. The current subscript of the time wheel sys_timearray_index indicates the task on which slot the system is currently executing. The sys_timearray_index will be increased by 1 per second. Wherever the sys_timearray_index goes, it means that the task list on the corresponding slot will be executed; a task task list is placed on each slot, indicating that when the system traverses to the slot, the task list on the slot will be executed.

[0014] Furthermore, the step S4 is further specified as follows: determine whether the time round of the task is equal to the current round sys_round of the system. If it is less than that, execute the task content, traverse to the last position of the time round array, then the current time round sys_round of the system is increased by 1, and the subscript sys_timearray_index continues to move from 0.

[0015] Furthermore, the step S5 is further specified as follows: receiving a text message reply, determining the content of the text message reply, the text message reply content including stop, delay n, and next n, wherein stop means stopping all warnings of this time and removing all such tasks on the time wheel array; delay n means continuing to notify after a delay of n seconds, and the original task on the time wheel array is shifted back by n places; next n means skipping n cycles, and the round of the original task on the time wheel array is increased by n.

[0016] The present invention also provides a system for controlling the time wheel algorithm to perform early warning notifications through short message replies, including a configuration module, a receiving module, a moving module, a judgment module, an intervention module and a removal module. The configuration module is to configure the short message early warning template information in the database; the receiving template is to receive an early warning start request, read the short message early warning template information in the database, organize it into a unit task data structure in combination with the receiving parameters of the early warning request, and store it in the corresponding slot of the time wheel array; the moving template is to have a slot corresponding to each time wheel array with a subscript, and there is unit task data in the slot, and the subscript of the time wheel array is moved by one bit per second to judge the current subscript. Whether there is a task for the data in the corresponding slot of the time wheel array, if yes, start the coroutine to traverse the tasks on the current slot of the current time wheel data, otherwise, continue to move; the judgment module, that is, judge whether the time round of the task is equal to the current round of the system, if yes, execute the task content in the current round, otherwise, wait for the next time; the intervention template, that is, receive the SMS reply, judge the SMS reply content, so as to intervene in the task on the time wheel array; the removal module, that is, receive the warning cancellation request, receive the parameter with the identifier of the SMS warning template information, remove the task identified by this template on the time wheel array, so as to solve the problem of accurate notification of the warning system.

[0017] Furthermore, the configuration module is further specified as follows: configuring the SMS warning template information in the system database, which requires configuring the template identifier, template content, the number of template content parameters, and the notification mobile phone number.

[0018] Furthermore, the receiving module is further specified as follows: receiving a start warning request, receiving parameters including a template identifier, template content parameters, and a notification interval, reading SMS warning template information from a database, and combining the received parameters to organize the unit task data structure and store it in a corresponding slot of a time wheel array.

[0019] Furthermore, the mobile module is further specified as follows: each time wheel array with a subscript corresponds to a slot, and the slot contains unit task data. The subscript of the time wheel array is moved one bit per second, and the coroutine is started to traverse the tasks on the current slot. The system sets a time wheel array sys_timearray. The current subscript of the time wheel sys_timearray_index indicates the task on which slot the system is currently executing. The sys_timearray_index will be increased by 1 per second. Wherever the sys_timearray_index goes, it means that the task list on the corresponding slot will be executed; a task task list is placed on each slot, indicating that when the system traverses to the slot, the task list on the slot will be executed.

[0020] Furthermore, the judgment module is further specified as follows: judging whether the time round round of the task is equal to the current round sys_round of the system, if it is less than that, executing the task content, traversing to the last position of the time round array, then the current time round sys_round of the system is increased by 1, and the subscript sys_timearray_index continues to move from 0.

[0021] Furthermore, the intervention module is further specified as follows: receiving a text message reply, determining the content of the text message reply, the text message reply content including stop, delay n, and next n, wherein stop means stopping all warnings of this time and removing all such tasks on the time wheel array; delay n means continuing to notify after a delay of n seconds, and the original task on the time wheel array is shifted back by n places; next n means skipping n cycles, and the round of the original task on the time wheel array is increased by n.

[0022] The beneficial effects of the present invention are as follows: the present invention can solve the problem of accurate notification of the early warning system, and can intervene in early warnings through short message replies, thereby avoiding invalid repeated early warning short messages. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a schematic flow chart of the method of the present invention.

[0024] Figure 2 It is a system principle block diagram of the present invention. DETAILED DESCRIPTION

[0025] The present invention will be further described below in conjunction with the accompanying drawings.

[0026] See also Figure 1 As shown, a method of the present invention for early warning notification by controlling the time wheel algorithm through SMS reply comprises the following steps:

[0027] Step S1, configuring SMS warning template information in the database;

[0028] Step S2, receiving a warning start request, reading SMS warning template information from the database, organizing it into a unit task data structure in combination with the received parameters of the warning request and storing it in a corresponding slot of the time wheel array;

[0029] Step S3: Each time wheel array with a subscript corresponds to a slot, and the slot contains unit task data. The subscript of the time wheel array is moved by one per second to determine whether there is a task in the data in the slot corresponding to the current subscript of the time wheel array. If yes, start the coroutine to traverse the task on the current slot of the current time wheel data. If no, continue to move;

[0030] Step S4: determine whether the time round of the task is equal to the current round of the system. If yes, execute the task content in the current round; if no, wait for the next round.

[0031] Step S5: receiving a text message reply, determining the content of the text message reply, and intervening in the task on the time wheel array;

[0032] Step S6, receiving a request to cancel the warning, receiving parameters including the identifier of the SMS warning template information, removing the task identified by the template on the time wheel array, thereby solving the problem of accurate notification of the warning system.

[0033] The present invention will be further described below by a specific embodiment:

[0034] Step 1: Configure the SMS warning template information in the database. You need to configure the template ID, template content, number of template content parameters, and notification mobile phone number.

[0035] We will take the example of the mall system using this SMS notification system. First, we need to create a SMS warning template data in the database SMS warning template table. Assume that the template identifier is "shop_warn", the template content is "The mall system started at {time}, and an error {error} occurred. Please handle it in time", the number of template content parameters is 2, and the notification mobile number is 18912345678. Execute the SQL statement insert warn_sms_tb(code, content, args_count, mobile) values("shop_warn", "The mall system started at {time}, and an error {error} occurred. Please handle it in time", 2, "18912345678").

[0036] Step 2: Receive a start warning request, receive parameters such as template identifier, template content parameters, and notification interval, read the SMS warning template information from the database, organize it into a unit task data structure based on the received parameters, and store it in the corresponding slot of the time wheel array.

[0037] As a general system, this SMS notification system provides an interface for the access party to trigger the start of the warning. The receiving parameters are as follows: template identifier = "shop_warn", template content parameter = "{'time':'2022-04-05 19:30:58', 'error' = 'Product database link failed'}", notification interval = 300. Read the SMS warning template data of "shop_warn", execute the SQL statement select * from code = "shop_warn" to get the template data, replace the corresponding parameters on the corresponding template content to get the final SMS content "The mall system started at 2022-04-05 19:30:58, an error occurred and the product database link failed, please handle it in time"; the notification interval interval 300 means that the notification is once every 300 seconds, that is, 5 minutes; the index formula for the slot to be placed is (sys_timearray_index+interval)%3600, because if it exceeds 3600, the corresponding index is obtained by modulo; the formula for the round of the task is sys_round+((notification interval+sys_timearray_index) / 3600), and round=0 is obtained. sys_round is the current round of the system, and sys_timearray_index is the current subscript of the system time wheel. sys_round and sys_timearray_index will be explained in the step 3 time wheel related algorithm. Organize the above information into a task structure {"code":"shop_warn","content":"The mall system started at 2022-04-05 19:30:58. An error occurred and the product database link failed. Please handle it in time","mobile":"18912345678","interval":300,"round":0,}

[0038] Step 3: Move the time round index one bit per second. If there is a task on this index of the data, start the coroutine to traverse the tasks on the current slot and determine whether the time round of the task is equal to the current round of the system sys_round. If it is equal, execute the task content. If the last bit of the time round array is traversed, the current time round of the system sys_round is increased by 1, and the index sys_timearray_index continues to move from 0.

[0039] The system sets up a time wheel array sys_timearray with a length of 3600. This array has 3600 slots, representing 3600 seconds, or 1 hour. The current subscript sys_timearray_index of the time wheel indicates which slot the system is currently executing the task on. The sys_timearray_index will increase by 1 every second. Where the sys_timearray_index moves indicates that the task list on the corresponding slot will be executed. A task task list is placed on each slot, indicating that the system traverses to the slot and the task list on the slot will be executed. When the subscript sys_timearray_index traverses to the last position of the array, the sys_timearray_index is reset to 0, and the current time round sys_round is increased by 1. The function of the current time round sys_round is to meet such tasks that exceed 1 hour, because the array of 3600 can only represent the time scheduling within this 1 hour. By comparing sys_round with the round in the task structure, it can be known whether the task is to be executed at the current time.

[0040] Every second, the system checks the current index sys_timearray_index+1 to determine whether there is task data on the time round array sys_timearray[sys_timearray_index]. If the length of the task list is greater than 1, a coroutine is started to asynchronously traverse the task list on the slot to determine whether the round on the task is equal to the current time round sys_round. If it is greater, it means that it will be executed in the next round. If it is equal, SMS notification is sent according to the data in the task structure task. The round will not be less than sys_round.

[0041] After the task is executed, it is removed from the task list of the current slot, and the task is re-added to the interval slots after the time interval interval on the task data task, indicating that the task will be re-executed after interval seconds. If the current index plus the interval exceeds the range of the time round array 3600, the round and slot index on the task need to be recalculated according to the formula in step 2.

[0042] Step 4: Receive a text message reply and determine the content of the text message reply. Stop means stopping all warnings and removing all such tasks on the time wheel array. Delay n means continuing to notify after a delay of n seconds, and the original task on the time wheel array is shifted back by n positions. Next n means skipping n cycles, and the round of the original task on the time wheel array is increased by n.

[0043] After receiving the warning SMS from the SMS notification system, the system manager can reply to the SMS according to the actual situation to intervene in the tasks on the time wheel array.

[0044] If the person in charge of the warning information system estimates that this warning needs 30 minutes to be resolved, and hopes that this warning does not need to be notified again within 30 minutes, then reply with a text message delay 1800, indicating that the notification will be delayed for another 30 minutes after the original task interval. After receiving this reply, the system traverses the time round array sys_timearray to find the task with code = shop_warn, and increases the subscript to 1800. Round and index need to be recalculated according to the formula in step 2.

[0045] If the person in charge of the early warning information system wants to skip 4 intervals, that is, 20 minutes, he / she will reply with the text message next5, indicating that 4 intervals will be skipped in the interval of the original task, that is, notification will be made at the 5th interval. After receiving this reply, the system will traverse the time wheel array sys_timearray to find the task with code = shop_warn, and obtain the notification interval interval = 300. The added subscript is 300*(4+1) = 1500, and round and index need to be recalculated according to the formula in step 2.

[0046] If the task of the person in charge of the warning information is not a major error, the system can automatically respond to normal. If you do not want to receive this warning information again, you can reply stop to indicate that you want to stop the subsequent notification of this warning. After receiving this reply, the system traverses the time wheel array sys_timearray to find the task with code = shop_warn and remove the task.

[0047] Step 5: Receive a request to cancel the warning, the received parameters include a template identifier, and remove the task with the template identifier on the time wheel array.

[0048] In addition to receiving SMS replies to intervene in the tasks of the time wheel, the system also needs to provide an interface for clearing warnings. When the system problem has been fixed, the warning needs to be cleared. The interface receives parameters with the template identifier code = "shop_warn", traverses the time wheel array sys_timearray to find tasks with code = shop_warn, and removes the tasks.

[0049] The present invention is a general SMS notification service and does not involve specific system monitoring. Each system is responsible for monitoring and requests this SMS notification system to trigger subsequent SMS notifications. 1. The database configures the SMS warning template information, and needs to configure the template identifier, template content, number of template content parameters, and notification mobile phone number. 2. Receive the start warning request, and the received parameters include template identifier, template content parameters, and notification interval. Read the SMS warning template information from the database, combine the received parameters to organize it into a unit task data structure and store it in the corresponding slot of the time wheel array. 3. Move the time wheel subscript by one grid per second. If there is a task on the slot, start the coroutine to traverse the task on the current slot, and determine whether the time round of the task is equal to the current round. If it is equal, execute the task content. If the last position of the time wheel array is traversed, the current time round is increased by 1, and the subscript continues to move from 0. 4. Receive the SMS reply, judge the SMS reply content, stop means stop all warnings this time, remove all such tasks on the time wheel array; delay n means continue to notify after a delay of n seconds, and the original task on the time wheel array is shifted back n places; next n means skip n rounds, and the round number of the original task on the time wheel array is increased by n. 5. Receive the request to cancel the warning, the receiving parameter has a template identifier, and remove the task with this template identifier on the time wheel array.

[0050] See also Figure 2 As shown, the present invention also provides a system for controlling the time wheel algorithm through SMS reply to perform early warning notification, including a configuration module, a receiving module, a moving module, a judgment module, an intervention module and a removal module, wherein the configuration module is to configure the SMS warning template information in the database; the receiving template is to receive the early warning start request, read the SMS warning template information in the database, organize it into a unit task data structure in combination with the receiving parameters of the early warning request, and store it in the corresponding slot of the time wheel array; the moving template is to have a slot corresponding to each time wheel array with a subscript, and there is unit task data in the slot, and the subscript of the time wheel array is moved one bit per second to judge the current subscript. Whether there is a task in the data corresponding to the slot of the target time wheel array, if yes, start the coroutine to traverse the tasks on the current slot of the current time wheel data, otherwise, continue to move; the judgment module, that is, judge whether the time round of the task is equal to the current round of the system, if yes, execute the task content in the current round, otherwise, wait for the next time; the intervention template, that is, receive the SMS reply, judge the SMS reply content, so as to intervene in the task on the time wheel array; the removal module, that is, receive the warning cancellation request, receive the parameter with the identifier of the SMS warning template information, remove the task identified by this template on the time wheel array, so as to solve the problem of accurate notification of the warning system.

[0051] The configuration module is further specifically configured as follows: configuring the SMS warning template information in the system database, which requires configuring the template identifier, template content, the number of template content parameters, and the notification mobile phone number.

[0052] The receiving module is further specifically: receiving a start warning request, receiving parameters including template identification, template content parameters, and notification interval, reading SMS warning template information from a database, and organizing the received parameters into a unit task data structure and storing it in a corresponding slot of a time wheel array.

[0053] The mobile module is further specified as follows: each time wheel array with a subscript corresponds to a slot, and there is unit task data in the slot. The subscript of the time wheel array is moved one bit per second, and the coroutine is started to traverse the tasks on the current slot. The system sets a time wheel array sys_timearray. The current subscript of the time wheel sys_timearray_index indicates which slot the system is currently executing the task on. The sys_timearray_index will be increased by 1 per second. Wherever the sys_timearray_index goes, it means that the task list on the corresponding slot will be executed; a task task list is placed on each slot, indicating that when the system traverses to the slot, the task list on the slot will be executed.

[0054] The judgment module is further specifically as follows: judging whether the time round round of the task is equal to the current round sys_round of the system, if it is less, executing the task content, traversing to the last position of the time round array, then the current time round sys_round of the system is increased by 1, and the subscript sys_timearray_index continues to move from 0.

[0055] The intervention module is further specified as follows: receiving a text message reply, determining the content of the text message reply, wherein the text message reply content includes stop, delay n, and next n, wherein stop means stopping all warnings of this time and removing all such tasks on the time wheel array; delay n means continuing to notify after a delay of n seconds, and the original task on the time wheel array is shifted back by n places; next n means skipping n cycles, and the round of the original task on the time wheel array is increased by n.

[0056] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A method for early warning notification by controlling a time wheel algorithm through SMS reply, characterized in that: The method comprises the following steps: Step S1, configuring SMS warning template information in the database; Step S2, receiving a warning start request, reading SMS warning template information from the database, organizing it into a unit task data structure in combination with the received parameters of the warning request and storing it in a corresponding slot of the time wheel array; Step S3: Each time wheel array with a subscript corresponds to a slot, and the slot contains unit task data. The subscript of the time wheel array is moved by one per second to determine whether there is a task in the data in the slot corresponding to the current subscript of the time wheel array. If yes, start the coroutine to traverse the task on the current slot of the current time wheel data. If no, continue to move; Step S4: determine whether the time round of the task is equal to the current round of the system. If yes, execute the task content in the current round; if no, wait for the next round. Step S5: receiving a text message reply, determining the content of the text message reply, and intervening in the task on the time wheel array; Step S6, receiving a request to cancel the warning, receiving parameters including the identifier of the SMS warning template information, removing the task identified by the template on the time wheel array, thereby solving the problem of accurate notification of the warning system.

2. The method for early warning notification by controlling the time wheel algorithm through SMS reply according to claim 1, characterized in that: The step S1 is further specifically as follows: configuring the SMS warning template information in the system database, which requires configuring the template identifier, template content, number of template content parameters, and notification mobile phone number.

3. The method for early warning notification by controlling the time wheel algorithm through SMS reply according to claim 1, characterized in that: The step S2 is further specifically as follows: receiving a start warning request, receiving parameters including a template identifier, template content parameters, and a notification interval, reading SMS warning template information from a database, and organizing the received parameters into a unit task data structure and storing it in a corresponding slot of a time wheel array.

4. The method of claim 1, wherein: The step S3 is further specified as follows: each time wheel array with a subscript corresponds to a slot, and there is unit task data in the slot. The subscript of the time wheel array is moved by one bit per second, and the coroutine is started to traverse the tasks on the current slot. The system sets a time wheel array sys_timearray. The current subscript sys_timearray_index of the time wheel indicates the task on which slot the system is currently executing. The sys_timearray_index will be increased by 1 per second. Wherever sys_timearray_index goes, it means that the task list on the corresponding slot will be executed; a task task list is placed on each slot, indicating that when the system traverses to the slot, the task list on the slot will be executed.

5. The method of claim 1 for early warning notification by controlling the time wheel algorithm through SMS reply, characterized in that: The step S4 is further specifically as follows: determine whether the time round of the task is equal to the current system round sys_round. If it is less than that, execute the task content, traverse to the last position of the time round array, then add 1 to the current system time round sys_round, and the subscript sys_timearray_index continues to move from 0.

6. The method of claim 1 for early warning notification by controlling the time wheel algorithm through SMS reply, characterized in that: The step S5 is further specifically as follows: receiving a text message reply, determining the content of the text message reply, wherein the text message reply content includes the contents of stop, delay n, and next n, wherein stop means stopping all warnings of this time and removing all tasks on the time wheel array; delay n means continuing to notify after a delay of n seconds, and the original task on the time wheel array is shifted back by n places; next n means skipping n cycles, and the round of the original task on the time wheel array is increased by n.

7. A system for early warning notification by controlling the time wheel algorithm through SMS reply, characterized in that: It includes a configuration module, a receiving module, a moving module, a judging module, an intervention module and a removal module. The configuration module is to configure the SMS warning template information in the database; The receiving module receives the warning start request, reads the SMS warning template information from the database, organizes it into a unit task data structure in combination with the receiving parameters of the warning request, and stores it in the corresponding slot of the time wheel array; the moving module, that is, each time wheel array with a subscript corresponds to a slot, and the slot contains unit task data, moves the subscript of the time wheel array by one per second, and determines whether the data in the slot corresponding to the time wheel array with the current subscript has a task. If yes, start the coroutine to traverse the task in the current slot of the current time wheel data, otherwise, continue to move; the judging module determines whether the time round of the task is equal to the current round of the system. If yes, execute the task content in the current round, otherwise, wait for the next time; the intervention module receives the SMS reply, determines the SMS reply content, and intervenes in the task on the time wheel array; The removal module receives a warning cancellation request, receives parameters including the identifier of the SMS warning template information, and removes the task of the template identifier on the time wheel array, thereby solving the problem of accurate notification of the warning system.

8. A system for early warning notification by controlling the time wheel algorithm through SMS reply according to claim 7, characterized in that: The configuration module is further specifically configured as follows: configuring the SMS warning template information in the system database, which requires configuring the template identifier, template content, the number of template content parameters, and the notification mobile phone number.

9. A system for early warning notification by controlling the time wheel algorithm through SMS reply according to claim 7, characterized in that: The receiving module is further specifically: receiving a start warning request, receiving parameters including template identification, template content parameters, and notification interval, reading SMS warning template information from a database, and organizing the received parameters into a unit task data structure and storing it in a corresponding slot of a time wheel array.

10. The system for early warning notification by controlling the time wheel algorithm through SMS reply according to claim 7, characterized in that: The mobile module is further specified as follows: each time wheel array with a subscript corresponds to a slot, and there is unit task data in the slot. The subscript of the time wheel array is moved one bit per second, and the coroutine is started to traverse the tasks on the current slot. The system sets a time wheel array sys_timearray. The current subscript of the time wheel sys_timearray_index indicates which slot the system is currently executing the task on. The sys_timearray_index will be increased by 1 per second. Wherever the sys_timearray_index goes, it means that the task list on the corresponding slot will be executed; a task task list is placed on each slot, indicating that when the system traverses to the slot, the task list on the slot will be executed.

11. The system for early warning notification by controlling the time wheel algorithm through SMS reply according to claim 7, characterized in that: The judgment module is further specifically as follows: judging whether the time round round of the task is equal to the current round sys_round of the system, if it is less, executing the task content, traversing to the last position of the time round array, then the current time round sys_round of the system is increased by 1, and the subscript sys_timearray_index continues to move from 0.

12. The system for early warning notification by controlling the time wheel algorithm through SMS reply according to claim 7, characterized in that: The intervention module is further specified as follows: receiving a text message reply, determining the content of the text message reply, the text message reply content including stop, delay n, and next n, wherein stop means stopping all warnings of this time and removing all tasks on the time wheel array; delay n means continuing to notify after a delay of n seconds, and the original task on the time wheel array is shifted back by n places; next n means skipping n cycles, and the round of the original task on the time wheel array is increased by n.