Timing task triggering method, device, equipment and readable storage medium

A technology of timing tasks and trigger timing, applied in the computer field, can solve the problems of unreliable triggering process of timing tasks, etc.

Inactive Publication Date: 2018-04-10
CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF7 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The main purpose of the present invention is to provide a timing task triggering method, device, equipment and readable storage medium, aiming to solve the technical problem that the existing timing task triggering process is unreliable

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
  • Timing task triggering method, device, equipment and readable storage medium
  • Timing task triggering method, device, equipment and readable storage medium
  • Timing task triggering method, device, equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0073] The present invention provides a timing task triggering method. In the first embodiment of the timing task triggering method of the present invention, refer to figure 1 , the timing task triggering method includes:

[0074] Step S10, when the trigger instruction of the service timing task is detected, the service ID number is obtained, and the ID number of the timing task is obtained;

[0075] It should be noted that timing tasks are indispensable in each system, for example, order receiving timeout and payment timeout in the order system, timing settlement in the computing system, timing update of cached data, etc.

[0076] The timing task triggering method of this embodiment is applied to the distributed cluster deployment system. At present, in the process of processing the timing task by the server of the ...

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 timing task triggering method, device, equipment and a readable storage medium. The method for triggering a scheduled task comprises: when a trigger instruction of a servicetiming task is detected, acquiring the service ID number and acquiring the ID number of the scheduled task; finding a target key value in the redis database based on the service ID number and the timed task ID number, and executing an incr command on the target key value to obtain a return value; acquiring the timing task trigger rule corresponding to the timing task ID number, and confirming thetrigger timing of triggering the timing task again based on the return value and the timing task trigger rule. The present invention aims to solve the technical problem that is aimed at solving the problem of the unreliability of the triggering process of the existing timing task.

Description

technical field [0001] The present invention relates to the technical field of computers, in particular to a timing task triggering method, device, equipment and readable storage medium. Background technique [0002] At present, in the process of processing timed tasks on servers deployed in clusters, if spring quartz is used to process timed tasks or configuration files are used to configure timed tasks, there will be problems of high concurrency or repeated triggering of timed tasks. High concurrency or repeated triggering is the phenomenon that multiple servers process the same timing task, which will cause waste of resources to a certain extent. Although in the prior art, timing tasks can be bound to a server node for triggering, but a single point The high risk of scheduled tasks may cause technical problems that the scheduled tasks are not triggered in time. Contents of the invention [0003] The main purpose of the present invention is to provide a timing task trig...

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/48G06F9/50H04L29/08G06F17/30
CPCG06F9/485G06F9/5038G06F16/2471H04L67/10
Inventor 陈睿夏召波
Owner CHINA PING AN PROPERTY INSURANCE 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