Distributed timed task execution method and system

A timing task and task execution technology, applied in the computer field, can solve the problems of repeated task execution and high system availability, achieve high availability and avoid single point of failure

Active Publication Date: 2015-11-25
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 72 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In view of this, the present invention provides a distributed timing task execution method and system, which can realize the distributed cluster execution of timing tasks, and can completely solve the problems of single point of failure and repeated execution of tasks, and the system has high availability

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 execution method and system
  • Distributed timed task execution method and system
  • Distributed timed task execution method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0026] A distributed timing task execution system provided by the present invention mainly includes four modules, namely a system cluster module, a task distribution module, a task loading module and a task execution module.

[0027] The system cluster module is used to maintain a long connection with the registered server node and generate a server list; the task 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 provides a distributed timed task execution method and system, can realize distributed cluster execution of timed tasks, and can completely solve the problem of single-point failure and task repetitive execution, and thus the system availability is high. The distributed timed task execution method comprises the following steps: a system cluster module keeps long connection with registered server nodes and generates a server list; a task distributing module distributes a server to each received timed task according to the server list and stores the binding relationship between the timed tasks and the servers to a database; a task loading module periodically scans a timed task table in the database and loads the timed tasks about to be executed in the period to the server, and establishes a timed task; and a task execution module executes the timed task.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and system for executing distributed timing tasks. Background technique [0002] In the Linux environment, Crontab technology is usually used to perform timing tasks. This command reads instructions from the standard input device and stores them in the "crontab" file for later reading and execution. Usually, the instructions stored in crontab are activated by the daemon process, and crond often runs in the background, checking every minute whether there is a scheduled job that needs to be executed. However, this technical solution has a single point of failure problem, that is, if the crontab process is working abnormally or the server itself is down, the scheduled task will not be executed on time; if multiple linux servers are used to configure the same crontab task, the same task will exist For problems that are repeatedly executed, locks must be used in specific b...

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): H04L29/08
CPCH04L67/1034H04L67/1001
Inventor 曹志飞韩笑跃王飞王巍
Owner BEIJING JINGDONG SHANGKE 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