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

Execution method, execution device and execution system for ordered tasks

An execution method and execution device technology, applied in the computer field, can solve problems such as high code complexity, poor readability, and high repeatability, and achieve the effect of reducing complexity and ensuring consistency

Pending Publication Date: 2021-03-26
YONYOU NETWORK TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the high complexity of the code, poor readability, high maintenance cost, and lack of generality make the judgment logic in the business code highly complex, highly repetitive, and poorly usable, so that it is impossible to guarantee the execution of orderly tasks and tasks Unified call of idempotent business logic after failure

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
  • Execution method, execution device and execution system for ordered tasks
  • Execution method, execution device and execution system for ordered tasks
  • Execution method, execution device and execution system for ordered tasks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Such as figure 1 As shown, Embodiment 1 provides a method for executing an ordered task, including:

[0052] Step 102, receiving task information, wherein the task information carries a group number and a serial number;

[0053] Step 104, according to the group number and serial number, sort and store the task information in groups to generate a task group to be executed;

[0054] Step 106, obtaining the working status of the task executor group;

[0055] Step 108, based on the idle state of the task executor group, sending the to-be-executed task group to the task executor group, so that the task executor group can execute the to-be-executed task group;

[0056] Step 110, grouping and storing the task information completed by the task executor group into the completed task set.

[0057] The execution method of the ordered task provided by the embodiment of the present invention receives the task information carrying the group number and the serial number, so as to g...

Embodiment 2

[0065] Such as figure 2 As shown, on the basis of Embodiment 1, Embodiment 2 provides a method for executing an ordered task, and further defines the steps for the task executor group to execute the task group to be executed, specifically including:

[0066] Step 202, acquiring task information in the to-be-executed task group;

[0067] Step 204, according to the serial number of the task information, judge whether the previous task information of the current task information exists in the completed task set, if the judgment result is yes, execute step 206, and if the judgment result is no, execute step 208;

[0068] Step 206, based on the judgment result that the previous task information exists in the completed task set, execute the current task information;

[0069] Step 208, based on the judgment result that the previous task information does not exist in the completed task set, continue to execute the previous task information.

[0070] In this embodiment, when the task ...

Embodiment 3

[0077] Such as image 3 As shown, on the basis of any of the above-mentioned embodiments, Embodiment 3 provides an execution method for ordered tasks, and further defines the steps of grouping and sorting the execution results of the task executor group and storing them in the completed task set, specifically including :

[0078] Step 302, acquiring the execution status of the completed task information, wherein the execution status includes execution success and execution failure;

[0079] Step 304, judging whether the execution status of the task information is successful execution, if the judging result is yes, go to step 306, and if the judging result is no, go to step 308;

[0080] Step 306, storing task information in a successful task set;

[0081] Step 308, storing the task information in the failed task set.

[0082] In this embodiment, when the execution results of the task executor group are grouped and sorted and stored in the completed task set, the execution s...

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 embodiment of the invention provides an execution method, an execution device and an execution system for ordered tasks. The method comprises the following steps: receiving task information; grouping, sequencing and storing the task information; obtaining the working state of the task actuator group; sending the to-be-executed task group to the task executor group based on the idle state of the task executor group; and grouping, sequencing and storing the task information executed by the task executor group into a completion task set. The received task information is grouped, sorted and stored according to the group number and the serial number, and the task information executed by the task executor group is grouped, sorted and stored in the completed task set, so that the problem thata plurality of ordered tasks are asynchronously executed in sequence in a distributed system is solved; therefore, the consistency of the task information in the task group is ensured.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method for executing ordered tasks, a device for executing ordered tasks, a system for executing ordered tasks, and a readable storage medium. Background technique [0002] Due to the nature of distributed systems, different tasks may be performed in multiple application servers. However, there are some business scenarios that need to ensure the orderly execution of a group of tasks, and the consistency of such a group of related and sequential tasks. [0003] In related technologies, it is mostly judged in the business code whether to execute idempotent logic. However, the high complexity of the code, poor readability, high maintenance cost, and lack of generality make the judgment logic in the business code highly complex, highly repetitive, and poorly usable, so that it is impossible to guarantee the execution of orderly tasks and tasks Unified call of idempotent business ...

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/48G06F9/50
CPCG06F9/4881G06F9/5038
Inventor 丁贤明
Owner YONYOU NETWORK TECH