Task delay method and apparatus

A task and timing task technology, applied in the computer field, can solve the problems of delayed task loss, inaccurate execution time of delayed tasks, etc., to ensure no loss, improve accuracy, and reduce storage pressure.

Inactive Publication Date: 2018-11-02
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF2 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, embodiments of the present invention provide a method, device, electronic device, and computer-readable storage medium for delaying tasks, so as to solve the problems of delayed task loss and inaccurate execution time of delayed tasks, and achieve high performance of delayed tasks

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
  • Task delay method and apparatus
  • Task delay method and apparatus
  • Task delay method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045]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.

[0046] figure 1 is a schematic diagram of a method for delaying tasks according to the prior art. Such as figure 1 As shown, after receiving the message queue (mq message), put the message content and execution timestamp into the redisFIFO queue (first-in-first-out queue).

[0047] Continuously poll for tasks taken from the message queue (task A, task B, etc.).

[0048]...

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 relates to a task delay method and apparatus. The task delay method comprises the steps of, aiming at a task needing to be delayed, packaging the task needing to be delayed; putting execution time of the task needing to be delayed into a delay queue of a database, and putting contents of the task needing to be delayed into a cluster, different from the delay queue, of the database; and starting a timed task timer to scan the delay queue to obtain the delayed task needing to be executed. In addition, the invention relates to an electronic device and a computer readable storage medium for realizing the task delay method.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method, device, electronic equipment and computer-readable storage medium for delaying tasks. Background technique [0002] During the processing of session chat records, all chat records of the session need to be queried when the session is closed to calculate relevant indicators. However, when the session is closed, the chat record message may not arrive, so the queried session chat record is incomplete, resulting in inaccurate calculation of related indicators. Therefore, after receiving the session close message, it is necessary to delay the calculation of related indicators. [0003] According to the existing technology, such as figure 1 As shown, after receiving the message queue (mq message), put the message content and execution timestamp into the redis FIFO queue (first-in-first-out queue), and continuously poll the tasks taken out of the message queue (task A, 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/48
CPCG06F9/4887G06F2209/486
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