Unlock instant, AI-driven research and patent intelligence for your innovation.

Celery task execution method and terminal device

An execution method and terminal equipment technology, applied in the field of data processing, can solve problems such as abnormal execution process, achieve the effect of preventing abnormal execution and improving stability

Pending Publication Date: 2019-02-01
PING AN TECH (SHENZHEN) CO LTD
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a Celery task execution method, a terminal device, and a computer-readable storage medium to solve the problem in the prior art that the execution process is abnormal when the time module is called to execute the Celery task

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
  • Celery task execution method and terminal device
  • Celery task execution method and terminal device
  • Celery task execution method and terminal device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

[0029] In the embodiment of the present invention, the planned task record including the planned time is stored in the planned database. The planned time is generated by the planned task tool of the linux system, and then the current time is obtained. Task records the corresponding Celery task, and finally adds the configured Celery task to the message queue. When the Celery task is at the head of...

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 is applicable to the technical field of data processing, and provides a Celery task execution method, a terminal device and a computer-readable storage medium. The Celery task executionmethod comprises: storing a planned task record into a planned database; the planned task record comprises a planned time generated by a planned task tool of a linux system; and the planned task record comprises a planned time generated by a planned task tool. Acquiring a current time, and configuring a Celery task corresponding to the planned task record according to the current time if the current time coincides with the planned time; the Celery task is added to a message queue, and when the Celery task is located at the head of the message queue, the Celery task is assigned to an executionprocess to execute the Celery task. The embodiment of the invention is based on the planned task tool of the Linux system to generate the planned time and execute the Celery task according to the planned time, thereby improving the accuracy of executing the Celery task.

Description

technical field [0001] The invention belongs to the technical field of data processing, and in particular relates to a Celery task execution method, a terminal device and a computer-readable storage medium. Background technique [0002] Celery is a distributed task queue developed based on the python language, which is suitable for application scenarios with large data volume and high performance requirements. Celery implements data processing through Celery tasks. During the processing, each Celery task generates a task ID. After the Celery task is executed, the user can view the execution result of the Celery task through the task ID. [0003] In the prior art, since Celery itself is developed based on the python language, for some Celery tasks that need to be scheduled for execution, the time module in python is usually called to set the Celery task to be executed at the expected time. However, in practical applications, the time module has execution exceptions, that is,...

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/54
CPCG06F9/546G06F2209/548
Inventor 刘永华刘洋
Owner PING AN TECH (SHENZHEN) CO LTD