Timed task scheduling method, server and storage device

A technology of timing tasks and scheduling methods, which is applied in the field of servers and storage devices, scheduling methods of timing tasks, and can solve problems such as performance overhead, low efficiency, and non-execution after expiration, so as to reduce performance overhead, avoid untimely polling, and improve efficiency effect

Pending Publication Date: 2020-05-12
HANGZHOU TUYA INFORMATION TECH CO LTD
View PDF11 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present application provides a timing task scheduling method, server and storage device. The scheduling method can solve the serious performance overhead caused by sorting when the scheduling node frequently sorts and queries all the tasks in the task list of the database. The resulting inefficiency, and because the scheduled tasks are stored in the database, the scheduling node frequently reads and writes the database, resulting in excessive IO overhead and slow operation, resulting in failure to expire due to untimely query of the scheduled tasks execution problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Timed task scheduling method, server and storage device
  • Timed task scheduling method, server and storage device
  • Timed task scheduling method, server and storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0071] This implementation mode includes the following steps:

[0072] S610: The scheduling node sequentially polls the task list stored corresponding to each unit time scale in the corresponding time wheel, wherein the time wheel is a distributed cache system divided into partitions corresponding to each unit time scale in a day.

[0073] In this embodiment, the server can sequentially poll the storage units corresponding to each unit time scale in the time wheel corresponding to the scheduling node through the scheduling node, so as to query the task list correspondingly stored in each storage unit Whether there is a timed task stored in the server, where the server can be understood as a scheduling system, which can add corresponding storage and real-time scheduling to the timed task sent by the client, so as to schedule and trigger the corresponding client at the specified time of the timed task Execute the scheduled task.

[0074]Wherein, the time wheel may be a distribu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a timed task scheduling method, a server and a storage device, and the timed task scheduling method comprises the steps: detecting a current moment, and determining a timed task corresponding to the current moment in a time wheel; wherein each unit time scale of the time wheel corresponds to one timed task; and scheduling and executing the timed task through the schedulingnode corresponding to the timed task. In this way, the timed task corresponds to the corresponding unit time scale in the time wheel;, so the timed task is scheduled to be executed when the corresponding moment is detected, so that the performance overhead caused by frequent sorting of the timed task can be effectively reduced, the efficiency of polling the timed task is effectively improved, andmeanwhile, the situation that the timed task is out of date and is not executed due to the fact that polling of the timed task is not timely is also avoided.

Description

technical field [0001] The present application relates to the technical field of scheduling scheduled tasks, and in particular to a scheduling method, server and storage device for scheduled tasks. Background technique [0002] Nowadays, with the rapid development of the IoT (Internet of Things, Internet of Things) field, smart devices connected to the Internet also show explosive growth. Among the smart devices that are connected to the Internet, a large part of them need to automatically complete some tasks regularly, which makes it particularly important to provide an efficient and stable timing scheduling system to complete the scheduling of a large number of timing tasks. [0003] Usually, when the amount of timed tasks that need to be scheduled is small, all timed tasks can be stored in a persistent database, and the timed tasks that need to be executed recently can be queried and loaded from the same database through the scheduling node, so as to wait until the specif...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50G06F16/2455
CPCG06F9/5038G06F16/24554
Inventor 章焕忠
Owner HANGZHOU TUYA INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products