CN102508716A - Task control device and task control method - Google Patents

Task control device and task control method Download PDF

Info

Publication number
CN102508716A
CN102508716A CN2011103001534A CN201110300153A CN102508716A CN 102508716 A CN102508716 A CN 102508716A CN 2011103001534 A CN2011103001534 A CN 2011103001534A CN 201110300153 A CN201110300153 A CN 201110300153A CN 102508716 A CN102508716 A CN 102508716A
Authority
CN
China
Prior art keywords
task
dependence
independent
carry out
tasks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011103001534A
Other languages
Chinese (zh)
Other versions
CN102508716B (en
Inventor
焦剑
廖青松
张璋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
You Pu Information Technology Co., Ltd of UFSOFT
Original Assignee
Yonyou Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yonyou Software Co Ltd filed Critical Yonyou Software Co Ltd
Priority to CN201110300153.4A priority Critical patent/CN102508716B/en
Publication of CN102508716A publication Critical patent/CN102508716A/en
Application granted granted Critical
Publication of CN102508716B publication Critical patent/CN102508716B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a task control device and a task control method. The task control device comprises a task classification module and a task execution module, wherein the task classification module is used for classifying tasks to be executed into independent tasks and tasks with a dependence relation; and the task execution module is used for executing the independent tasks and classifying the tasks with the dependence relation into one or more task queues according to the dependence relation between the tasks, and executing the tasks in each task queue according to the dependence relation between the tasks in each task queue. According to the invention, the tasks are classified and the execution way of the tasks is determined according to the classification result, so that the tasks can be smoothly executed and the execution efficiency is ensured.

Description

Task control device and task control method
Technical field
The present invention relates to field of computer technology, in particular to a kind of task control device and a kind of task control method.
Background technology
All can use the device of carrying out and managing asynchronous task in general enterprise application and other various signal conditioning packages, asynchronous task is meant in the application system according to one section specific business processing program of specifying scheduling scheme to carry out.Management devices of the execution of these asynchronous task and managerial demand is managed and is provided with.
Task device in more existing application systems is generally all adopted the mode that serial is carried out, cannot the concurrent execution of many formations; Perhaps use the thread of given number; Form a thread pool, adopt I/O to accomplish mechanism such as port, multi-thread concurrent Processing tasks; Taking-up task from waiting task one by one in each thread, the mode of carrying out one by one.
And in practical application; Between a plurality of tasks to be carried out is to have certain relation; There is strict sequencing in some; The task executions in back depends on previous or a plurality of task executions results, therefore needs to carry out in sequence, cannot simply adopt multi-thread concurrent to carry out; Then there is not precedence relationship in some task to be carried out, as long as carried out just passablely, can adopt the mode of the concurrent execution of dividing into groups, the demand in this actual scene, and existing systems can't satisfy with device.
Therefore, need a kind of new device that is used for task management, can carry out grouping management, carry out the concurrent execution of task respectively and carry out the efficient that the lifting task is carried out with order task.
Summary of the invention
Problem to be solved by this invention is, a kind of new device that is used for task management is provided, and can carry out grouping management to task, carries out the concurrent execution of task respectively and carries out the efficient that the lifting task is carried out with order.
In view of this, the present invention provides a kind of task control device, comprising: the classification of task module is divided into independent task and the task with dependence with waiting to execute the task; Task execution module; Carry out said independent task; And according to each other dependence; Said task division with dependence in one or more task queues, and according to the dependence between the task in each task queue, is carried out the task in said each task queue in order.Through this technical scheme, task to be divided, and decide the task executions mode according to results, the task that both guaranteed can be carried out smoothly, has guaranteed the efficient of carrying out again.
In technique scheme, preferably, during the arbitrary task execution error of said task execution module in being in task queue, the parameter according to preset judges whether to continue to carry out other tasks in the same task queue.Through this technical scheme, can freely control in the task with dependence, task action result is to the influence of follow-up work.
In technique scheme, preferably, also comprise: hang up control module; When executing the task pending operation, for said independent task, when said independent task is when waiting for the state of carrying out; Allow to carry out pending operation, for task, according to said parameter with dependence; Whether judgement continues to carry out other tasks in the same formation said after having the task execution error of dependence, and in judged result when being, allow to carry out pending operation; For not the time, forbid carrying out pending operation in judged result.Through this technical scheme, guaranteed the smooth execution of task suspension operation.
In technique scheme, preferably, said task execution module also writes down the task executions result in said each task queue; Said task control device also comprises: repeat control module, repeat when operation executing the task, judge whether to exist and wait to repeat the task executions result; And only in judged result when being, for said independent task, carry out said independent task; For task with dependence; According to other tasks in the same formation whether still in commission, and in judged result when being, forbid repeating said task with dependence; For not the time, restart to carry out the task in the said same formation in judged result.Through this technical scheme, the task that guaranteed can repeat smoothly.
In technique scheme, preferably, said task execution module carries out in order said independent task according to preset priority and/or the serial number of giving said independent task.Through this technical scheme, when resource-constrained, can guarantee can not occur stopping up or other mistakes reasonably controlling the execution of independent task.
The present invention also provides a kind of task control method, comprising: step 202 is divided into independent task and the task with dependence with waiting to execute the task; Step 204 is carried out said independent task; Step 206 according to dependence each other, in one or more task queues, and according to the dependence between the task in each task queue, is carried out the task in said each task queue with said task division with dependence in order.Through this technical scheme, task to be divided, and decide the task executions mode according to results, the task that both guaranteed can be carried out smoothly, has guaranteed the efficient of carrying out again.
In technique scheme, preferably, said step 206 also comprises: during arbitrary task execution error in being in task queue, the parameter according to preset judges whether to continue to carry out other tasks in the same task queue.Through this technical scheme, can freely control in the task with dependence, task action result is to the influence of follow-up work.
In technique scheme, preferably, also comprise: when executing the task pending operation, for said independent task; When said independent task is when waiting for the state of carrying out, allow to carry out pending operation, for task with dependence; According to said parameter, judge said whether continue to carry out other tasks in the same formation after having the task execution error of dependence, and in judged result when being; Allow to carry out pending operation, for not the time, forbid carrying out pending operation in judged result.Through this technical scheme, guaranteed the smooth execution of task suspension operation.
In technique scheme, preferably, said step 206 also comprises: write down the task executions result in said each task queue; The task control method also comprises: repeat when operation executing the task, judge whether to exist and wait to repeat the task executions result, and only in judged result when being; For said independent task; Carry out said independent task, for task, whether still in commission according to other tasks in the same formation with dependence; And in judged result when being; Forbid repeating said task, for not the time, restart to carry out the task in the said same formation in judged result with dependence.Through this technical scheme, the task that guaranteed can repeat smoothly.
In technique scheme, preferably, said step 204 specifically comprises: according to preset priority and/or the serial number of giving said independent task, come to carry out in order said independent task.Through this technical scheme, when resource-constrained, can guarantee can not occur stopping up or other mistakes reasonably controlling the execution of independent task.
Through above technical scheme; Can realize a kind of task control device and a kind of task control method, through the relation between setting asynchronous task to be carried out, reach optimization, efficiently, correctly, task executive mode flexibly; And realized the management function of multiple asynchronous task; According to the priority dependence between task, improved the efficient that asynchronous task is carried out, satisfy the management and control demand that multiple-task is carried out demand and task is carried out.
Description of drawings
Fig. 1 is the block diagram of task control device according to an embodiment of the invention;
Fig. 2 is the process flow diagram of task control method according to an embodiment of the invention;
Fig. 3 is the workflow diagram of task control device according to an embodiment of the invention;
Fig. 4 is the workflow diagram of task control device according to an embodiment of the invention;
Fig. 5 is the workflow diagram of task control device according to an embodiment of the invention;
Fig. 6 is the workflow diagram of task control device according to an embodiment of the invention;
Fig. 7 is the task status conversion synoptic diagram of task control device according to an embodiment of the invention;
Fig. 8 is the interface sectional drawing of task control device according to an embodiment of the invention;
Fig. 9 is the interface sectional drawing of task control device according to an embodiment of the invention.
Embodiment
In order more to be expressly understood above-mentioned purpose of the present invention, feature and advantage, the present invention is further described in detail below in conjunction with accompanying drawing and embodiment.
Set forth a lot of details in the following description so that make much of the present invention, still, the present invention can also adopt other to be different from other modes described here and implement, and therefore, the present invention is not limited to the restriction of following disclosed specific embodiment.
Fig. 1 is the block diagram of task control device according to an embodiment of the invention.
As shown in Figure 1, the present invention provides a kind of task control device 100, comprising: classification of task module 102 is divided into independent task and the task with dependence with waiting to execute the task; Task execution module 104; Carry out said independent task; And according to each other dependence; Said task division with dependence in one or more task queues, and according to the dependence between the task in each task queue, is carried out the task in said each task queue in order.Through this technical scheme, task to be divided, and decide the task executions mode according to results, the task that both guaranteed can be carried out smoothly, has guaranteed the efficient of carrying out again.
In technique scheme, during the arbitrary task execution error of said task execution module 104 in being in task queue, the parameter according to preset judges whether to continue to carry out other tasks in the same task queue.Through this technical scheme, can freely control in the task with dependence, task action result is to the influence of follow-up work.
In technique scheme, also comprise: hang up control module 106, when executing the task pending operation; For said independent task,, allow to carry out pending operation when said independent task is when waiting for the state of carrying out; For task,, judge said whether continue to carry out other tasks in the same formation after having the task execution error of dependence according to said parameter with dependence; And in judged result when being; Allow to carry out pending operation, for not the time, forbid carrying out pending operation in judged result.Through this technical scheme, guaranteed the smooth execution of task suspension operation.
In technique scheme, said task execution module 104 also writes down the task executions result in said each task queue; Said task control device also comprises: repeat control module 108, repeat when operation executing the task, judge whether to exist and wait to repeat the task executions result; And only in judged result when being, for said independent task, carry out said independent task; For task with dependence; According to other tasks in the same formation whether still in commission, and in judged result when being, forbid repeating said task with dependence; For not the time, restart to carry out the task in the said same formation in judged result.Through this technical scheme, the task that guaranteed can repeat smoothly.
In technique scheme, said task execution module 104 carries out in order said independent task according to preset priority and/or the serial number of giving said independent task.Through this technical scheme, when resource-constrained, can guarantee can not occur stopping up or other mistakes reasonably controlling the execution of independent task.
Fig. 2 is the process flow diagram of task control method according to an embodiment of the invention.
As shown in Figure 2, the present invention also provides a kind of task control method, comprising: step 202 is divided into independent task and the task with dependence with waiting to execute the task; Step 204 is carried out said independent task; Step 206 according to dependence each other, in one or more task queues, and according to the dependence between the task in each task queue, is carried out the task in said each task queue with said task division with dependence in order.Through this technical scheme, task to be divided, and decide the task executions mode according to results, the task that both guaranteed can be carried out smoothly, has guaranteed the efficient of carrying out again.
In technique scheme, said step 206 also comprises: during arbitrary task execution error in being in task queue, the parameter according to preset judges whether to continue to carry out other tasks in the same task queue.Through this technical scheme, can freely control in the task with dependence, task action result is to the influence of follow-up work.
In technique scheme, also comprise: when executing the task pending operation, for said independent task; When said independent task is when waiting for the state of carrying out, allow to carry out pending operation, for task with dependence; According to said parameter, judge said whether continue to carry out other tasks in the same formation after having the task execution error of dependence, and in judged result when being; Allow to carry out pending operation, for not the time, forbid carrying out pending operation in judged result.Through this technical scheme, guaranteed the smooth execution of task suspension operation.
In technique scheme, said step 206 also comprises: write down the task executions result in said each task queue; The task control method also comprises: repeat when operation executing the task, judge whether to exist and wait to repeat the task executions result, and only in judged result when being; For said independent task; Carry out said independent task, for task, whether still in commission according to other tasks in the same formation with dependence; And in judged result when being; Forbid repeating said task, for not the time, restart to carry out the task in the said same formation in judged result with dependence.Through this technical scheme, the task that guaranteed can repeat smoothly.
In technique scheme, said step 204 specifically comprises: according to preset priority and/or the serial number of giving said independent task, come to carry out in order said independent task.Through this technical scheme, when resource-constrained, can guarantee can not occur stopping up or other mistakes reasonably controlling the execution of independent task.
Below the principle of the task control device in the embodiments of the invention is described.
1) rule of task call:
Be submitted to task object in the task control device of present embodiment and need realize the unified standard interface that calls, interface is described below:
Figure BDA0000096303600000071
As long as realize the object of this interface, all can be submitted in the task control device of present embodiment like this, task need be performed the time, the task control device of present embodiment is just passable as long as call the Do method according to this interface specification.
Task object adopts the binary sequence mode that the task object serializing is stored in the database.
When task is carried out, adopt the unserializing mode that task object is loaded in the internal memory again, according to the Do method of the interface of interface specification calling task object.
Below be the explanation of serializing/unserializing:
Serializing: convert the object in the calculator memory to text or binary data for data storage.
Unserializing: convert text on the storage medium or binary message in the calculator memory object.
2) the contextual storage of task object:
The information and the data of some system environmentss when context of task object is the task submission; For example submitter, submission time; Current Systems Operators etc. are imported environmental context into, and the binary sequence sequence of algorithmsization that adopts standard is in database; Task adopts scale-of-two unserializing algorithm to load object again when carrying out, rewrite context object.
3) task object is submitted to the interface (CreateTask method) of task control device:
This interface is called by task control device user of service:
Import into: task object,
Context object,
The task coding,
Task names,
Whether formation,
The task that this task relied on,
Classification of task,
Whether the formation execution error continues,
The formation mission failure attempts carrying out number of times,
The executed number of times,
Whether task can repeat,
This interface has stipulated that task is submitted to the standard of task control device.
4) for task object corresponding state is provided:
Task object comprises following several kinds of states: unsettled, wait for to carry out, carry out in, finish, hang up.
Unsettled: as to represent task record just to be submitted in the device and be persisted to database.
Wait for and carrying out: behind environmental test, task status becomes waits for execution.
In the execution: the expression task is being called manner of execution according to interface specification, but also is not finished.
End/completion: the expression task is finished.
Hang up: the expression task is not wanted to be performed, but carries out possibly later on, carries out and hangs up action.(can activate after the hang-up, activate the back state and carry out) for waiting for.
The rule of 5) formation task executions sequencing:
< 1 >: task is in being submitted to the task control device and be persisted in the task list of database, and the mode according to maximum serial number+1 deposits serial number in.Promptly the mode of employing+1 provides serial number.
According to whether formation of task; Whether there is dependence; Set up corresponding task and carry out formation, will have the task of dependence to be included into different formations, do not have the task of dependence to distribute the task that thread resources is carried out does not have dependence according to task priority, from thread pool.
< 2 >: state can not carried out in formation for the task of " completion " and " hang-up " in the task control device.
Having only state is that the task of " wait for carry out " just can be carried out in formation.
6) setting of the task (independent task) that the task of dependence and not having relies on and the rule that task queue is created are arranged:
The task (formation task) that dependence is arranged: a plurality of tasks that relation of interdependence is arranged, create an independent task queue, these tasks are put in this formation carried out, according to the dependence ordering, the priority of task that is not relied on is performed;
The task (independently non-formation task) that does not have dependence: expression is carried out with other task irrelevant; Priority according to these independent tasks; From available thread pool, distribute the independent concurrent execution of thread resources, the task that serial number is little and priority is high is performed earlier.
7) the task executions result carries out influence to formation:
Whether continue=True if task is set to the formation execution error, after current task was carried out failure in the expression formation, the follow-up work in the formation continued to carry out.
Whether the formation execution error continues=False, and after current task was carried out failure in the expression formation, this formation suspended the follow-up work of carrying out in the formation and do not continue to carry out.
Submit the parameter of importing in the interface to through task: whether the formation execution error continues to come the task implementation status of controlling queue.
8) task suspension and activation rule:
The hang-up of the non-formation task of independent task: just can hang up when task status is merely the wait execution, hang up the back task and can not carry out, task status is can activate after the hang-up, and the activation back is the wait execution.
The hang-up of the formation task of dependence is arranged: when whether the formation execution error continues=True, just can hang up the formation task, and task status is merely the wait execution.Formation task after the hang-up is no longer carried out; Can activate after the hang-up, activate the back and carry out for waiting for.If whether the formation execution error continues=False, cannot hang up the task in the formation.
Setting that 9) can repeat and executing rule:
Repeating of independent task: carried out (being that execution result has record) when task, and just can repeat, through repeating function, task is carried out once more.
The repeating of formation task that dependence is arranged: carried out (being that execution result has record) when task and just can repeat through repeating function; The formation of this task will be carried out once more, and formation will be executed the task according to Cahn-Ingold-Prelog sequence rule (minimum serial number is preferential).
10) the formation mission failure can be carried out the number of times rule:
The formation mission failure can attempt carrying out number of times: failed if show the execution of formation type task, can continue the number of times of attempting carrying out.
The executed number of times: after writing down present formation type task and carrying out failure, the number of times that has repeated.
If do not limit the execution number of times: the formation mission failure can be carried out number of times and be set to 0, and the executed number of times is set to-1.Each task executes, the still success of no matter failing, and the executed number of times increases by 1.
The condition that executing the task once more needs to satisfy is: the formation mission failure can be carried out number of times-executed number of times>0, if no longer satisfy this condition, this task is no longer attempted carrying out again.
11) data structure of task object and task action result is described below:
Task and task action result are 1 many-many relationship:
The data structure of task object:
The field title Remarks
The task coding Character string
Task names Character string
Task status Enumerate: unsettled, wait for to carry out, carry out in, finish, hang up
Whether formation Boolean's (true: table is formation, false: table is not formation)
The task queue classification Character string
Whether the formation execution error continues Boolean (true: table can, false: table cannot)
Task object Binary object
Task is carried out context Binary object
The formation mission failure can attempt carrying out number of times Integer (0 representes not limited number of times)
The executed number of times Integer (1 representes not limited number of times)
Task can repeat Boolean (true: table can, false: table cannot)
Serial number Lint-long integer
The data structure of task action result:
The field title Remarks
Task ID The unique identification of task
Task is carried out the start time Time on date
Task is carried out the concluding time Time on date
Whether task is carried out successful Boolean (true: the telogenesis merit, false: table is unsuccessful)
Task execute exception information Character string
12) the execution flow process of task control device is described below:
As shown in Figure 3, the task executions flow process has been described:
Step 302 is carried out the establishment of calling task through the task creation device;
Step 304 after a task is submitted to the task control device, can be checked its legitimacy;
Step 306 is through can setting the tasks and need in formation, carry out or independent carrying out of task according to the characteristics such as dependence of task after the inspection;
Step 308 is the then priority of independent carrying out of the task of basis of executing the task separately, and the available resources in the existing thread pool, these independent tasks of concurrent execution;
Step 310, if the formation task, then according to the dependence of task, find its should under task queue, do not exist this formation then to create new formation;
Step 312 will be sorted according to dependence by a group task of dependence and push a formation, and what do not relied on is performed earlier;
Step 314 is executed the task;
Step 316 after task is carried out end, judges whether to be the formation task, and the independent task of non-formation directly is changed to completion;
Step 318, the task of formation then will further be judged its execution result and attribute;
Step 320 if run succeeded, is then carried out the next task in the formation;
Step 322 if carry out failure, then determines whether continuing to attempt according to carrying out the configuration of whether heavily attempting row of failing;
Step 324 if allow wrong back retry, then attempt again carrying out, but the number of times of attempting is no more than preset number of times restriction, if do not allow, then directly finishes this formation.
As shown in Figure 4, the flow process of task suspension has been described:
Step 402 is being carried out pending operation to task, and the state of this task of inspection if current state is " wait for and carrying out ", then gets into step 406 earlier, if current state is not " wait for and carrying out ", then gets into step 404;
Step 404 finishes and prompting can not be carried out pending operation;
Step 406, the hang-up of the task of " wait for and carrying out " needs the further attribute of this task of judgement;
Step 408, if the independent task of not having dependence then directly is provided with this task status and is " hang-up ", this task can not be performed;
Step 410 if being hung up of task is the formation task that dependence is arranged, then needs further to judge whether this task queue is the formation that mistake can continue to carry out; If, then get into step 408, hang up this task; If not, get into step 404, point out this generic task to hang up.
As shown in Figure 5, the flow process of mission-enabling has been described:
Step 502 when task is carried out activation manipulation, is at first checked the state of this task;
Step 504, having only current state is that the task of " hang-up " just can be activated, carry out " activations " operation after, task status is changed to " waiting for execution ";
Step 506, if the state of current task is not " hang-up ", then prompting can not activate.
As shown in Figure 6, the flow process that task is carried out has again been described:
Step 602; When task of manual appointment is carried out immediately again; Judge at first whether this task exists execution result, judge just whether this task was carried out, do not exist the task of execution result to carry out again; Task scheduling apparatus such as needs just can be carried out by after carrying out in the original plan;
Step 604 if there is execution result, carried out formation and is judged;
Step 606 is directly carried out just passable for the independent task of not having dependence again;
Step 608, and, judge the operation conditions of the residing formation of this task for the formation task that dependence is arranged, if in carrying out, then can not carry out again, need wait this formation trip to finish after;
Step 610 if the quene state under this task then need restart the residing whole formation of this task for being finished, begins to carry out again from first task of formation.
As shown in Figure 7, the state exchange of having described task concerns:
Just submitting the task of task control device to is " opening " state 702, and through becoming " wait for and carrying out " 704 after the inspection, the task of " wait for and carrying out " 704 can become the task of state for " hang-up " 706 through pending operation; And the task of " hang-up " 706 can become the task of " wait for and carrying out " 704 once more through activation manipulation; " wait for and carrying out " that 704 task is changed to " in the execution " 708 when being begun to carry out, successful execution becomes " completion " 710 states after accomplishing; If carry out unsuccessful; Can optionally be changed to " wait for and carrying out " 704 once more according to user's configuration, so that attempt carrying out this task once more.The task control device provides the interface of monitor task implementation status, and is as shown in Figure 8, can view the state of task, and monitor task result's interface also is provided, as shown in Figure 9.
Serializing algorithm/unserializing is realized: employing be that binary sequenceization/unserializing technology of standard realizes.
Realize serial number+1: adding certainly of native system database realizes serial number+1.
In sum; Through above technical scheme, the relation of configuration task can define the self task of not having dependence and have the formation of dependence to execute the task flexibly; And the optimization that reaches the control of task executions process in the device and carry out efficient of the attribute through the definition task; Effectively satisfied various demand and scene in the real application systems, effectively utilized resource, the correctness, controllability, reliability and the task that have improved task are carried out the optimization of efficient.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a task control device is characterized in that, comprising:
The classification of task module is divided into independent task and the task with dependence with waiting to execute the task;
Task execution module; Carry out said independent task; And according to each other dependence; Said task division with dependence in one or more task queues, and according to the dependence between the task in each task queue, is carried out the task in said each task queue in order.
2. task control device according to claim 1 is characterized in that, during the arbitrary task execution error of said task execution module in being in task queue, the parameter according to preset judges whether to continue to carry out other tasks in the same task queue.
3. task control device according to claim 2 is characterized in that, also comprises:
Hang up control module, when executing the task pending operation, for said independent task; When said independent task is when waiting for the state of carrying out, allow to carry out pending operation, for task with dependence; According to said parameter, judge said whether continue to carry out other tasks in the same formation after having the task execution error of dependence, and in judged result when being; Allow to carry out pending operation, for not the time, forbid carrying out pending operation in judged result.
4. task control device according to claim 2 is characterized in that, said task execution module also writes down the task executions result in said each task queue;
Said task control device also comprises:
Repeat control module, repeat when operation executing the task, judge whether to exist and wait to repeat the task executions result; And only in judged result when being, for said independent task, carry out said independent task; For said task with dependence; According to other tasks in the same formation whether still in commission, and in judged result when being, forbid repeating said task with dependence; For not the time, restart to carry out the task in the said same formation in judged result.
5. according to each described task control device in the claim 1 to 4, it is characterized in that said task execution module carries out in order said independent task according to preset priority and/or the serial number of giving said independent task.
6. a task control method is characterized in that, comprising:
Step 202 is divided into independent task and the task with dependence with waiting to execute the task;
Step 204 is carried out said independent task;
Step 206 according to dependence each other, in one or more task queues, and according to the dependence between the task in each task queue, is carried out the task in said each task queue with said task division with dependence in order.
7. task control method according to claim 6 is characterized in that, said step 206 also comprises:
During arbitrary task execution error in being in task queue, the parameter according to preset judges whether to continue to carry out other tasks in the same task queue.
8. task control method according to claim 7 is characterized in that, also comprises:
When executing the task pending operation, for said independent task,, allow to carry out pending operation when said independent task is when waiting for the state of carrying out,
For task,, judge said whether continue to carry out other tasks in the same formation after having the task execution error of dependence according to said parameter with dependence; And in judged result when being; Allow to carry out pending operation, for not the time, forbid carrying out pending operation in judged result.
9. task control method according to claim 7 is characterized in that, said step 206 also comprises:
Write down the task executions result in said each task queue;
Said task control method also comprises:
Repeat when operation executing the task, judge whether to exist and wait to repeat the task executions result, and only in judged result when being,
For said independent task, carry out said independent task,
For said task with dependence; According to other tasks in the same formation whether still in commission, and in judged result when being, forbid repeating said task with dependence; For not the time, restart to carry out the task in the said same formation in judged result.
10. according to each described task control method in the claim 6 to 9, it is characterized in that said step 204 specifically comprises:
According to preset priority and/or the serial number of giving said independent task, come to carry out in order said independent task.
CN201110300153.4A 2011-09-29 2011-09-29 Task control device and task control method Active CN102508716B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110300153.4A CN102508716B (en) 2011-09-29 2011-09-29 Task control device and task control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110300153.4A CN102508716B (en) 2011-09-29 2011-09-29 Task control device and task control method

