CN106557359A - A kind of method for scheduling task and system - Google Patents
A kind of method for scheduling task and system Download PDFInfo
- Publication number
- CN106557359A CN106557359A CN201510644165.7A CN201510644165A CN106557359A CN 106557359 A CN106557359 A CN 106557359A CN 201510644165 A CN201510644165 A CN 201510644165A CN 106557359 A CN106557359 A CN 106557359A
- Authority
- CN
- China
- Prior art keywords
- chain
- task
- processing filters
- filters
- scheduling
- 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
Links
Landscapes
- Control By Computers (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method for scheduling task and system, wherein the method include:Receive tasks carrying request;Asked according to tasks carrying, determine that chain is filtered in the process of corresponding task, process in filtering chain and be provided with least one processing filters, the uniform format of the input interface and output interface of processing filters;The tasks carrying request is dispatched to process to filter on chain;Control process filter chain and trigger corresponding processing filters execution task.Process filtration chain to be made up of a series of processing filters in the embodiment of the present invention, and the uniform format of the input interface and output interface of processing filters, filtration chain can so be processed and make standard interface, task is completed so as to using processing filters, even if each task processes the Internet resources and input difference for needing, may be by the flow process of standardised generic to be scheduled several work task, reduce task scheduling cost.
Description
Technical field
The invention belongs to field of computer technology, more particularly to a kind of method for scheduling task and system.
Background technology
Computer cluster is a kind of computer system, and which passes through multiple stage computers (being also called working node)
Couple together cooperation to complete to calculate operation.These working nodes are located in same management domain, and which has unified
Management strategy and service is provided a user with as an entirety.
In prior art, it will usually split an operation, obtain multiple tasks, adjust task thereafter
Spend certain working node to perform, it is general, the job task on computer cluster is assigned to into multiple work
Process on node is properly termed as the scheduling of task, and which can reduce the time needed for tasks carrying, from
And improve the overall performance of system.
In the research and practice process to prior art, though it was found by the inventors of the present invention that in prior art
So an operation can be carried out fractionation and obtain multiple tasks, but as each task processes the network for needing
Resource and input are all different, therefore, it is difficult to make the flow process of standardised generic to be scheduled several work,
Task scheduling is relatively costly.
The content of the invention
It is an object of the invention to provide a kind of method for scheduling task and system, it is intended to using standardised generic stream
Journey reduces task scheduling cost being scheduled to different task.
To solve above-mentioned technical problem, the embodiment of the present invention provides technical scheme below:
A kind of method for scheduling task, including:
Receive tasks carrying request;
Asked according to the tasks carrying, determine that chain is filtered in the process of corresponding task, chain is filtered in the process
In be provided with least one processing filters, the form of the input interface and output interface of the processing filters
It is unified;
The tasks carrying request is dispatched to described process to filter on chain;
The described process of control filters the chain triggering corresponding processing filters execution task.
To solve above-mentioned technical problem, the embodiment of the present invention also provides technical scheme below:
A kind of task scheduling system, including:
Receiving unit, for receiving tasks carrying request;
Determining unit, for asking according to the tasks carrying, determines that chain is filtered in the process of corresponding task,
It is described process filter chain in be provided with least one processing filters, the input interface of the processing filters and
The uniform format of output interface;
Scheduling unit, filters chain for the tasks carrying request is dispatched to described process;
Control unit, filters the chain triggering corresponding processing filters execution task for controlling described process.
Relative to prior art, the present embodiment, task scheduling system are determined after tasks carrying request is received
Chain is filtered in the process of corresponding task, is processed in filtering chain and is provided with least one processing filters, processed
The tasks carrying request is dispatched to the process and is filtered by the uniform format of the input interface and output interface of filter
On chain, so that corresponding processing filters perform task;That is, for performing behaviour according to task scheduling
The process of work is filtered chain and is made up of a series of processing filters, and input interface and the output of processing filters
The uniform format of interface, can so process filtration chain and make standard interface, so as to utilize processing filters
To complete task, even if each task processes the Internet resources and input difference for needing, mark is may be by
The general flow process of standardization reduces task scheduling cost being scheduled to several work task.
Description of the drawings
Below in conjunction with the accompanying drawings, described in detail by the specific embodiment to the present invention, the skill of the present invention will be made
Art scheme and other beneficial effects are apparent.
Fig. 1 is the schematic flow sheet of the method for scheduling task that first embodiment of the invention is provided;
The schematic flow sheet of the method for scheduling task that Fig. 2 a are provided for second embodiment of the invention;
The schematic diagram of a scenario of the task scheduling system that Fig. 2 b are provided for second embodiment of the invention;
Another schematic diagram of a scenario of the task scheduling system that Fig. 2 c are provided for second embodiment of the invention;
A kind of structural representation of the task scheduling system that Fig. 3 a are provided for third embodiment of the invention;
Another structural representation of the task scheduling system that Fig. 3 b are provided for third embodiment of the invention.
Specific embodiment
Schema is refer to, wherein identical element numbers represent identical component, and the principle of the present invention is with reality
Illustrate in Shi Yi appropriate computing environment.The following description is concrete based on the illustrated present invention
Embodiment, which is not construed as limiting the present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention will be with reference to by performed by one or multi-section computer
The step of and symbol illustrating, unless otherwise stating clearly.Therefore, these steps and operation will have mention for several times by
Computer is performed, and computer as referred to herein is performed and included by representing with the data in a structuring pattern
Electronic signal computer processing unit operation.This operation is changed the data or is maintained at the calculating
At position in the memory system of machine, which is reconfigurable or other with the side known to the tester of this area
Formula is changing the running of the computer.The data structure maintained by the data is the provider location of the internal memory, its
With the particular characteristics by defined in the data form.But, the principle of the invention is illustrated with above-mentioned word,
Which is not represented as a kind of restriction, and this area tester will appreciate that the plurality of step of described below and behaviour
Also may be implemented in the middle of hardware.
It is the software object performed on the arithmetic system that term as used herein " module " can be regarded as.This
It is the objective for implementation on the arithmetic system that different components, module, engine and service described in text can be regarded as.
And system and method as herein described is preferably implemented in the way of software, certainly also can be enterprising in hardware
Row is implemented, within the scope of the present invention.
First embodiment
In the present embodiment, will be described from the angle of task scheduling system, the task scheduling system is concrete
Can be integrated in the equipment such as server.
A kind of method for scheduling task, including:Receive tasks carrying request;Asked according to the tasks carrying, really
Chain is filtered in the process of fixed corresponding task, and the process is provided with least one processing filters in filtering chain, is located
The uniform format of the input interface and output interface of reason filter;The tasks carrying request is dispatched to into the process
Filter on chain;Control the corresponding processing filters of process filtration chain triggering and perform the task.
Fig. 1 is referred to, Fig. 1 is the schematic flow sheet of the method for scheduling task that first embodiment of the invention is provided.
The method can include:
In step S101, tasks carrying request is received.
In step s 102, asked according to the tasks carrying, determine that chain is filtered in the process of corresponding task,
The process is provided with least one processing filters in filtering chain, and the input interface of processing filters and output connect
The uniform format of mouth.
Wherein, step S101 can be specially with step S102:
Certain is completed it is understood that filtration chain (Filter Chain) being processed in the embodiment of the present invention and being referred to
Task all processes the unit of logic;Which is made up of a series of processing filters (Filter), and the present invention is implemented
In example, processing filters refer to filter logic or process the organizational unit of logic, for performing task.
Preferably, before task scheduling system execution task, it is necessary first to processing filtration chain and processing
Filter is configured;Such as, before task scheduling system receives tasks carrying request (i.e. step S101),
Can also include:
A, reading task configuration;
B, configured according to the task, generate corresponding process and filter chain;
C, in this place reason are correspondingly arranged at least one processing filters in filtering chain, and arrange processing filters
The uniform format of input interface and output interface.
Again such as, the task configuration can specifically refer to process the configuration file for filtering chain, task scheduling system
Corresponding process can be generated according to these configuration files and filter chain, wherein, these configuration files can be with root
Need according to task, be configured in advance;Different task types can be provided with different task configurations, from
And corresponding process can be generated according to task configuration and filter chain.
After process filtration chain is generated, at least one processing filters can be correspondingly arranged in filtration chain is processed,
Wherein, the uniform format of the input interface and output interface of processing filters, so can filter chain by processing
Process make standard interface to complete different tasks.
It is further preferred that such as, " the form system of the input interface and output interface of processing filters is set
One " following steps be can also carry out after:
At least one action execution unit is correspondingly arranged in processing filters, and the action executing list is set
The uniform format of the input interface and output interface of unit.
That is, being made up of a series of actions performance element (Action) in processing filters, action is held
Row unit is the action for processing single step or event, likewise, the input interface of action execution unit
With the uniform format of output interface, so the process for processing filtration chain can be made standard interface to complete not
Same task.
In step s 103, the tasks carrying request is dispatched to the process to filter on chain.
In step S104, control the process and filter the corresponding processing filters execution task of chain triggering.
Wherein, step S103 can be specially with step S104:
It is understood that in the embodiment of the present invention, scheduling refers to that computer selects to process and filters what chain was performed
Mode;After tasks carrying request to be dispatched to corresponding process on filtration chain, system control process mistake is dispatched
Processing filters in filter chain perform corresponding task.
Further, as processing filters can also include minimum performance element, action execution unit,
Therefore " control the process and filter the corresponding processing filters execution task of chain triggering " to be specially:Control
Process the action execution unit filtered in the corresponding processing filters of chain triggering and perform task.
Wherein, control process filter chain and trigger the action execution unit execution task in corresponding processing filters
Mode have a lot, such as, may particularly include:
1st, chain is filtered to process and send scheduling instruction so that process is filtered chain and indicates to obtain accordingly according to the scheduling
Handling process;
2nd, control process filtration chain processing filters are called according to the handling process;
3rd, task is performed according to preset order using the action execution unit in the processing filters called.
That is, task scheduling system filters chain to the process determined sends scheduling instruction, process and filter
Chain indicates to obtain corresponding handling process according to the scheduling, processes filtration chain and calls process according to the handling process
Filter, so as to the action execution unit in the processing filters called can perform according to preset order it is corresponding
Task.
Preferably, filter before chain calls processing filters according to the handling process controlling the process, need
In judging to process filtration chain, which processing filters needs to carry out task scheduling, such as, can be specific as follows:
Control is described to process the processing filters filtered needed for chain is determined according to handling process;Control process mistake
Filter chain calls processing filters be specially according to the handling process:Control the process chain is filtered according at this
Processing filters needed for reason process invocation, are performed by the action execution unit in required processing filters and are appointed
Business.
Still more preferably, the handling process in the embodiment of the present invention refers to the handling process for processing filtration chain,
Which can specifically indicate to process and filter in chain, the execution sequence of processing filters and/or need to carry out execution task
Processing filters.
Such as, the identity of processing filters can be carried in the handling process, with according to the identity mark
Know the processing filters needed for determining;Meanwhile, the process needed for these is also carried in the handling process and is filtered
The execution sequence mark of device, so that after a processing filters action executing is complete, touching according to the execution sequence
Send out next processing filters to perform, illustrate herein and do not constitute restriction.
In addition, the action execution unit in processing filters can also perform corresponding task according to preset order,
Such as, the preset order can simply for action execution unit arrange sequencing, it is also possible to according to appoint
The needs of business are separately arranged, citing herein restriction of do not constitute.
Preferably, if task scheduling system needs newly-increased or delete processing to filter chain (Filter Chain)
Type, then directly can be configured according to preset task configuration specification inside configuration file, so as to can
To realize that newly-increased or delete processing filters chain, while good corresponding processing filters (Filter) of configuration and every
The action execution unit (Action) of individual processing filters, without the need for extra system upgrade cost, this
Place is not specifically described.
From the foregoing, the method for scheduling task that the present embodiment is provided, task scheduling system receiving task
Determine after performing request that chain is filtered in the process of corresponding task, process in filtering chain and be provided with least one process
The tasks carrying request is adjusted by filter, the uniform format of the input interface and output interface of processing filters
Spend to the process and filter on chain, so that corresponding processing filters perform task;That is, being used for basis
Task scheduling performs the process filtration chain of operation and is made up of a series of processing filters, and processing filters
The uniform format of input interface and output interface, can so process filtration chain and make standard interface, so as to
Task is completed using processing filters, even if each task processes the Internet resources and input difference for needing,
May be by the flow process of standardised generic to be scheduled several work task, reduce task scheduling cost.
Second embodiment
Citing is described in further detail by method according to described by first embodiment below.
First, it is that each task type generates corresponding process filtration chain, the process filters chain to complete certain
Task all processes the unit of logic.Secondly, arrange and process the processing filters and action executing filtered in chain
Unit, filters chain for the process based on scheduling, performs corresponding task.Hereinafter will be described in more detail.
Fig. 2 a are referred to, the flow process of the method for scheduling task that Fig. 2 a are provided for second embodiment of the invention is illustrated
Figure.The method can include:
In step s 201, task scheduling system reads task configuration.
In step S202, task scheduling system is configured according to the task, is generated corresponding process and is filtered chain.
In step S203, task scheduling system in filtration chain is processed is correspondingly arranged at least one and processed
Filter, and the uniform format of the input interface and output interface of processing filters is set.
In step S204, task scheduling system is correspondingly arranged at least one action in processing filters and holds
Row unit, and the uniform format of the input interface and output interface of action execution unit is set.
Wherein, step S201 can be specially to step S204:
Preferably, before task scheduling system execution task, it is necessary first to processing filtration chain and processing
Filter is configured.
The task configuration can specifically refer to process the configuration file for filtering chain, and task scheduling system is according to these
Configuration file can generate corresponding process and filter chain, wherein, these configuration files can be according to task need
Will, it is configured in advance;Different task types can be provided with different task configurations, such that it is able to root
Corresponding process is generated according to task configuration and filters chain.
After process filtration chain is generated, at least one processing filters can be correspondingly arranged in filtration chain is processed,
It is made up of a series of actions performance element in processing filters, action execution unit is for processing single step
Or the action of event, wherein, the uniform format of the input interface and output interface of processing filters, action are held
The process for processing filtration chain can so be made by the uniform format of the input interface and output interface of row unit
Standard interface is completing different tasks.
Fig. 2 b can be referred in the lump, be the schematic diagram of a scenario of task scheduling system, wherein, process filter chain and
Process the processing filters in filtration chain, action execution unit to be entered to step S204 according to abovementioned steps S201
Row is arranged, the uniform format of the input interface and output interface of processing filters, the input of action execution unit
The uniform format of interface and output interface.
As shown in Figure 2 b, process comprising three in the task scheduling system and filter chain (Filter Chain1, Filter
Chain2 and Filter Chain3), and multiple processing filters (Filter) are included during filtration chain is processed per bar,
Wherein processing filters are responsible for filter logic or process logic, again comprising minimum in each processing filters
Performance element, for processing the action execution unit (Action) of single step or event-action.
Such as, in Filter Chain1, first Filter includes Action A, Action B and Action C;
And for example, in Filter Chain3, first Filter includes Action F, Action H and Action J.
It is contemplated that different task types can be provided with different task configurations, such that it is able to root
Corresponding process is generated according to task configuration and filters chain, chain is filtered according to different process difference in functionality effect is set
Processing filters and action execution unit, herein citing be not especially limited.
In step S205, task scheduling system receives tasks carrying request.
In step S206, task scheduling system is asked according to the tasks carrying, determines corresponding task
Process and filter chain.
Wherein, step S205 can be specially with step S206:
Based on the action execution unit in processing filters and processing filters, task is scheduled, i.e.,
The task scheduling system control process filter chain and trigger the action execution unit execution in corresponding processing filters
Corresponding task.
Such as, shown in Fig. 2 b, can be specific:When task scheduling system receives tasks carrying request, meeting
According to the type of the indicated task of the tasks carrying request, three to generating/setting process filtration chain and enter
Row identification, and determine that chain is filtered in the process corresponding with current task, to perform the task and terminate the tune
Degree flow process.
In step S207, the tasks carrying request is dispatched to the process and is filtered on chain by task scheduling system.
In step S208, process filtration chain and processing filters are called according to corresponding handling process.
In step S209, the action execution unit in processing filters performs the task according to preset order.
Wherein, step S207 can be specially to step S209:
Scheduling in the embodiment of the present invention refers to that computer selects to process the mode for filtering that chain is performed;Task is being held
Row request is dispatched to corresponding process filtration after processing on filtration chain, in scheduling system control process filtration chain
Device performs corresponding task.
Such as, the mode of task scheduling can be with specific as follows:
Task scheduling system filters chain to the process and sends scheduling instruction, and process is filtered chain and indicated according to the scheduling
Corresponding handling process is obtained, and is processed filtration chain and processing filters is called according to the handling process, so as to call
Processing filters in action execution unit can perform corresponding task according to preset order.
It is understood that before the process filtration chain calls processing filters according to handling process, may be used also
To include:The processing filters needed for filtration chain is determined according to the handling process for getting are processed, and then is located
Reason filters chain and calls required processing filters according to the handling process for getting, i.e., in process filtration chain simultaneously
Not every processing filters are required for execution task, by the instruction of handling process, it may be determined that go out institute
The processing filters for needing, and task is performed by the action execution unit in required processing filters.
Handling process in the embodiment of the present invention is referred to and processes the handling process for filtering chain, and which specifically can indicate
Process and filter in chain, the execution sequence of processing filters and/or need to carry out the processing filters of execution task.
Such as, the identity of processing filters can be carried in the handling process, with according to the identity mark
Know the processing filters needed for determining;Meanwhile, the process needed for these is also carried in the handling process and is filtered
The execution sequence mark of device, so that after a processing filters action executing is complete, touching according to the execution sequence
Send out next processing filters to perform;Action execution unit in processing filters can also be according to preset order
Corresponding task is performed, such as, the priority that the preset order can be simply for action execution unit setting is suitable
Sequence, it is also possible to separately arranged according to the needs of task, citing herein restriction of do not constitute.
It should be noted that is, each processes the processing filters of filtration chain and each action is held
Row unit is not necessarily carried out operation, needs according to task state at that time to judge, such as next operation meeting
Judge whether to perform according to the result of last operation, next step operation is skipped if not performing.
Preferably, if task scheduling system needs newly-increased or delete processing to filter the type of chain, can be with
Directly configured according to preset task configuration specification inside configuration file, such that it is able to realize it is newly-increased or
Delete processing filters chain, while the action executing of the good corresponding processing filters of configuration and each processing filters
Unit, without the need for extra system upgrade cost.
Such as, can be specific:
Task scheduling system obtains configuration-direct, and the configuration-direct indicates to need to increase or delete processing filters chain;
When determining that the configuration-direct indicates to need to increase process filtration chain, triggering task scheduling system is performed
The step of reading task is configured (i.e. step 201), filters chain to generate and arrange to process;Match somebody with somebody when determining
Put instruction instruction need delete processing filter chain when, delete it is corresponding process filter chain.
That is, when task scheduling system needs to increase and processes filtration chain, task configuration is read, according to
The task is configured, and is generated corresponding process and is filtered chain, also, is correspondingly arranged at least one in chain is filtered in process
Individual processing filters, and the uniform format of the input interface and output interface of processing filters is set, processing
Be correspondingly arranged at least one action execution unit in filter, and arrange action execution unit input interface and
The uniform format of output interface, to complete to processing the setting for filtering chain.When determine configuration-direct indicate need
When wanting delete processing to filter chain, delete corresponding process of the configuration-direct and filter chain.
It is understood that in the same manner, if task scheduling system needs to filter in process increase certain newly inside chain
Processing filters delete certain processing filters, equally only need to increase newly inside configuration file or delete
The processing filters configuration under chain is filtered except certain process, the system upgrade of secondary development will not be also brought
Cost, is not specifically described herein.
In order to be better understood from the scheduling flow of task scheduling system, below by way of having used the technology of the present invention side
The practical application scene of the quick rebating integration settlement system of case is illustrated:
As shown in Figure 2 c, it is that the scene of quick rebating integration settlement system is illustrated, can be specific as follows:
(1) quick rebating integration settlement system receives clearing order;
(2) quick rebating integration settlement system is identified to Filter Chain, and will settle accounts order dispatch
To in integration clearing Filter Chain handling processes;
Integration clearing Filter Chain are according to corresponding handling process, the Filter needed for calling, it may include fast
Return process Filter and general returning processes Filter, respectively execution step (3) and step (4).
(3) control is returned process Filter soon and performs operation;
Action (action execution unit) is performed successively in process Filter is returned soon, is put in storage including order
Action, order proof-reading Action, order update Action and the accrediting amount increases Action.
(4) control the general process Filter that returns and perform operation;
It is general return process Filter in perform clearing order warehouse-in Action.
Filter and the general uniform format for returning the input interface and output interface that process Filter are processed due to returning soon,
Therefore integration clearing Filter Chain can be made standard interface, completes different tasks.
From the foregoing, the method for scheduling task that the present embodiment is provided, task scheduling system receiving task
Determine after performing request that chain is filtered in the process of corresponding task, process in filtering chain and be provided with least one process
The tasks carrying request is adjusted by filter, the uniform format of the input interface and output interface of processing filters
Spend to the process and filter on chain, so that corresponding processing filters perform task;That is, being used for basis
Task scheduling performs the process filtration chain of operation and is made up of a series of processing filters, and processing filters
The uniform format of input interface and output interface, can so process filtration chain and make standard interface, so as to
Task is completed using processing filters, even if each task processes the Internet resources and input difference for needing,
May be by the flow process of standardised generic to be scheduled several work task, reduce task scheduling cost.
Further, since action execution unit is minimum performance element, task scheduling system can also enter according to demand
Row configuration, reduces or increases the action execution unit that certain processing filters is included.In the same manner, process and filter
Chain can also be reduced as needed or increase processing filters, can so greatly reduce the new work(of increase
Can and the system upgrade cost that brings.
3rd embodiment
For ease of preferably implementing method for scheduling task provided in an embodiment of the present invention, the embodiment of the present invention is also carried
For a kind of system based on above-mentioned method for scheduling task.The wherein method of the implication of noun and above-mentioned task scheduling
In it is identical, implement details and may be referred to the explanation in embodiment of the method.
Fig. 3 a are referred to, Fig. 3 a are the structural representation of task scheduling system provided in an embodiment of the present invention,
The task scheduling system can include receiving unit 301, determining unit 302, scheduling unit 303 and control
Unit 304.
Wherein receiving unit 301, asks for receiving tasks carrying;Determining unit 302, for according to this
Business performs request, determines that chain is filtered in the process of corresponding task, and the process is provided with least one in filtering chain
Processing filters, the uniform format of the input interface and output interface of processing filters.
Certain is completed it is understood that filtration chain (Filter Chain) being processed in the embodiment of the present invention and being referred to
Task all processes the unit of logic;Which is made up of a series of processing filters (Filter), and the present invention is implemented
In example, processing filters refer to filter logic or process the organizational unit of logic, for performing task.
Scheduling unit 303, filters chain for the tasks carrying request is dispatched to the process;Control unit
304, the corresponding processing filters execution task of chain triggering is filtered for controlling the process.
In the embodiment of the present invention, scheduling refers to that computer selects to process the mode for filtering that chain is performed;By task
Execution request is dispatched to corresponding process after processing on filtration chain, in scheduling system control process filtration chain
Filter performs corresponding task.
Preferably, before task scheduling system execution task, it is necessary first to processing filtration chain and processing
Filter is configured;Such as, Fig. 3 b are referred to, is another structural representation of task scheduling system, wherein
The system can also include:
Reading unit 305, for reading task configuration;
Chain signal generating unit 306 is filtered, for being configured according to the task, corresponding process is generated and is filtered chain;
First setting unit 307, filters in chain for reason in this place and is correspondingly arranged at least one processing filters,
And the uniform format of the input interface and output interface of processing filters is set.
The task configuration can specifically refer to process the configuration file for filtering chain, and task scheduling system is according to these
Configuration file can generate corresponding process and filter chain, wherein, these configuration files can be according to task need
Will, it is configured in advance;Different task types can be provided with different task configurations, such that it is able to root
Corresponding process is generated according to task configuration and filters chain.
After process filtration chain is generated, at least one processing filters can be correspondingly arranged in filtration chain is processed,
Wherein, the uniform format of the input interface and output interface of processing filters, so can filter chain by processing
Process make standard interface to complete different tasks.
It is further preferred that as shown in Figure 3 b, the system can also include:
Second setting unit 308, at least one action execution unit is correspondingly arranged in processing filters,
And the uniform format of the input interface and output interface of action execution unit is set;
That is, being made up of a series of actions performance element (Action) in processing filters, action is held
Row unit is the action for processing single step or event, likewise, the input interface of action execution unit
With the uniform format of output interface, so the process for processing filtration chain can be made standard interface to complete not
Same task.
As processing filters can also include minimum performance element, action execution unit, therefore control single
Unit 304, can filter chain specifically for control process and trigger the action executing list in corresponding processing filters
First execution task.
Wherein, control process filter chain and trigger the action execution unit execution task in corresponding processing filters
Mode have a lot, such as, the control unit 304 can include:
Subelement is sent, and is indicated for chain transmission scheduling being filtered to process so that process filters chain according to scheduling
Indicate to obtain corresponding handling process;
First control subelement, filters chain for control process and calls processing filters according to the handling process;
Second control subelement, for utilizing the action execution unit in the processing filters called according to default
Order performs task.
That is, task scheduling system filters chain to the process determined sends scheduling instruction, process and filter
Chain indicates to obtain corresponding handling process according to the scheduling, processes filtration chain and calls process according to the handling process
Filter, so as to the action execution unit in the processing filters called can perform according to preset order it is corresponding
Task.
Preferably, filter before chain calls processing filters according to the handling process controlling the process, need
In judging to process filtration chain, which processing filters needs to carry out task scheduling, such as, the control unit 304
Can also include:
3rd control subelement, filters the place needed for chain is determined according to the handling process for control process
Reason filter;Then the first control subelement, filters chain according to the handling process specifically for controlling described process
The required processing filters are called, i.e., is performed by the action execution unit in required processing filters and is appointed
Business.
Still more preferably, the handling process in the embodiment of the present invention refers to the handling process for processing filtration chain,
Which can specifically indicate to process and filter in chain, the execution sequence of processing filters and/or need to carry out execution task
Processing filters.
Such as, the identity of processing filters can be carried in the handling process, with according to the identity mark
Know the processing filters needed for determining;Meanwhile, the process needed for these is also carried in the handling process and is filtered
The execution sequence mark of device, so that after a processing filters action executing is complete, touching according to the execution sequence
Send out next processing filters to perform, illustrate herein and do not constitute restriction.
In addition, the action execution unit in processing filters can also perform corresponding task according to preset order,
Such as, the preset order can simply for action execution unit arrange sequencing, it is also possible to according to appoint
The needs of business are separately arranged, citing herein restriction of do not constitute.
Preferably, if task scheduling system needs newly-increased or delete processing to filter the type of chain, can be with
Directly configured according to preset task configuration specification inside configuration file, such that it is able to realize it is newly-increased or
Delete processing filters chain, while the action executing of the good corresponding processing filters of configuration and each processing filters
Unit, without the need for extra system upgrade cost, such as, the system can also include:
Acquiring unit, for obtaining configuration-direct, the configuration-direct indicates to need to increase or delete processing is filtered
Chain;Trigger control unit, for when the configuration-direct indicates to need to increase process filtration chain, triggering is read
The step of execution of unit 305 reading task is configured, filters chain to generate and arrange to process;Unit is deleted, is used
In when the configuration-direct indicates to need delete processing to filter chain, delete corresponding process and filter chain.
It is understood that in the same manner, if task scheduling system needs to filter in process increase certain newly inside chain
Processing filters delete certain processing filters, equally only need to increase newly inside configuration file or delete
The processing filters configuration under chain is filtered except certain process, the system upgrade of secondary development will not be also brought
Cost, is not specifically described herein.
When being embodied as, above unit can be realized as independent entity, it is also possible to carried out arbitrarily
Combination, realizes as same or several entities, and being embodied as of above unit can be found in above
Embodiment of the method, will not be described here.
The task scheduling system can be specifically integrated in the equipment such as server.
From the foregoing, the task scheduling system that the present embodiment is provided, task scheduling system receiving task
Determine after performing request that chain is filtered in the process of corresponding task, process in filtering chain and be provided with least one process
The tasks carrying request is adjusted by filter, the uniform format of the input interface and output interface of processing filters
Spend to the process and filter on chain, so that corresponding processing filters perform task;That is, being used for basis
Task scheduling performs the process filtration chain of operation and is made up of a series of processing filters, and processing filters
The uniform format of input interface and output interface, can so process filtration chain and make standard interface, so as to
Task is completed using processing filters, even if each task processes the Internet resources and input difference for needing,
May be by the flow process of standardised generic to be scheduled several work task, reduce task scheduling cost.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed in certain embodiment
The part stated, may refer to the detailed description above with respect to method for scheduling task, and here is omitted.
The task scheduling system provided in an embodiment of the present invention is belonged to the method for scheduling task in foregoing embodiments
In same design, provide during the method for scheduling task embodiment can be run on the task scheduling system
Either method, which implements process and refers to the method for scheduling task embodiment, and here is omitted.
It should be noted that for method for scheduling task of the present invention, this area common test personnel can
To understand all or part of flow process for realizing method for scheduling task described in the embodiment of the present invention, meter is can be by
Calculation machine program is completed to control the hardware of correlation, and the computer program can be stored in an embodied on computer readable
In storage medium, such as it is stored in the memorizer of terminal, and by least one computing device in the terminal,
The flow process of the embodiment such as the method for scheduling task is may include in the process of implementation.Wherein, described storage
Medium can be magnetic disc, CD, read only memory (ROM, Read Only Memory), random access memory note
Recall body (RAM, Random Access Memory) etc..
For the task scheduling system of the embodiment of the present invention, its each functional module can be integrated in one
In process chip, or modules are individually physically present, it is also possible to two or more module collection
In Cheng Yi module.Above-mentioned integrated module both can be realized in the form of hardware, it would however also be possible to employ soft
The form of part functional module is realized.If the integrated module in the form of software function module is realized and is made
For when independent production marketing or use, it is also possible to be stored in a computer read/write memory medium, institute
It is for example read only memory, disk or CD etc. to state storage medium.
A kind of method for scheduling task for being provided to the embodiment of the present invention above and system are described in detail,
Specific case used herein is set forth to the principle and embodiment of the present invention, above example
Illustrate that being only intended to help understands the method for the present invention and its core concept;Simultaneously for the technology of this area
Personnel, according to the thought of the present invention, will change in specific embodiments and applications, comprehensive
Upper described, this specification content should not be construed as limiting the invention.
Claims (12)
1. a kind of method for scheduling task, it is characterised in that include:
Receive tasks carrying request;
Asked according to the tasks carrying, determine that chain is filtered in the process of corresponding task, chain is filtered in the process
In be provided with least one processing filters, the form of the input interface and output interface of the processing filters
It is unified;
The tasks carrying request is dispatched to described process to filter on chain;
The described process of control filters the chain triggering corresponding processing filters execution task.
2. method for scheduling task according to claim 1, it is characterised in that the reception tasks carrying
Before request, also include:
Reading task is configured;
Configured according to the task, generate corresponding process and filter chain;
At least one processing filters are correspondingly arranged in chain is filtered in the process, and described process is set and filtered
The uniform format of the input interface and output interface of device.
3. method for scheduling task according to claim 2, it is characterised in that the setting process
After the uniform format of the input interface and output interface of filter, also include:
At least one action execution unit is correspondingly arranged in the processing filters, and the action is set and held
The uniform format of the input interface and output interface of row unit;
Then control the filtration chain triggering corresponding processing filters execution task that processes to be specially:Control
The action execution unit filtered in the corresponding processing filters of chain triggering that processes performs the task.
4. method for scheduling task according to claim 3, it is characterised in that the control process
The action execution unit execution task that chain is triggered in corresponding processing filters is filtered, including:
Scheduling instruction is sent to the filtration chain that processes so that the filtration chain that processes is indicated according to the scheduling
Obtain corresponding handling process;
The control filtration chain that processes calls processing filters according to the handling process;
The task is performed according to preset order using the action execution unit in the processing filters called.
5. method for scheduling task according to claim 4, it is characterised in that the control process
Before filtration chain calls processing filters according to the handling process, also include:
Control is described to process the processing filters filtered needed for chain is determined according to the handling process;
The control filtration chain that processes calls processing filters to be specially according to the handling process:Control is described
Process filtration chain the required processing filters are called according to the handling process.
6. the method for scheduling task according to any one of claim 1 to 5, it is characterised in that the side
Method also includes:
Configuration-direct is obtained, the configuration-direct indicates to need to increase or delete processing filters chain;
When the configuration-direct indicates to need to increase process filtration chain, triggering performs the reading task configuration
The step of, chain is filtered to generate and arrange to process;
When the configuration-direct indicates to need delete processing to filter chain, delete corresponding process and filter chain.
7. a kind of task scheduling system, it is characterised in that include:
Receiving unit, for receiving tasks carrying request;
Determining unit, for asking according to the tasks carrying, determines that chain is filtered in the process of corresponding task,
It is described process filter chain in be provided with least one processing filters, the input interface of the processing filters and
The uniform format of output interface;
Scheduling unit, filters chain for the tasks carrying request is dispatched to described process;
Control unit, filters the chain triggering corresponding processing filters execution task for controlling described process.
8. task scheduling system according to claim 7, it is characterised in that the system also includes:
Reading unit, for reading task configuration;
Chain signal generating unit is filtered, for being configured according to the task, corresponding process is generated and is filtered chain;
First setting unit, for being correspondingly arranged at least one processing filters in described process in filtration chain,
And the uniform format of the input interface and output interface of the processing filters is set.
9. task scheduling system according to claim 8, it is characterised in that the system also includes:
Second setting unit, at least one action execution unit is correspondingly arranged in the processing filters,
And the uniform format of the input interface and output interface of the action execution unit is set;
Then described control unit, filters in the corresponding processing filters of chain triggering specifically for controlling described process
Action execution unit perform the task.
10. task scheduling system according to claim 9, it is characterised in that described control unit,
Including:
Subelement is sent, and is indicated for chain transmission scheduling being filtered to the process so that chain is filtered in the process
Indicate to obtain corresponding handling process according to the scheduling;
First control subelement, filters chain and calls according to the handling process and processed for controlling described process
Filter;
Second control subelement, for utilizing the action execution unit in the processing filters called according to default
Order performs the task.
11. task scheduling systems according to claim 10, it is characterised in that described control unit is also
Including:
3rd control subelement, filters needed for chain determined according to the handling process for controlling described process
Processing filters;
The first control subelement, adjusts according to the handling process specifically for controlling the filtration chain that processes
With the required processing filters.
12. task scheduling systems according to any one of claim 7 to 11, it is characterised in that described
System also includes:
Acquiring unit, for obtaining configuration-direct, the configuration-direct indicates to need to increase or delete processing mistake
Filter chain;
Trigger control unit, for when the configuration-direct indicates to need to increase process filtration chain, triggering is held
The step of row reading task is configured, filters chain to generate and arrange to process;
Unit is deleted, for when the configuration-direct indicates to need delete processing to filter chain, deleting corresponding
Process and filter chain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510644165.7A CN106557359B (en) | 2015-09-30 | 2015-09-30 | Task scheduling method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510644165.7A CN106557359B (en) | 2015-09-30 | 2015-09-30 | Task scheduling method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106557359A true CN106557359A (en) | 2017-04-05 |
CN106557359B CN106557359B (en) | 2021-02-05 |
Family
ID=58418127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510644165.7A Active CN106557359B (en) | 2015-09-30 | 2015-09-30 | Task scheduling method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106557359B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5621878A (en) * | 1993-03-03 | 1997-04-15 | Apple Computer, Inc. | Method and apparatus or manipulating data from a suspended application program on a computer-controlled display system |
US20070038856A1 (en) * | 2005-08-10 | 2007-02-15 | Ali Valiuddin Y | Methods and systems that selectively permit changes to a cryptographic hardware unit's state |
US20080084799A1 (en) * | 2006-10-10 | 2008-04-10 | Rolf Repasi | Performing application setting activity using a removable storage device |
US20080244251A1 (en) * | 2007-03-29 | 2008-10-02 | Khipu Systems Limited | Predictive model implementation system and methodology |
CN102929602A (en) * | 2012-09-28 | 2013-02-13 | 方正国际软件有限公司 | System for unified treatment of processes based on process engine |
US20130166777A1 (en) * | 2007-11-26 | 2013-06-27 | Adobe Systems Incorporated | Device profile assignment based on device capabilities |
CN103279351A (en) * | 2013-05-31 | 2013-09-04 | 北京高森明晨信息科技有限公司 | Method and device for task scheduling |
CN103970851A (en) * | 2014-05-05 | 2014-08-06 | 神华集团有限责任公司 | Method for directly issuing large enterprise group head office financial statement according to mass of voucher data |
CN104346215A (en) * | 2013-08-07 | 2015-02-11 | 中兴通讯股份有限公司 | Task scheduling service system and method |
-
2015
- 2015-09-30 CN CN201510644165.7A patent/CN106557359B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5621878A (en) * | 1993-03-03 | 1997-04-15 | Apple Computer, Inc. | Method and apparatus or manipulating data from a suspended application program on a computer-controlled display system |
US20070038856A1 (en) * | 2005-08-10 | 2007-02-15 | Ali Valiuddin Y | Methods and systems that selectively permit changes to a cryptographic hardware unit's state |
US20080084799A1 (en) * | 2006-10-10 | 2008-04-10 | Rolf Repasi | Performing application setting activity using a removable storage device |
US20080244251A1 (en) * | 2007-03-29 | 2008-10-02 | Khipu Systems Limited | Predictive model implementation system and methodology |
US20130166777A1 (en) * | 2007-11-26 | 2013-06-27 | Adobe Systems Incorporated | Device profile assignment based on device capabilities |
CN102929602A (en) * | 2012-09-28 | 2013-02-13 | 方正国际软件有限公司 | System for unified treatment of processes based on process engine |
CN103279351A (en) * | 2013-05-31 | 2013-09-04 | 北京高森明晨信息科技有限公司 | Method and device for task scheduling |
CN104346215A (en) * | 2013-08-07 | 2015-02-11 | 中兴通讯股份有限公司 | Task scheduling service system and method |
CN103970851A (en) * | 2014-05-05 | 2014-08-06 | 神华集团有限责任公司 | Method for directly issuing large enterprise group head office financial statement according to mass of voucher data |
Also Published As
Publication number | Publication date |
---|---|
CN106557359B (en) | 2021-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102317535B1 (en) | Methods and systems for implementing data tracking with software development kits | |
US10114682B2 (en) | Method and system for operating a data center by reducing an amount of data to be processed | |
US20140156849A1 (en) | Map-reduce workflow processing apparatus and method, and storage media storing the same | |
CN104750690A (en) | Query processing method, device and system | |
CN102810184A (en) | Method and device for dynamically executing workflow and enterprise system | |
CN111818175B (en) | Enterprise service bus configuration file generation method, device, equipment and storage medium | |
CN103677913A (en) | Business processing method and device based on business process management (BPM) | |
CN105975493A (en) | File combination method and apparatus | |
CN110517018A (en) | A kind of any jump method of node based on activiti workflow and device | |
CN110472109A (en) | Mobilism Data Quality Analysis method and plateform system | |
CN110633959A (en) | Method, device, equipment and medium for creating approval task based on graph structure | |
US20150317336A1 (en) | Data reconstruction | |
CN111047434B (en) | Operation record generation method and device, computer equipment and storage medium | |
CN108874520A (en) | Calculation method and device | |
CN111158800A (en) | Method and device for constructing task DAG based on mapping relation | |
CN104050291A (en) | Parallel processing method and system for account balance data | |
CN106155822A (en) | A kind of disposal ability appraisal procedure and device | |
CN103186384A (en) | Business-component-oriented software designing and analyzing system and using method thereof | |
Richthammer et al. | Search-space decomposition for system-level design space exploration of embedded systems | |
CN108897858A (en) | The appraisal procedure and device, electronic equipment of distributed type assemblies index fragment | |
CN110188258B (en) | Method and device for acquiring external data by using crawler | |
CN112860412A (en) | Service data processing method and device, electronic equipment and storage medium | |
CN103914304B (en) | Method for converting different structure type parameters on basis of SAP (service access point) platforms | |
CN106557359A (en) | A kind of method for scheduling task and system | |
CN106844036A (en) | The access method and device of physical equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |