Timing task management method and device, computer equipment and storage medium
By determining the hash range and target time range of the timing task in the time wheel timer and performing hash arrangement processing, the problem of high task loss rate in traditional timing task management is solved, and a lower task loss rate and higher processing efficiency is achieved.
CN119718566APending Publication Date: 2025-03-28CHINA TELECOM CLOUD TECH CO LTD
0 Cites 0 Cited by
Patent Information
- Application Number
- CN202411741260.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-28
AI Technical Summary
Technical Problem
The traditional timing task management method has the problem of high task loss rate.
Method used
The hash range of the timing task is determined based on the accuracy timer and the time difference of the clock scale; then the target time range is determined based on the hash range and the timeout time; finally the timing task is hashed according to the target time range and processed at the corresponding time.
Benefits of technology
Reduces the task loss rate, avoiding excessive processing time and task timeout loss due to the matching of a large number of tasks with one clock time.
✦ Generated by Eureka AI based on patent content.
Abstract
The invention relates to a timed task management method and device, computer equipment and a storage medium. The method comprises the following steps: determining the hash range of a timing task according to the precision duration of a time wheel timer and the time difference of clock scales on the time wheel timer; the time difference of the clock scales is a difference value between adjacent clock scales in the time wheel timer; determining a target moment range corresponding to the timed task according to the hash range of the timed task and the timeout duration of the timed task; the target time range comprises clock scales of a plurality of time wheel timers; and performing hash arrangement on the timed task according to the target moment range, and processing the timed task at a moment corresponding to the timed task. Through the target time range of the timed task, the target timed task is matched with the multiple clock moments, so that the to-be-received timed task is prevented from being overtime and lost.
Need to check novelty before this filing date? Find Prior Art