Distributed timed task control device and method

A technology for timed tasks and control devices, which is applied in the field of cloud development and can solve problems such as lack of flexibility and non-supply.

Active Publication Date: 2013-07-10
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 40 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Cron can run jobs without manual intervention, but the disadvantage is that it does not provide any form of API. Cron tasks can onl

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
  • Distributed timed task control device and method
  • Distributed timed task control device and method
  • Distributed timed task control device and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention.

[0034] Such as figure 1 As shown, the distributed timed task control device proposed in the embodiment of the first aspect of the present invention includes a receiving module 110 , a database module 120 , multiple scheduling modules 130 and an execution module 140 .

[0035] Wherein, receiving module 110 is used for receiving the instruction of timing task Cron; Database module 120 is used for saving Cron record, and wherein, each Cron record has corresponding current status information; The Cron record in the module 120 is scheduled, ...

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 provides a distributed timed task control device. The distributed timed task control device comprises a receiving module, a database module, a plurality of scheduling modules and an execution module, wherein the receiving module is used for receiving instructions of timed task Cron; the database module is used for storing Cron records, and every Cron record is provided with corresponding current state information; the plurality of scheduling modules are used for scheduling the Cron records in the database module respectively according to a scheduling timetable and placing the Cron records in an execution queue according to the current state information corresponding to the Cron records when the Cron records meet the scheduling timetable; and the execution module is used for executing the Cron records in the execution queue. The distributed timed task control device can be used for processing high-concurrency Cron tasks and is only related to users, the users can use a uniform resource locator (URL) outside an application program to serve as an address of timed tasks, and the distributed timed task control device is flexible and convenient. The invention further provides a distributed timed task control method.

Description

technical field [0001] The invention relates to the technical field of cloud development, in particular to a distributed timing task control device and method. Background technique [0002] Cron, a scheduled task, is a task that executes planned work at an agreed time. For example, it can be stipulated in the configuration file that the httpd server will be restarted at 4 o'clock every morning, and a letter will be sent to a mailbox at 10 o'clock every night, which are all scheduled tasks. [0003] In Linux systems, scheduled tasks are generally undertaken by cron, and cron can execute specific tasks according to the time agreed in the configuration file. Set cron to start automatically at boot time. After cron starts, it will read all its configuration files, such as the global configuration file / etc / crontab, and each user's scheduled task configuration file, and then cron will call the work task on time according to the command and execution time. [0004] Cron can run...

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
IPC IPC(8): G06F9/48
Inventor 安海雄高巍邬晶
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) 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