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

Task management method, system, device and storage medium

A technology for task management and target tasks, applied in the fields of equipment and storage media, task management methods, and systems, and can solve problems such as affecting the normal execution of processes, Celery being unable to execute the latest code, and single point of failure.

Active Publication Date: 2021-11-30
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In this way, the application system needs to run a set of regular polling process separately, polling and detecting the time stamp of all Celery tasks, when the hardware resources of the application service are in short supply, it will affect the normal execution of the original process of Celery, and when the process appears When there is an exception or when the server time is artificially modified, the judgment of the timestamp is likely to fail, and it is easy to form a single point of failure, resulting in Celery being unable to execute the latest code

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 management method, system, device and storage medium
  • Task management method, system, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The core of the present invention is to provide a task management method, which can automatically take effect of the Celery task without restarting, and will not destroy the stability of the system.

[0050] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] Please refer to figure 1 , figure 1 It is an implementation flowchart of a task management method in the present invention, and the task management method may include the following steps:

[0052...

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 task management method, which comprises the following steps of: when a Celery service is started, scanning a target task method; identifying each module called by the target task method, and storing a file content check value of each module in a cache; before the target task method is executed, determining a call chain module set of the target task method; calculating a file content check value of each module in the call chain module set, and respectively judging whether the file content check value is consistent with the corresponding check value in the cache; if any one of the file content verification values is not consistent, updating the file content verification value of the module in the cache, and introducing the method of the module into the cache in a module reloading mode; and executing the target task method. By applying the method of the invention, the Celery task can automatically take effect without restarting, and the stability of the system is not damaged. The invention further provides a task management system and device and a storage medium, which have corresponding technical effects.

Description

technical field [0001] The present invention relates to the technical field of task processing, in particular to a task management method, system, device and storage medium. Background technique [0002] Celery is an asynchronous task scheduling tool. It adopts the distributed task queue mode and supports high-concurrency execution of massive tasks, such as when the server memory, CPU, and Memory use data collection, or asynchronously initiates the execution of a command to a specified server. [0003] At present, Celery's task registration method is usually to add Celery task annotations to the background script method, and Celery will automatically scan out the task method name and add the method name to the memory. However, when the business logic changes, this method needs to restart the Celery service process code to take effect, that is, this method will cause the application system to restart, block the asynchronous tasks being executed, easily cause data confusion, a...

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/4881
Inventor 徐基法刘超张悦边智慧
Owner SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
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