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

Delay task processing method and device, electronic equipment and storage medium

A technology of task processing and processing devices, which is applied in the field of data processing, can solve the problems of empty scanning, system CPU and other resource waste, increase code size and message middleware memory overhead, etc., to reduce occupation, reduce resource consumption, and high-efficiency delay The effect of task processing flow

Pending Publication Date: 2021-12-28
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

[0003] In the related technology, it is usually to add the delayed task to the message queue, and trigger the execution of the task according to the scheduled scan of the message queue, but each delayed task needs to be bound with configuration parameters such as the corresponding queue name, expiration time attribute, and routing key. It will increase the amount of code and the memory overhead of message middleware; at the same time, the implementation of delayed tasks is usually done by polling and scanning tasks every few seconds. waste of

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
  • Delay task processing method and device, electronic equipment and storage medium
  • Delay task processing method and device, electronic equipment and storage medium
  • Delay task processing method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.

[0029] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations (or steps) may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional...

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 embodiment of the invention discloses a delay task processing method and device, electronic equipment and a storage medium. The method comprises the following steps: performing heap sorting on each to-be-executed delay task according to task execution time to construct a task small top heap; according to the task execution time of the to-be-executed delay task corresponding to a heap top element in the task small top heap, determining trigger control information of task polling; and according to the trigger control information of the task polling, triggering the polling to determine a target delay task from the to-be-executed delay tasks so as to carry out delay task processing. By adopting the scheme, the delay task needing to be executed recently can be quickly found by using the quick reconstruction capability of the small top heap for the delay task, the trigger control information of the task polling is determined according to the delay task needing to be executed recently, subsequent task polling only needs to be executed according to the trigger control information, frequent polling is not needed, occupation of a CPU and a disk is reduced, and resource consumption of empty polling is reduced.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of data processing, and in particular, to a delayed task processing method, device, electronic equipment, and storage medium. Background technique [0002] In the trading platform, it is often necessary to use delayed tasks to realize the functions of automatically canceling the order if the payment is not made at the point, and automatically processing the after-sales service if the delivery is not delivered after timeout. [0003] In the related technology, it is usually to add the delayed task to the message queue, and trigger the execution of the task according to the scheduled scan of the message queue, but each delayed task needs to be bound with configuration parameters such as the corresponding queue name, expiration time attribute, and routing key. It will increase the amount of code and the memory overhead of message middleware; at the same time, the implementation of delayed ...

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/48G06F9/54
CPCG06F9/4881G06F9/546G06F9/485
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