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

Method, system, storage medium and service cluster for advancing task state

A task state and state technology, applied in the Internet field, can solve problems such as unstable task state advancement, and achieve the effect of ensuring information reliability and stability.

Active Publication Date: 2019-11-01
北京中航鼎成科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention solves the technical problem of unstable task state advancement in the prior art by providing a method, system, storage medium, and service cluster for advancing task state

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, storage medium and service cluster for advancing task state
  • Method, system, storage medium and service cluster for advancing task state
  • Method, system, storage medium and service cluster for advancing task state

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The embodiment of the present invention solves the technical problem of unstable task state advancement in the prior art by providing a method, system, storage medium, and service cluster for advancing the task state. The general idea of ​​the present invention is as follows:

[0048] When the main state machine process instance is unavailable, determine a new main state machine process instance from M-1 state machine process instances other than the main state machine process instance; through the new main state machine process instance, from the public zookeeper directory Read the current task state of the target task, wherein the public zookeeper directory is set on another device different from the M physical machines; through the new master state machine process instance, the target task is changed from the current task state to Advance to the next task state.

[0049] Through the above technical solution, since the public zookeeper directory is set on another devi...

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 zookeeper based task state pushing method and system, a storage medium and a service cluster. The method is applied to a system comprising M physical machines, and is characterized in that each of the M physical machines starts a state machine process instance in allusion to the same target task, the state machine process instance of one of the M physical machines is set to be the main state machine process instance, a new main state machine process instance is determined from the (M-1) state machine process instances except for the main state machine process instance when the main state machine process instance is unavailable; the current task state of the target task is read from a public zookeeper directory through the new main state machine process instance, wherein the public zookeeper directory is set on another equipment which is different from the M physical machines; and pushing the target task from the current task state to a next task state through the new main state machine process instance. The technical problem of unstable pushing for the task state in the prior art is solved according to the invention.

Description

technical field [0001] The present invention relates to the technical field of the Internet, in particular to a method, system, storage medium and service cluster for advancing task status. Background technique [0002] In general, one of our business logics can be abstracted into a task (job), such as counting room data, some reports, etc. They will go through some states during execution, and in each state, the sub Logic, and then set the job state to the next state until the job is executed. The program used to promote this state change is called a state machine. Some existing task state machines are single-process. Whenever the state machine needs to be restarted, the physical machine needs to be restarted, or the machine fails, the state machine cannot continue to support the state advancement of the job, and the job will stop Execution, resulting in instability of job status advancement. Contents of the invention [0003] The embodiment of the present invention sol...

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): H04L29/08H04L12/24
CPCH04L41/0668H04L67/10H04L67/1029
Inventor 朱旋陈少杰张文明
Owner 北京中航鼎成科技有限公司