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

Method, system, device and storage medium for task management

A task management and target task technology, applied in the direction of multi-program device, program startup/switching, etc., can solve the problems of time stamp judgment failure, affecting the normal execution of the process, single point of failure, etc.

Active Publication Date: 2022-02-18
INSPUR SUZHOU 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
  • Method, system, device and storage medium for task management
  • Method, system, device and storage medium for task management

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 present application discloses a task management method, including: when starting the Celery service, scanning out the target task method; identifying each module called by the target task method, and storing the check value of the file content of each module in the cache; Before executing the target task method, determine the call chain module set of the target task method; calculate the file content check value of each module in the call chain module set, and judge whether it is consistent with the corresponding check value in the cache; if If any one is inconsistent, update the file content verification value of the module in the cache, and introduce the method of the module into the cache through module reloading; execute the target task method. Applying the solution of this application, the Celery task can be automatically effective without restarting, and the stability of the system will not be damaged. The present application also provides a task management system, equipment and 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 Patents(China)
IPC IPC(8): G06F9/48
Inventor 徐基法刘超张悦边智慧
Owner INSPUR SUZHOU 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