Publications (2)

Publication Number Publication Date
CN102508716A true CN102508716A (en) 2012-06-20
CN102508716B CN102508716B (en) 2015-04-15

Family

ID=46220808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110300153.4A Active CN102508716B (en) 2011-09-29 2011-09-29 Task control device and task control method

Country Status (1)

Country Link
CN (1) CN102508716B (en)

Cited By (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077083A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for processing tasks
CN103279385A (en) * 2013-06-01 2013-09-04 北京华胜天成科技股份有限公司 Method and system for scheduling cluster tasks in cloud computing environment
CN104182295A (en) * 2013-05-27 2014-12-03 阿里巴巴集团控股有限公司 Data backup method and data backup device
CN104463482A (en) * 2014-12-16 2015-03-25 用友软件股份有限公司 Task allocation method and task allocation device
CN104461502A (en) * 2014-11-03 2015-03-25 广州汇讯营销咨询有限公司 Task management method and system based on Hadoop
CN104484167A (en) * 2014-12-05 2015-04-01 广州华多网络科技有限公司 Task processing method and device
CN104778074A (en) * 2014-01-14 2015-07-15 腾讯科技(深圳)有限公司 Calculation task processing method and device
CN105068912A (en) * 2015-07-29 2015-11-18 北京京东尚科信息技术有限公司 Method and apparatus for executing webpage task
CN105389207A (en) * 2015-11-06 2016-03-09 成都视达科信息技术有限公司 Adaptive data request processing method and apparatus, task scheduler and adaptive data request processing system
CN105389209A (en) * 2015-12-25 2016-03-09 中国建设银行股份有限公司 Asynchronous batch task processing method and system
CN105653365A (en) * 2016-02-22 2016-06-08 青岛海尔智能家电科技有限公司 Task processing method and device
CN105677331A (en) * 2015-12-30 2016-06-15 浙江大华系统工程有限公司 Task execution method and device
CN107015820A (en) * 2016-01-27 2017-08-04 阿里巴巴集团控股有限公司 Using startup method, device and server
CN107193659A (en) * 2017-05-24 2017-09-22 千寻位置网络有限公司 The system and design method of upkeep operation task
CN107239334A (en) * 2017-05-31 2017-10-10 清华大学无锡应用技术研究院 Handle the method and device irregularly applied
WO2018000678A1 (en) * 2016-06-27 2018-01-04 中兴通讯股份有限公司 Method and apparatus for module process scheduling
CN107633080A (en) * 2017-09-25 2018-01-26 联想(北京)有限公司 A kind of user task processing method and processing device
CN107818016A (en) * 2017-11-22 2018-03-20 苏州麦迪斯顿医疗科技股份有限公司 Server application design method, request event processing method and processing device
CN108021431A (en) * 2016-11-04 2018-05-11 广东亿迅科技有限公司 Method and its system based on web data interactive maintenance Hive
WO2018120171A1 (en) * 2016-12-30 2018-07-05 华为技术有限公司 Method, device and system for executing stored procedure
CN108509257A (en) * 2017-02-28 2018-09-07 苏宁云商集团股份有限公司 A kind of message treatment method and device based on multithreading
WO2019019249A1 (en) * 2017-07-24 2019-01-31 平安科技(深圳)有限公司 Method, apparatus and device for executing network request, and computer-readable storage medium
CN109313576A (en) * 2016-06-14 2019-02-05 微软技术许可有限责任公司 Striding equipment task execution
CN109447411A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Business Process Control method, apparatus, computer equipment and storage medium
CN109445929A (en) * 2018-11-16 2019-03-08 杭州数澜科技有限公司 A kind of method and system of scheduler task
CN109492019A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN109725994A (en) * 2018-06-15 2019-05-07 中国平安人寿保险股份有限公司 Data pick-up task executing method, device, terminal and readable storage medium storing program for executing
CN109725995A (en) * 2018-06-15 2019-05-07 中国平安人寿保险股份有限公司 Data pick-up task executing method, device, equipment and readable storage medium storing program for executing
CN110096346A (en) * 2019-03-29 2019-08-06 广州思德医疗科技有限公司 A kind of training mission processing method and processing device of more calculate nodes
CN111176819A (en) * 2019-12-31 2020-05-19 苏州长光华医生物医学工程有限公司 Sample test pipeline task scheduling method, system and computer storage medium
CN111580939A (en) * 2020-04-01 2020-08-25 微梦创科网络科技(中国)有限公司 Method and device for hierarchical asynchronous transaction processing
CN112000682A (en) * 2020-08-25 2020-11-27 北京达佳互联信息技术有限公司 Data synchronization task scheduling method, device, server and storage medium
CN112349361A (en) * 2021-01-08 2021-02-09 浙江太美医疗科技股份有限公司 Execution scheduling method, system and readable medium for clinical trial data processing task
CN112559156A (en) * 2020-12-23 2021-03-26 百果园技术(新加坡)有限公司 Multi-dependency task grouping management method, device, equipment and storage medium
CN112965794A (en) * 2021-02-19 2021-06-15 西安智周深鉴信息科技集团有限公司 Algorithm calling method, electronic device and storage medium
CN112988362A (en) * 2021-05-14 2021-06-18 南京蓝洋智能科技有限公司 Task processing method and device, electronic equipment and storage medium
CN113534750A (en) * 2020-04-15 2021-10-22 北京旷视机器人技术有限公司 Job scheduling method, device, system, equipment and medium under intensive storage
CN114021507A (en) * 2022-01-06 2022-02-08 苏州贝克微电子股份有限公司 Automatic integrated circuit parallel simulation method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1508682A (en) * 2002-12-17 2004-06-30 国际商业机器公司 Task Scheduling method, system and apparatus
CN1818868A (en) * 2006-03-10 2006-08-16 浙江大学 Multi-task parallel starting optimization of built-in operation system
CN101110041A (en) * 2007-08-23 2008-01-23 南京联创科技股份有限公司 Method for managing group task
CN101470626A (en) * 2007-12-27 2009-07-01 新奥特(北京)视频技术有限公司 Task ranking method
CN101510164A (en) * 2009-03-25 2009-08-19 北京中星微电子有限公司 Multi-service scheduling method, apparatus and system
CN101790721A (en) * 2008-06-30 2010-07-28 松下电器产业株式会社 Execution order decision device, execution order decision program, execution order decision circuit, and information processing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1508682A (en) * 2002-12-17 2004-06-30 国际商业机器公司 Task Scheduling method, system and apparatus
CN1818868A (en) * 2006-03-10 2006-08-16 浙江大学 Multi-task parallel starting optimization of built-in operation system
CN101110041A (en) * 2007-08-23 2008-01-23 南京联创科技股份有限公司 Method for managing group task
CN101470626A (en) * 2007-12-27 2009-07-01 新奥特(北京)视频技术有限公司 Task ranking method
CN101790721A (en) * 2008-06-30 2010-07-28 松下电器产业株式会社 Execution order decision device, execution order decision program, execution order decision circuit, and information processing device
CN101510164A (en) * 2009-03-25 2009-08-19 北京中星微电子有限公司 Multi-service scheduling method, apparatus and system

Cited By (50)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077083A (en) * 2013-01-09 2013-05-01 苏州亿倍信息技术有限公司 Method and system for processing tasks
CN104182295A (en) * 2013-05-27 2014-12-03 阿里巴巴集团控股有限公司 Data backup method and data backup device
CN104182295B (en) * 2013-05-27 2018-11-02 阿里巴巴集团控股有限公司 A kind of data back up method and device
CN103279385A (en) * 2013-06-01 2013-09-04 北京华胜天成科技股份有限公司 Method and system for scheduling cluster tasks in cloud computing environment
CN104778074A (en) * 2014-01-14 2015-07-15 腾讯科技(深圳)有限公司 Calculation task processing method and device
US10146588B2 (en) 2014-01-14 2018-12-04 Tencent Technology (Shenzhen) Company Limited Method and apparatus for processing computational task having multiple subflows
CN104461502A (en) * 2014-11-03 2015-03-25 广州汇讯营销咨询有限公司 Task management method and system based on Hadoop
CN104484167A (en) * 2014-12-05 2015-04-01 广州华多网络科技有限公司 Task processing method and device
CN104484167B (en) * 2014-12-05 2018-03-09 广州华多网络科技有限公司 Task processing method and device
CN104463482A (en) * 2014-12-16 2015-03-25 用友软件股份有限公司 Task allocation method and task allocation device
CN105068912A (en) * 2015-07-29 2015-11-18 北京京东尚科信息技术有限公司 Method and apparatus for executing webpage task
CN105389207A (en) * 2015-11-06 2016-03-09 成都视达科信息技术有限公司 Adaptive data request processing method and apparatus, task scheduler and adaptive data request processing system
CN105389209A (en) * 2015-12-25 2016-03-09 中国建设银行股份有限公司 Asynchronous batch task processing method and system
CN105677331A (en) * 2015-12-30 2016-06-15 浙江大华系统工程有限公司 Task execution method and device
CN107015820A (en) * 2016-01-27 2017-08-04 阿里巴巴集团控股有限公司 Using startup method, device and server
CN105653365A (en) * 2016-02-22 2016-06-08 青岛海尔智能家电科技有限公司 Task processing method and device
CN109313576A (en) * 2016-06-14 2019-02-05 微软技术许可有限责任公司 Striding equipment task execution
CN109313576B (en) * 2016-06-14 2021-09-24 微软技术许可有限责任公司 Cross-device task execution
WO2018000678A1 (en) * 2016-06-27 2018-01-04 中兴通讯股份有限公司 Method and apparatus for module process scheduling
CN108021431A (en) * 2016-11-04 2018-05-11 广东亿迅科技有限公司 Method and its system based on web data interactive maintenance Hive
US11182353B2 (en) 2016-12-30 2021-11-23 Huawei Technologies Co., Ltd. Stored-procedure execution method and device, and system
WO2018120171A1 (en) * 2016-12-30 2018-07-05 华为技术有限公司 Method, device and system for executing stored procedure
CN108509257A (en) * 2017-02-28 2018-09-07 苏宁云商集团股份有限公司 A kind of message treatment method and device based on multithreading
CN107193659A (en) * 2017-05-24 2017-09-22 千寻位置网络有限公司 The system and design method of upkeep operation task
CN107239334A (en) * 2017-05-31 2017-10-10 清华大学无锡应用技术研究院 Handle the method and device irregularly applied
WO2019019249A1 (en) * 2017-07-24 2019-01-31 平安科技(深圳)有限公司 Method, apparatus and device for executing network request, and computer-readable storage medium
CN107633080A (en) * 2017-09-25 2018-01-26 联想(北京)有限公司 A kind of user task processing method and processing device
CN107633080B (en) * 2017-09-25 2020-06-23 联想(北京)有限公司 User task processing method and device
CN107818016A (en) * 2017-11-22 2018-03-20 苏州麦迪斯顿医疗科技股份有限公司 Server application design method, request event processing method and processing device
CN109725995B (en) * 2018-06-15 2024-04-12 中国平安人寿保险股份有限公司 Method, device and equipment for executing data extraction task and readable storage medium
CN109725994A (en) * 2018-06-15 2019-05-07 中国平安人寿保险股份有限公司 Data pick-up task executing method, device, terminal and readable storage medium storing program for executing
CN109725995A (en) * 2018-06-15 2019-05-07 中国平安人寿保险股份有限公司 Data pick-up task executing method, device, equipment and readable storage medium storing program for executing
CN109725994B (en) * 2018-06-15 2024-02-06 中国平安人寿保险股份有限公司 Method and device for executing data extraction task, terminal and readable storage medium
CN109447411A (en) * 2018-09-26 2019-03-08 平安普惠企业管理有限公司 Business Process Control method, apparatus, computer equipment and storage medium
CN109492019B (en) * 2018-10-16 2024-03-08 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN109492019A (en) * 2018-10-16 2019-03-19 平安科技(深圳)有限公司 Service request response method, device, computer equipment and storage medium
CN109445929A (en) * 2018-11-16 2019-03-08 杭州数澜科技有限公司 A kind of method and system of scheduler task
CN110096346A (en) * 2019-03-29 2019-08-06 广州思德医疗科技有限公司 A kind of training mission processing method and processing device of more calculate nodes
CN111176819A (en) * 2019-12-31 2020-05-19 苏州长光华医生物医学工程有限公司 Sample test pipeline task scheduling method, system and computer storage medium
CN111176819B (en) * 2019-12-31 2021-07-09 苏州长光华医生物医学工程有限公司 Sample test pipeline task scheduling method, system and computer storage medium
CN111580939A (en) * 2020-04-01 2020-08-25 微梦创科网络科技(中国)有限公司 Method and device for hierarchical asynchronous transaction processing
CN111580939B (en) * 2020-04-01 2023-09-01 微梦创科网络科技(中国)有限公司 Method and device for processing transactions in hierarchical and asynchronous mode
CN113534750A (en) * 2020-04-15 2021-10-22 北京旷视机器人技术有限公司 Job scheduling method, device, system, equipment and medium under intensive storage
CN112000682A (en) * 2020-08-25 2020-11-27 北京达佳互联信息技术有限公司 Data synchronization task scheduling method, device, server and storage medium
CN112559156A (en) * 2020-12-23 2021-03-26 百果园技术(新加坡)有限公司 Multi-dependency task grouping management method, device, equipment and storage medium
CN112349361A (en) * 2021-01-08 2021-02-09 浙江太美医疗科技股份有限公司 Execution scheduling method, system and readable medium for clinical trial data processing task
CN112965794A (en) * 2021-02-19 2021-06-15 西安智周深鉴信息科技集团有限公司 Algorithm calling method, electronic device and storage medium
CN112965794B (en) * 2021-02-19 2024-03-22 西安智周深鉴信息科技集团有限公司 Algorithm calling method, electronic equipment and storage medium
CN112988362A (en) * 2021-05-14 2021-06-18 南京蓝洋智能科技有限公司 Task processing method and device, electronic equipment and storage medium
CN114021507A (en) * 2022-01-06 2022-02-08 苏州贝克微电子股份有限公司 Automatic integrated circuit parallel simulation method

Also Published As

Publication number Publication date
CN102508716B (en) 2015-04-15

Similar Documents

Publication Publication Date Title
CN102508716A (en) Task control device and task control method
CN101201753B (en) Method for configuring and managing multimode machine supervising engine
JP4935595B2 (en) Job management method, job management apparatus, and job management program
US8516492B2 (en) Soft partitions and load balancing
US20140137121A1 (en) Job management system and job control method
CN111078396B (en) Distributed data access method and system based on multitasking examples
TWI394074B (en) Methods, apparatus and computer programs for managing access to storage
CN110611707A (en) Task scheduling method and device
CN112181621A (en) Task scheduling system, method, equipment and storage medium
JP5619179B2 (en) Computer system, job execution management method, and program
CN104268022B (en) The resource allocation methods and system of process in a kind of operating system
CN102968303A (en) Program design system and program design method
CN114035925A (en) Workflow scheduling method, device and equipment and readable storage medium
CN107832130A (en) A kind of job stream scheduling of banking system performs method, apparatus and electronic equipment
CN114816730A (en) Robot process automation cloud service system and implementation method
WO2018133821A1 (en) Memory-aware plan negotiation in query concurrency control
CN106775975B (en) Process scheduling method and device
CN111651279A (en) Method and system for processing business process
CN113424152A (en) Workflow-based scheduling and batching in a multi-tenant distributed system
CN105446812A (en) Multitask scheduling configuration method
CN104794000B (en) A kind of job scheduling method and system
CN112748883B (en) IO request pipeline processing device, method, system and storage medium
CN115658248A (en) Task scheduling method and device, electronic equipment and storage medium
CN103078926A (en) Method and device as well as system for file accessing of distributed storage system
CN116737331A (en) Intelligent task flow arrangement method and platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160202

Address after: 100094 Beijing City, North Road, Haidian District, No. 68, building 2, floor 2

Patentee after: You Pu Information Technology Co., Ltd of UFSOFT

Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park

Patentee before: UFIDA Software Co., Ltd.