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

A method and device for ending an asynchronous process of a cloud platform, and a cloud platform server

A cloud platform, asynchronous task technology, applied in the field of cloud platform, can solve problems such as prolonged upgrade time, confirmation error, task processing interruption, etc., to avoid uncertainty, reduce the time occupied, and avoid task processing interruption.

Active Publication Date: 2022-06-17
北京浪潮数据技术有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the prior art, the end of the asynchronous process, such as updating the code of the asynchronous process, often adopts the following method when the asynchronous process needs to be terminated: 1. Kill (end) all the existing asynchronous workers, but there may be The asynchronous worker processing the task will interrupt the task processing and bring a series of other subsequent problems; 2. Make sure that the asynchronous worker is not processing the task by certain means, and then kill it, but if the current asynchronous task to be processed is relatively Many, asynchronous workers may continue to direct tasks and cannot be killed, and confirmation is a very troublesome thing, and confirmation errors often occur, causing task processing to be interrupted and causing a series of subsequent problems; 3. By giving asynchronous The worker sends a signal, and the asynchronous worker decides when to exit, but in this case, it is necessary to constantly confirm whether the asynchronous worker has exited, the process is cumbersome and will prolong the upgrade time

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
  • A method and device for ending an asynchronous process of a cloud platform, and a cloud platform server
  • A method and device for ending an asynchronous process of a cloud platform, and a cloud platform server
  • A method and device for ending an asynchronous process of a cloud platform, and a cloud platform server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0045] Please refer to figure 1 , figure 1 This is a flowchart of a method for terminating an asynchronous process of a cloud platform provided by an embodiment of the present invention. The method can include:

[0046] Step 101: When the asynchronous process is started, obtain the corresponding first heartbeat value.

[0047] W...

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 cloud platform asynchronous process end method, device, cloud platform server and computer-readable storage medium. The method includes: when the asynchronous process starts, obtain the corresponding first heartbeat value; receive the current heartbeat value from the target task queue. Before the asynchronous task, judge whether there is a preset correspondence between the second heartbeat value corresponding to the current asynchronous task and the first heartbeat value; wherein, the target task queue is the task queue corresponding to the asynchronous process; if not, exit the process; the present invention By setting the heartbeat values ​​corresponding to the asynchronous tasks and asynchronous processes, the asynchronous process can automatically exit and end by comparing the heartbeat values, so that the asynchronous process can be ended simply and conveniently by adjusting the heartbeat value corresponding to the asynchronous task or asynchronous process, reducing asynchrony The time taken by the end process of the process, and avoiding the interruption of task processing, further enables the smooth upgrade of the asynchronous process.

Description

technical field [0001] The present invention relates to the technical field of cloud platforms, and in particular, to a cloud platform asynchronous process termination method, device, cloud platform server and computer-readable storage medium. Background technique [0002] With the development of science and technology in modern society, the application of cloud platform is becoming more and more extensive. Cloud platforms often need to process asynchronous tasks. For example, when a cloud platform is deployed, it generally decides how many asynchronous processes (ie, asynchronous daemons, asynchronous workers) to start to receive tasks and perform processing based on the deployed computing nodes. [0003] In the prior art, when the asynchronous process is terminated, such as updating the code of the asynchronous process, the asynchronous process needs to be terminated in the following manner: 1. Kill (terminate) all existing asynchronous workers, but there may be Asynchron...

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/48G06F8/65
CPCG06F9/485G06F8/65
Inventor 周恒秦海中
Owner 北京浪潮数据技术有限公司