Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Distributed system timing task processing method and device and storage medium

A distributed system and timing task technology, applied in the fields of devices, timing tasks processing methods of distributed systems, storage media and computer equipment, and can solve problems such as data pollution

Pending Publication Date: 2020-08-25
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, this application provides a processing method, device, storage medium, and computer equipment for a distributed system timing task, the main purpose of which is to solve the problem of automatically running a failed timing task in a distributed system when the job server is restarted, resulting in data Contaminated technical issues

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 system timing task processing method and device and storage medium
  • Distributed system timing task processing method and device and storage medium
  • Distributed system timing task processing method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0026] In one embodiment, such as figure 1 As shown, a method for processing scheduled tasks in a distributed system is provided, and the application of the method to a job server is taken as an example for illustration, including the following steps:

[0027] 101. Obtain global job information, where the global job information includes multiple scheduled tasks under a namespace.

[0028] Among them, namespace (namespace) is also called namespace or name space, which is a code organization mechanism. Through namespace, a large number of class libraries in the system can be organized in an orderly manner, making classes easier to use.

[0029] Specifically, the job global information includes config...

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 distributed system timing task processing method and device and a storage medium. The method comprises the steps of obtaining global job information, wherein the global job information comprises a plurality of timing tasks in a namespace; generating a timing task list according to the plurality of timing tasks; comparing the plurality of timing tasks with timing tasks ina namespace with the same name in a database to obtain task states of the plurality of timing tasks in the database; if the task state of the timed task in the database is invalid, updating the task state of the timed task to be invalid, and deleting the timed task from the timed task list; and mounting the timed task list of which the invalid timed task is deleted to a registration center, so that the timed task in the timed task list runs according to set time and mode. According to the method, the task job which is set to be invalid cannot be reset to be valid after the job server is restarted, and the problems of data missing and data pollution are avoided.

Description

technical field [0001] The present invention relates to the technical field of distributed systems, in particular to a processing method, device, storage medium and computer equipment for timing tasks of a distributed system. Background technique [0002] ZooKeeper is a distributed, open-source distributed application coordination service. Elastic-Job is an open-source Java distributed timing task developed based on Zookepper and Quartz (Quartz job scheduling framework), which solves the problem that Quartz does not support distributed JKOP-JOB is a scheduled task component packaged based on Elastic-Job. It is a distributed scheduling solution that can rewrite Quartz's database-based distributed functions. [0003] In scheduled task components such as Elastic-Job and JKOP-JOB, there are usually "invalidation buttons" and "pause buttons" for scheduled tasks. The design idea of ​​the "invalidation button" is that after restarting the job server, the For expired scheduled task...

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/48G06F16/23G06F16/27
CPCG06F9/485G06F16/23G06F16/27
Inventor 游文君
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products