Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the application's protection.
The application can be used in numerous general or special purpose calculation element environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multiprocessor device, comprise distributed computing environment of above any device or equipment or the like.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in distributed computing environment, put into practice the application, in these distributed computing environment, by by communication network connected teleprocessing equipment execute the task.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium that comprises memory device.
One of main thought of the application can comprise, in the embodiment of the present application, at first need to obtain current task sign and virtual task sign, and then execution current task, the content of task is exactly that data mode according to current time generates some pending subtasks before deserving, promptly carry out current task exactly with generating experimental process task (pending task), can give several task identifications of this experimental process task correspondence simultaneously, and then obtain the sign of the experimental process task of these generations, and with the subtask of virtual task as this experimental process task, when scheduler task, just can whether finish the experimental process task of judging generation and whether finish like this by this virtual task.The embodiment of the present application is in the moment of operation current task, just the quantity according to storage file dynamically generates corresponding a plurality of subtasks, and these subtasks are set to father's task of virtual task, this just makes the method for the scheduler task among the application also can adapt in advance and not know the application scenes of current task content, thereby has improved the dirigibility and the adaptability of dispatching platform.
With reference to figure 1, show the process flow diagram of the method embodiment 1 of a kind of scheduler task of the application, can may further comprise the steps:
Step 101: obtain the current task sign of current task and the virtual task sign of virtual task.
In actual applications, the executive agent of present embodiment can be a dispatching platform, the program module of described current task and virtual task correspondence is two sections codes in the dispatching platform system, wherein, described current task sign and virtual task sign promptly are the unique names of these two sections codes, there is no direct association between these two tasks.The purpose of obtaining the current task sign promptly is in order to call the program module of current task correspondence, thereby the operation current task is so that can generate a plurality of subtasks (pending task) that need execution, and the particular content of these a plurality of pending tasks promptly represents to treat the processing of deal with data.Obtaining the virtual task sign then is for described virtual task being arranged to the subtask of all pending tasks, promptly be after the described pending task of operation, if can call the program module of virtual task correspondence, just represent that all pending tasks all are finished.
Step 102: according to the number of described current task sign and raw data source data storage file in data warehouse, dynamically generate a plurality of pending task of same number, described pending task is the subtask of described current task.
The embodiment of the present application is applicable to, the data in the raw data table in Foreground Data storehouse in being synchronized to the data warehouse of background system the time to the scheduling of task.The data class in Foreground Data storehouse is like the real time data of production system, this real time data exists with the form of raw data table, and the real time data in the raw data table need be split as a plurality of files with a raw data table and store when being synchronized to the data warehouse of background system.
In this step, can obtain the program module of current task correspondence according to described current task sign, the particular content of task promptly is a plurality of pending tasks that dynamically generate before deserving, and after dispatching platform calls described program module and carries out, can generate a plurality of pending tasks.Dispatching platform need be inquired about the storage file quantity of raw data table in data warehouse, promptly be that what files a raw data table is split as stores data in data warehouse, dynamically generate pending task (subtask that these a plurality of pending tasks are current task) with the same number of storage file quantity.Storage file quantity then be the real time data of raw data table synchronously to background system the time, need be stored as the number size of single file; The number of the pending task of Sheng Chenging equates with the number of the single file of storage in this step.The particular content of described pending task promptly is to store in the data storage file of the data sync in the raw data table of correspondence in the data warehouse.
Step 103: the subtask of described pending task is set to described virtual task.
Simultaneously, according to described virtual task sign can described pending task the subtask be set to described virtual task.Wherein, need to prove, set membership between current task, pending task and the virtual task, can embody by the form of initialize data table, for example, can represent father's task dispatching with the field value of field Parentid respectively in the initialize data table, this step is that the relation between virtual task sign and the pending task identification is written in the tables of data when realizing so.
Step 104: according to the scheduler task that concerns between described current task, pending task and the virtual task.
This step need be according to described current task, set membership between pending task and the virtual task three is come the scheduled for executing task, promptly be at first to call corresponding execution module according to the current task sign of described current task, carrying out the process of deserving preceding task promptly is the process that generates a plurality of pending tasks according to storage file quantity, the described a plurality of pending task of reruning, after described a plurality of pending tasks are finished, when carrying out described virtual task, whether dispatching platform just can be by having carried out the operation that described virtual task determines whether to have finished pending task.
In the present embodiment, in the ETL dispatching system, can dynamically generate pending task, make that the relation between each task can dynamically change in operational process according to the number of storage file quantity in operational process; Real time data in the raw data table in Foreground Data storehouse is brought in constant renewal in, therefore the storage file quantity in the data warehouse of background system also can real-time change, and can according to how many dynamic numbers of determining pending task of storage file quantity of real-time change in the embodiment of the present application, therefore the method for the scheduler task of present embodiment also is applicable to the application of special screne, also make the dispatching platform that uses the described method of present embodiment more flexibly with controlled, also improved dispatching platform simultaneously in the efficient of determining on each task set membership.
With reference to figure 2, show the process flow diagram of the method embodiment 2 of a kind of scheduler task of the application, can may further comprise the steps:
Step 201: set up mission bit stream table and task relation table, described mission bit stream table is used to store the details of described current task, pending task and virtual task, and described task relation table is used to store the relation between described current task, pending task and the virtual task.
In the present embodiment, need at first set up mission bit stream table and task relation, described mission bit stream table can be stored the details of each task, these details can comprise each task identification, and the title of corresponding program module, content of parameter that need preset etc. in addition, the object lesson of described mission bit stream table can be as shown in table 1:
Table 1
Field name |
Field type |
Describe |
Sample |
Id |
Number |
Task id, unique identification, except the task id interval 1000 to 9999 changes, other task id is constant. |
78778 |
Prgname |
Varchar2 (10 0) |
The title of task, dispatching system are carried out the module of this field and are come scheduler task |
Tbods.miss ion_create_ table |
... ... |
The middle omission should |
|
|
|
The no field of scheme |
|
|
Parameter value (PARAVALU E) |
Varchar2 (400) |
The parameter that execution module need import into |
?(′crm_sche?me_satisfac?tion′,′tbods′?) |
Wherein, described field " prgname " is used to identify the title of the program module of certain task correspondence, in table 1, this line data represents that task names is that the pairing program module name of task of Varchar2 (100) is called: Tbods.mission_create_table; Promptly be when carrying out the task of Varchar2 (100), calling program module: Tbods.mission_create_table then; Field " parameter value " is used to represent to carry out the content of parameter of these program module needs, for example, need the title of raw data table and the user's name of raw data table, wherein the raw data table title represents the real time data of foreground system from which raw data table is obtained, the user's name of raw data table is illustrated in to get access to this raw data table under which user, and the user's name of described raw data table title and raw data table can uniquely be determined a raw data table.
In actual applications, for example, the parameter that program module need be imported into can followingly be represented:
Table_name_para (raw data table title), owner (user's name of this raw data table)
(the title of table_name_para varchar2 raw data table
Owner varchar2, the user's name of----this raw data table
Jobid number, this is fixed value 1 for----
Auctionid number,-----this also is a fixed value 1
N number,---be defaulted as 1
I out number)----is rreturn value here, and 0 is successfully, and 1 is failure
Described task relation table can be used for storing the set membership between current task, pending task and the virtual task, and in practice, the structure of task relation table can be illustrated as table 2:
Table 2
Field name |
Field type |
Describe |
Sample |
Id |
Number |
Task id is corresponding one by one with the id in the mission bit stream table. |
78778 |
Parentid |
Number |
Father's task id is corresponding one by one with the id in the mission bit stream table. |
78779。The task of needing to move after the task of expression 78779 is finished is 78778 |
Gmtdate |
Date |
The date created of task |
20090807 |
SKEDID |
Number |
Tree id |
1. be used for distinguishing relation extents.Value is 1 o'clock, and the set membership between Field ID and the parentid is just set up. |
Wherein, " ID " in the task relation table is corresponding one by one with ID in the mission bit stream table, represents promptly that in table 2 details of task " 78778 " can be obtained from mission bit stream table (table 1); Simultaneously, " ID " in the task relation table and " parentid " field are represented the hierarchical relationship between each task, and the represented task of field " Parentid " is exactly father's task of the represented task of " ID " field; Value is 1 under field " SKEDID " default situations, i.e. the set membership of expression id field this moment and " Parentid " field is just set up; In table 2, promptly be that 78779 subtask is 78778, the task of needing to move after the task of expression 78779 is finished is 78778.
For example, when generating the pending task identification of pending task, can adopt following code:
create?sequence?MUL_FILE_MISSION
minvalue?1000
maxvalue?9999
start?with?3736
increment?by?1
nocache
cycle;
Above-mentioned code is promptly represented to create the sequence (sequence) that a name is called " MUL_FILE_MISSION ", adopts this sequence to generate the task identification that increases progressively of pending task again, and this task identification is exactly the value of field in the mission bit stream table " ID ".The scope of the value of its sign so just can be avoided conflicting mutually with other static task between 1000 to 9999.
Need to prove that described task relation table of setting up in this step and mission bit stream table can be after once setting up, follow-up repeated use, need not each dispatching platform all needs to set up task relation table and mission bit stream table when scheduler task.
Step 202: from the mission bit stream table that presets, obtain the current task sign of current task and the virtual task sign of virtual task.
When setting up described task relation table that presets and mission bit stream table, just specified the value of field " prgname ", this field value is represented current task sign and virtual task sign, promptly is the current task of correspondence in practice and the program module of virtual task.Like this, in this step, just can from the task relation table that presets and mission bit stream table, get access to the current task sign of current task and the virtual task sign of virtual task, can be between the background program module of these two sign correspondences without any relation.
For example, in this step, the current task that gets access to identifies corresponding program module a, and its task identification is 100, and virtual task identifies corresponding program module b, and its task identification is 101.The data signal of program module as shown in Figure 3.
Step 203: the program module of calling described current task correspondence according to described current task sign.
Calling the corresponding program module of current task sign, promptly is calling module a in the present embodiment, and the particular content of module a promptly be follow-up generation a plurality of pending tasks and sign thereof.
Step 204: the number of the data storage file of the raw data source that the program module of described correspondence is obtained foreground system the time synchronously to the data warehouse of background system.
When carrying out described program module a, the number of the data storage file when synchronous is carried out at the data warehouse to background system in the raw data source that just obtains foreground system, so that the follow-up corresponding pending task that generates same number of number according to this data storage file.In actual applications, can also obtain the location parameter of data storage file simultaneously in this step, the information of this location parameter comprises the positional information of file identification and data object, pairing file ID when file identification promptly is the storage of ORACLE data of database table, can be used for unique data storage file of determining, simultaneously, also need to comprise the positional information of raw data in data storage file, for example, the line number of raw data in data storage file etc., being used for raw data in the specified data storage file, promptly is the data object that follow-up pending task need be obtained when carrying out.Because the embodiment of the present application is specially implementation procedure how to determine execution sequence between current task, pending task and the virtual task, therefore, this location parameter need not at first to obtain, and obtains also passable in subsequent synchronization processes again.
Step 205: the pending task and the sign thereof that generate same number according to the number of described data storage file.
Need to prove, in the present embodiment, the number of described pending task need be identical with the number of data storage file, the corresponding pending task of each data storage file, generating the sign of pending task simultaneously, promptly is unique ID that determines a pending task.
Step 206: described pending task is set to the subtask of current task.
Described pending task is set to the subtask of current task, when specific implementation, both set memberships can be set in the task relation table that presets, for example, the program module b of the program module a of aforesaid current task correspondence and virtual task correspondence, after generating pending task c and d, its relation can be as shown in Figure 4.As can be seen, the operation between task is exactly after moving a module, to have generated subtask c and d in proper order, and this subtask c and d carry out after executing a task, and the subtask of pending task c and d is virtual task b simultaneously.
Step 207: the relation of described pending task and current task is stored in the described task relation table that presets.
The relation of described pending task and current task is stored in the task relation table, promptly is in practice two task identifications to be saved as set membership in the task relation table.
Step 208: the subtask of described pending task is set to described virtual task.
In this step, set up after the relation between each task, described program module a and b, and the relation between described pending task c and the d can be as shown in Figure 5.
Step 209: the set membership between described pending task and the virtual task is saved in the described task relation table that presets.
In this step, preserved after the set membership between pending task and the virtual task, data are just as shown in table 3 in the described task relation table that presets:
Table 3
Subtask sign Id |
Father's task identification Parentid |
Gmtdate |
skedid |
1001 |
100 |
The date on the same day |
1 (being defaulted as 1) |
1002 |
100 |
The date on the same day |
1 (being defaulted as 1) |
101 |
1001 |
The date on the same day |
1 (being defaulted as 1) |
101 |
1002 |
The date on the same day |
1 (being defaulted as 1) |
Wherein, the data in the table 3 are that program module a is inserted in the task relation table in the process of operation.Dispatching platform concerns the execution sequence that sets the tasks by writing down in the task relation table of task.As shown in table 3, the subtask of task 1001 is exactly 101, promptly be that task 1001 executes the task that the back dispatching system is just carried out sign 101,4 records all are the relation and the forms of expression that produces by execution of program modules a (promptly being designated 100 current task) time in the table 3.Wherein, being designated 1001 and 1002 pending task is exactly that module a generates.
Step 2010: the program module of described current task correspondence is carried out described a plurality of pending task according to the sign of described data storage file.
At this moment, program module a carries out described a plurality of pending task c and d, at this moment, and need be according to the mark location data storage file of data storage file, and get access to the particular content of data object according to the positional information of the data object that gets access to previously, to finish ETL process to raw data.
Step 2011: when executing described a plurality of pending task,, carry out described virtual task to finish current task scheduling according to the set membership between described pending task and the virtual task.
In this step, when executing described a plurality of pending task, can learn from the task relation table that the subtask that needs to carry out is a virtual task, just can think that at this moment current task scheduling finishes.
In the present embodiment, adopted the task relation table that presets and mission bit stream table to be provided with and to store relation between each task, dispatching system is when scheduler task, can execute the task with reference to the set membership between each task in the task relation table, so just realized that the pending task of dynamic generation can satisfy the demand of practical application scene, so that how many numbers according to the pending task that generates that can be real-time when actual motion comes scheduler task, improve the dispatching efficiency of dispatching platform, also promoted the dirigibility and the adaptability of dispatching platform.
With reference to figure 6, show the process flow diagram of the method embodiment 3 of a kind of scheduler task of the application, present embodiment can be understood as method with the application's scheduler task and is applied to a object lesson in the reality, the scheduling process of each task is an example so that the foreground commodity list information synchronization of Taobao is in data warehouse, and this method can may further comprise the steps:
Step 601: the related data when carrying out about the last time of described current task in the mission bit stream table that presets of deletion and the task relation table.
In the present embodiment, the mission bit stream table that employing is preset and the form of task relation table are preserved the relation between current task, pending task and the virtual task, and the details of each task.Set membership between data representation current task in the described task relation table, pending task and the virtual task can adopt field " parentid " and " id " to distinguish expression respectively.Described mission bit stream table is used to store the details of each task.In actual applications, it all is well-determined that described current task sign (for example 10445) and virtual task identify (for example 10762), the title that promptly is the program module of current task and virtual task correspondence all is changeless, all need to determine pending task and task definition thereof during each scheduler task according to storage file quantity real-time in the current background system, therefore, in the time of in the data warehouse that each time raw data table of foreground system is synchronized to background system, all need the mission bit stream table that at first last time preset and the related data in the task relation table all to delete.For example, last current task sign (parent_id) is 10445, then can in task relation table and mission bit stream table, find out all subtask information under this task with this id title, these subtasks promptly are to generate after last time, operation was finished, then with the information Delete All of these subtasks, so that in the process of this scheduler task, can in task information table and task relation table, write new subtask (pending task) information again.
The purpose of this step promptly is the details of the once pending task that had generated on deleting in the task information table, and the once father and son's task relation that had generated on deleting in the task relation table.
Step 602: obtain the current task sign of current task and the virtual task sign of virtual task.
In this step, need obtain current task sign (promptly being the task id of father's task of pending task), a true record in the Taobao's data warehouse that for example gets access in practice is as follows:
ID |
PRGNAME |
PARAVALUE |
10445 |
tbods.file_mul_table_new |
(′auction_auctions_stb′,′tbods′,$jobid,$actionid,$i) |
Wherein, what the id field was represented is the sign of this task in dispatching system, and prgname represents corresponding program module name, the parameter that need import into when paravlue represents to carry out this program module.The purpose of this record is exactly the pending task that will the produce subtask as task 10445.
Simultaneously, need obtain virtual task sign (promptly being the task id of the subtask of pending task), a true record in the data warehouse that for example gets access in practice is as follows:
ID |
PRGNAME |
PARAVALUE |
10762 |
tbodspart_create_exchange |
(′auction_auctions_stb′,′tbods′) |
The purpose of this record is exactly the pending task that will the produce father's task as task 10762, and after all pending task runs were finished, when operation virtual task 10762, the raw data table synchronous operation of expression foreground system was finished.
Step 603: dynamically generate a plurality of pending tasks according to described current task sign, described pending task is the subtask of described current task.
In the present example, the process that generates pending task and dynamically generate set membership between current task and the pending task is all in the corresponding program module of task 10445, after the module of 10445 correspondences is complete, just representing that dynamic set membership between current task and the pending task has generated and added is stored in 10445 these modules, wherein the id of pending task all between 1000 to 9999 circulation generate.
Step 604: the subtask of described pending task is set to described virtual task.
After pending task all generates, then need these pending tasks, current task and virtual task are inserted in the task relation table, to determine current task, pending task and the set membership of virtual task in dispatching system.
Step 605: the set membership between described pending task and the virtual task is saved in the described task relation table that presets.Step 606: according to the scheduler task that concerns between described current task, pending task and the virtual task.
The dispatching system of data warehouse can be carried out corresponding program module according to relation between each task that has generated.Present embodiment goes for any scheduler task once, current if scheduler task for the first time, and step 601 item needn't be carried out so, because the last task relation table and the content of mission bit stream table are sky.Task relation information that produces when deleting last scheduler task and letter information mutually, in the time of can guaranteeing this scheduler task, can the normal call current task and the program module of virtual task correspondence, thereby guaranteed the normal operation of dispatching platform, also can promote the dispatching efficiency of dispatching platform.
For aforesaid each method embodiment, for simple description, so it all is expressed as a series of combination of actions, but those skilled in the art should know, the application is not subjected to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
Corresponding with the method that the method embodiment 1 of a kind of scheduler task of above-mentioned the application is provided, referring to Fig. 7, the application also provides a kind of device embodiment 1 of scheduler task, and in the present embodiment, this device can comprise:
Acquiring unit 701 is used to obtain the current task sign of current task and the virtual task sign of virtual task.
In actual applications, the described program module of stating current task and virtual task correspondence of present embodiment is two sections codes in the dispatching platform system, wherein, described current task sign and virtual task sign promptly are the unique names of these two sections codes, there is no direct association between these two tasks.The purpose of obtaining the current task sign promptly is in order to call the program module of current task correspondence, thereby the operation current task is so that can generate a plurality of subtasks (pending task) that need processing, and the particular content of these a plurality of pending tasks promptly represents to treat the processing of deal with data.Obtaining the virtual task sign then is for described virtual task being arranged to the subtask of all pending tasks, if can be after the described pending task of operation, can call the program module of virtual task correspondence, just represent that all pending tasks all are finished.
Dynamically generation unit 702 is used for described current task sign of foundation and the raw data source number at the data warehouse data storage file, dynamically generates a plurality of pending task of same number, and described pending task is the subtask of described current task.
Wherein, can obtain the program module of current task correspondence according to described current task sign, the particular content of task promptly is a plurality of pending tasks that dynamically generate before deserving, and after dispatching platform calls described program module and carries out, can generate a plurality of pending tasks.Dispatching platform need be inquired about the storage file quantity of raw data table in data warehouse in Foreground Data storehouse, promptly be that what files a raw data table is split as stores data in data warehouse, dynamically generate pending task (subtask that these a plurality of pending tasks are current task) with the same number of storage file quantity.Storage file quantity then be this real time data synchronously to background system the time, need be stored as the number of single file; Wherein, the number of the pending task of generation equates with the number of the single file of storage.The particular content of described pending task promptly is to store in the data storage file of the data sync in the raw data table of correspondence in the data warehouse.
Unit 703 is set, and the subtask that is used for described pending task is set to described virtual task.
Simultaneously, according to described virtual task sign can described pending task the subtask be set to described virtual task.Wherein, need to prove that the set membership between current task, pending task and the virtual task can embody by the form of initialize data table, scheduling unit 704 is used for according to the scheduler task that concerns between described current task, pending task and the virtual task.
Scheduling unit 704 need come the scheduled for executing task according to the set membership between described current task, pending task and the virtual task three, promptly be at first to call corresponding execution module according to the current task sign of described current task, after the quantity according to current storage file generates a plurality of pending tasks, the described a plurality of pending task of reruning, after described pending task is finished, when carrying out described virtual task, whether dispatching platform just can be by having carried out the operation that described virtual task determines whether to have finished pending task.
In the present embodiment, adopt described dispatching platform dynamically generate pending task, and the relation between the scheduler task can change dynamically in operational process according to the number of storage file quantity in operational process; Real time data in the raw data table in Foreground Data storehouse is brought in constant renewal in, therefore the storage file quantity in the data warehouse of background system also can real-time change, and can according to how many dynamic numbers of determining pending task of storage file quantity of real-time change in the embodiment of the present application, therefore the device of the scheduler task of present embodiment can satisfy the application of special screne, this just makes the described dispatching platform of present embodiment more flexibly with controlled, has also improved the efficient of dispatching platform simultaneously.
Corresponding with the method that the method embodiment 2 of a kind of scheduler task of above-mentioned the application is provided, referring to Fig. 8, the application also provides a kind of preferred embodiment 2 of device of scheduler task, and in the present embodiment, this device specifically can comprise:
Set up unit 801, be used to set up mission bit stream table and task relation table, described mission bit stream table is used to store the details of described current task, pending task and virtual task, and described task relation table is used to store the relation between described current task, pending task and the virtual task.
In the present embodiment, need at first set up mission bit stream table and task relation, described mission bit stream table can store tasks details, wherein, details in the described mission bit stream table can comprise task identification, and the title of corresponding program module, the content of parameter that need preset etc. in addition, described task relation table can be used for storing the set membership between current task, pending task and the virtual task.
Acquiring unit 701 is used to obtain the current task sign of current task and the virtual task sign of virtual task.
When setting up described task relation table that presets and mission bit stream table, just specified the value of field " prgname ", this field value is represented current task sign and virtual task sign, promptly is the current task of correspondence in practice and the program module of virtual task.Like this, in this step, just can from the task relation table that presets and mission bit stream table, get access to the current task sign of current task and the virtual task sign of virtual task, between the background program module of these two sign correspondences without any relation.
Call subelement 802, be used for calling the program module of described current task correspondence according to described current task sign.
The described subelement 802 that calls calls the corresponding program module of current task sign, promptly is calling module a in the present embodiment, and the particular content of module a promptly be follow-up generation a plurality of pending tasks and sign thereof.
Obtain subelement 803, the number of the data storage file of the raw data source that is used to obtain foreground system the time synchronously to the data warehouse of background system.
Generate subelement 804, be used for generating the pending task and the sign thereof of same number according to the number of described data storage file.
Subelement 805 is set, is used for the subtask that described pending task is set to current task.
First storing sub-units 806 is used for the relation of described pending task and current task is stored in the described task relation table that presets.
Second storing sub-units 807 is used for described pending task is stored in the described mission bit stream table that presets with the relation and the pending task identification of current task and virtual task respectively.
Unit 703 is set, and the subtask that is used for described pending task is set to described virtual task.
Preserve unit 808, be used for the set membership between described pending task and the virtual task is saved to the described task relation table that presets.
Carry out subelement 809, the program module that is used to carry out described current task correspondence is carried out described a plurality of pending task.
Scheduling sublayer module 8010 is used for according to the set membership between described pending task and the virtual task, carrying out described virtual task to finish current task scheduling when executing described a plurality of pending task.
In the present embodiment, adopted the task relation table that presets and mission bit stream table to be provided with and to store relation between each task, dispatching system is when scheduler task, can execute the task with reference to the set membership between each task in the task relation table, so just realized that the pending task of dynamic generation can satisfy the demand of practical application scene, so that how many numbers according to the pending task that generates that can be real-time when actual motion comes scheduler task, improve the dispatching efficiency of dispatching platform, also promoted the dirigibility and the adaptability of dispatching platform.
Corresponding with the method embodiment 3 of a kind of scheduler task of above-mentioned the application, the application also provides a kind of platform embodiment 3 of scheduler task, and in the present embodiment, this dispatching platform specifically can comprise:
Delete cells 901 is used for deleting the mission bit stream table that presets and the task relation table related data about the last task of described current task.
Acquiring unit 701 is used to obtain the current task sign of current task and the virtual task sign of virtual task;
Dynamically generation unit 702 is used for dynamically generating a plurality of pending tasks according to described current task sign, and described pending task is the subtask of described current task;
Unit 703 is set, and the subtask that is used for described pending task is set to described virtual task;
Scheduling unit 705 is used for according to the scheduler task that concerns between described current task, pending task and the virtual task.
Need to prove that each embodiment in this instructions all adopts the mode of going forward one by one to describe, what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For device class embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
At last, also need to prove, in this article, relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint and have the relation of any this reality or in proper order between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Do not having under the situation of more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
More than the method and the platform of a kind of scheduler task that the application provided is described in detail, used specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.