CN107908487A - Task control management method, device, equipment and computer-readable recording medium - Google Patents
Task control management method, device, equipment and computer-readable recording medium Download PDFInfo
- Publication number
- CN107908487A CN107908487A CN201711101604.5A CN201711101604A CN107908487A CN 107908487 A CN107908487 A CN 107908487A CN 201711101604 A CN201711101604 A CN 201711101604A CN 107908487 A CN107908487 A CN 107908487A
- Authority
- CN
- China
- Prior art keywords
- task
- pending
- server
- configuration information
- result information
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/541—Client-server
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/549—Remote execution
Abstract
The invention discloses a kind of task control management method, device, equipment and computer-readable recording medium, which comprises the following steps:When detecting task configuring request, task configuration information is obtained from the task configuring request, and pending task, pending tactful and pending server are obtained from the task configuration information;By the pending task and the pending strategy transmission to the pending server, so that the pending server is based on pending task described in the pending strategy execution;The execution result information for the pending task that the pending server returns is received, and stores the execution result information.The present invention can be uniformly controlled management execution task, realize the flexible control of execution task, receive the execution result information that server returns, and be capable of the implementation status of effective monitor task, easy to be safeguarded when tasks carrying fails.
Description
Technical field
The present invention relates to Internet technical field, more particularly to a kind of task control management method, device, equipment and calculating
Machine readable storage medium storing program for executing.
Background technology
With the fast development of Internet technology, the configuration of mobile terminal is higher and higher, and user can pacify in the terminal
Program application is filled, to extend the function of mobile terminal.The program application installed in mobile terminal, which is typically necessary, network
Work under environment, such as wechat, Alipay or Tencent's video etc., applied when the program in mobile terminal and establish data with server
After connection, the program application in mobile terminal can carry out data service access with the webserver.
With the surge of number of users, single server can not be met the requirements, and therefore, it is necessary to be using server cluster
Program application offer service.Each server in server cluster can perform different tasks, but the triggering of task is mainly led to
Cross timer to be triggered, it is necessary to set task in advance and perform the time, can not realize the flexible control of task, also can not be effective
Monitor task implementation status, be not easy to management service.Therefore, the flexible control of task how is realized, and it is how effective
The implementation status of monitor task is current urgent problem to be solved.
The above is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that the above is existing skill
Art.
The content of the invention
It is a primary object of the present invention to provide a kind of task control management method, device, equipment and computer-readable deposit
Storage media, it is intended to solve how to realize the flexible control of task, and how the technology of the implementation status of effective monitoring task is asked
Topic.
To achieve the above object, the present invention provides a kind of task control management method, the task control management method bag
Include following steps:
When detecting task configuring request, task configuration information is obtained from the task configuring request, and from described
Pending task, pending tactful and pending server are obtained in task configuration information;
By the pending task and the pending strategy transmission to the pending server, for described pending
Server is based on pending task described in the pending strategy execution;
The execution result information for the pending task that the pending server returns is received, and stores the execution
Result information.
Alternatively, it is described by the pending task and the pending strategy transmission to the pending server step
Before, the task control management method further includes:
Task configuration information is obtained from database with interval preset time, and whether more to detect the task configuration information
Newly;
When detecting the task configuration information renewal, pending task is obtained from the task configuration information, is treated
Implementation strategy and pending server.
Alternatively, the step of whether the detection task configuration information updates includes:
Obtain the setup time of the task configuration information, and judge the setup time whether with history setup time phase
Together;
If the setup time is different from history setup time, judge that the task configuration information has updated;
If the setup time is identical with history setup time, judge that the task configuration information does not update.
Alternatively, the execution result information for receiving the pending task that the pending server returns, and
After the step of storing the execution result information, the task control management method further includes:
Judge whether the pending task runs succeeded according to the execution result information;
In the pending tasks carrying failure, obtained from the execution result information and perform failure cause, and shown
Show the execution failure cause.
Alternatively, it is described to judge that the step of whether pending task runs succeeded is wrapped according to the execution result information
Include:
Judge to whether there is successfully label in the execution result information;
If there is successfully label in the execution result information, the pending tasks carrying success is judged;
If successfully label is not present in the execution result information, the pending tasks carrying failure is judged.
Alternatively, it is described according to the execution result information judge the step of whether pending task runs succeeded it
Afterwards, the task control management method further includes:
In the pending tasks carrying failure, judge execution failure cause in the execution result information whether with
Default failure cause is identical;
When execution failure cause in the execution result information is identical with default failure cause, by described pending
Business and the pending strategy are transmitted to the pending server again.
In addition, to achieve the above object, the present invention also provides a kind of task control managing device, the task control management
Device includes:
Acquisition module is detected, for when detecting task configuring request, task to be obtained from the task configuring request
Configuration information, and pending task, pending tactful and pending server are obtained from the task configuration information;
Transport module, for by the pending task and the pending strategy transmission to the pending server,
So that the pending server is based on pending task described in the pending strategy execution;
Memory module is received, the implementing result letter of the pending task returned for receiving the pending server
Breath, and store the execution result information.
The present invention also provides a kind of task control management equipment, the task control management equipment includes:Memory, processing
Device and the task control management program that can be run on the memory and on the processor is stored in, the task control pipe
Reason program realizes following steps when being performed by the processor:
When detecting task configuring request, task configuration information is obtained from the task configuring request, and from described
Pending task, pending tactful and pending server are obtained in task configuration information;
By the pending task and the pending strategy transmission to the pending server, for described pending
Server is based on pending task described in the pending strategy execution;
The execution result information for the pending task that the pending server returns is received, and stores the execution
Result information.
The present invention also provides a kind of computer-readable recording medium, task is stored with the computer-readable recording medium
Control supervisor, the task control management program realize following steps when being executed by processor:
When detecting task configuring request, task configuration information is obtained from the task configuring request, and from described
Pending task, pending tactful and pending server are obtained in task configuration information;
By the pending task and the pending strategy transmission to the pending server, for described pending
Server is based on pending task described in the pending strategy execution;
The execution result information for the pending task that the pending server returns is received, and stores the execution
Result information.
The present invention provides a kind of task control management method, device, equipment and computer-readable recording medium, when detecting
During task configuring request, task configuration information is obtained from the task configuring request, and obtain and treat from the task configuration information
Execution task, pending tactful and pending server, then treat the pending task and the pending strategy transmission to this
Execute server, so that the pending server is based on the pending strategy execution pending task, finally receives this and waits to hold
The execution result information for the pending task that row server returns, and the execution result information is stored, this programme passes through unification
Execution task is managed, execution task can be configured, and the execution multiplexed transport of configuration to corresponding server is performed, realization is held
The flexible control of row task, in addition, receive the execution result information that server returns, is capable of the execution feelings of effective monitor task
Condition, easy to be safeguarded when tasks carrying fails.
Brief description of the drawings
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of task control management method first embodiment of the present invention;
Fig. 3 is the flow diagram of task control management method second embodiment of the present invention;
Fig. 4 is the refinement flow diagram whether the detection task configuration information described in Fig. 3 updates step;
Fig. 5 is the flow diagram of task control management method 3rd embodiment of the present invention;
Fig. 6 is judges whether the pending task runs succeeded step described in Fig. 5 according to the execution result information
Refinement flow diagram;
Fig. 7 is the high-level schematic functional block diagram of task control managing device first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:When detecting task configuring request, from the task configuring request
Middle acquisition task configuration information, and pending task, pending tactful and pending service are obtained from the task configuration information
Device, then by the pending task and the pending strategy transmission to the pending server, for the pending server base
In the pending strategy execution pending task, the execution for the pending task that the pending server returns finally is received
Result information, and store the execution result information.
Each server in server cluster can perform different tasks, but the triggering of task mainly by timer into
Row triggering can not realize the flexible control of task, it is necessary to set task in advance and perform the time, also can not effective monitor task
Implementation status, be not easy to management service.Therefore, how to realize the flexible control of task, and how effective monitoring task
Implementation status is current urgent problem to be solved.
The present invention provides a solution, and this programme can configure execution task by being managed collectively execution task, and
The execution multiplexed transport of configuration to corresponding server is performed, the flexible control of execution task is realized, in addition, receiving server
The execution result information of return, is capable of the implementation status of effective monitor task, easy to be safeguarded when tasks carrying fails.
As shown in Figure 1, the device structure schematic diagram for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to.
Equipment of the embodiment of the present invention can be PC or smart mobile phone, tablet computer, pocket computer etc. with aobvious
Show the packaged type terminal device of function.
As shown in Figure 1, the equipment can include:Processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used for realization the connection communication between these components.
User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or the memory of stabilization
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
Alternatively, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio
Circuit, WiFi module etc..Wherein, sensor ratio such as optical sensor, motion sensor and other sensors.Specifically, light
Sensor may include ambient light sensor and proximity sensor, wherein, ambient light sensor can according to the light and shade of ambient light come
The brightness of display screen is adjusted, proximity sensor can close display screen and/or backlight when equipment is moved in one's ear.As movement
One kind of sensor, gravity accelerometer can detect in all directions the size of (generally three axis) acceleration, when static
It can detect that size and the direction of gravity, application (such as horizontal/vertical screen switching, dependent game, magnetic available for identification equipment posture
Power meter pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, equipment can also configure gyroscope, gas
The other sensors such as meter, hygrometer, thermometer, infrared ray sensor are pressed, details are not described herein.
It will be understood by those skilled in the art that the device structure shown in Fig. 1 does not form the restriction to equipment, can wrap
Include than illustrating more or fewer components, either combine some components or different components arrangement.
As shown in Figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network
Believe module, Subscriber Interface Module SIM and task control management program.
In the equipment shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is carried out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And processor
1001 can be used for calling the task control management program stored in memory 1005, and perform following steps:
When detecting task configuring request, task configuration information is obtained from the task configuring request, and from described
Pending task, pending tactful and pending server are obtained in task configuration information;
By the pending task and the pending strategy transmission to the pending server, for described pending
Server is based on pending task described in the pending strategy execution;
The execution result information for the pending task that the pending server returns is received, and stores the execution
Result information.
Further, processor 1001 can be used for calling the task control management program stored in memory 1005, also
Perform following steps:
Task configuration information is obtained from database with interval preset time, and whether more to detect the task configuration information
Newly;
When detecting the task configuration information renewal, pending task is obtained from the task configuration information, is treated
Implementation strategy and pending server.
Further, processor 1001 can be used for calling the task control management program stored in memory 1005, also
Perform following steps:
Obtain the setup time of the task configuration information, and judge the setup time whether with history setup time phase
Together;
If the setup time is different from history setup time, judge that the task configuration information has updated;
If the setup time is identical with history setup time, judge that the task configuration information does not update.
Further, processor 1001 can be used for calling the task control management program stored in memory 1005, also
Perform following steps:
Judge whether the pending task runs succeeded according to the execution result information;
In the pending tasks carrying failure, obtained from the execution result information and perform failure cause, and shown
Show the execution failure cause.
Further, processor 1001 can be used for calling the task control management program stored in memory 1005, also
Perform following steps:
Judge to whether there is successfully label in the execution result information;
If there is successfully label in the execution result information, the pending tasks carrying success is judged;
If successfully label is not present in the execution result information, the pending tasks carrying failure is judged.
Further, processor 1001 can be used for calling the task control management program stored in memory 1005, also
Perform following steps:
In the pending tasks carrying failure, judge the execution failure cause in the execution result information whether be
Default failure cause;
When execution failure cause in the execution result information is default failure cause, will the pending task with
The pending strategy is transmitted to the pending server again.
The specific embodiment of task control management equipment of the present invention and each specific implementation of following task control management methods
Example is essentially identical, and therefore not to repeat here.
The present invention also provides a kind of task control management method.
With reference to Fig. 2, Fig. 2 is the flow diagram of task control management method first embodiment of the present invention.
In the present embodiment, which includes:
Step S101, when detecting task configuring request, task configuration information is obtained from the task configuring request,
And pending task, pending tactful and pending server are obtained from the task configuration information;
The task control management method is applied to task control management equipment, which can be with server
Each execute server length connection in cluster, carries out data interaction by network interface and each execute server, each holds
Row server possesses server identification, which is used to uniquely represent execute server, which can be
The IP address of execute server, or unique special numbering.The task control management equipment, which can control, each performs service
The execution task of device and the implementation strategy for performing task.Task control management equipment is configured in the receiving user of the task to be referred to
When making, task configuration interface is shown, which shows task config option, and user can be configured based on the task of display
Option selects task configuration information, also can incoming task configuration information, so as to configure execution task, execute server and perform plan
Slightly etc., and when receiving the task configuration information preservation instruction that user is triggered based on the task configuration interface, according to the task
Configuration information preserves instruction and stores the task configuration information to database.
The task configuration information is stored to database, triggers task configuring request, the task control management equipment
Whether Detection task configuring request is triggered, and is specially that field information is obtained from default storage region in real time or periodically, and sentence
Whether the disconnected field information is preset field information, when the field information is preset field information, judges task configuring request
It is triggered, at this time, task configuration information is obtained from the task configuring request, and obtains from the task configuration information pending
Task, pending tactful and pending server.The task configuration information includes pending task, pending tactful and pending
Server etc., the implementation strategy are included in the one or many execution tasks of some time point execution, perform one every preset time
Secondary or be performed a plurality of times and task and be immediately performed one or many execution task dispatchings, which can be the execution specified
Server or random execute server, can be more execute servers or separate unit execute server etc., the execution task
Type include inventory export class, such as activity registration inventory export, data statistics class, as client healthy behavior index count,
Data land class, and database, and other industry are synchronized to from other application program with information as examinee data is landed from caching
Business logical process, such as business personnel's leaving office data processing and ordinary user staging business person.It should be noted that pending
Business, pending tactful and pending server can be configured by those skilled in the art according to actual conditions, the present embodiment pair
This is not specifically limited.
Step S102, by the pending task and the pending strategy transmission to the pending server, for
The pending server is based on pending task described in the pending strategy execution;
The task control management equipment obtains pending task, pending tactful and pending clothes from task configuration information
It is engaged in after device, obtains the server identification of the pending server, and the pending server is obtained based on the service identifiers
IP address, the IP address for being then based on the pending server treat the pending task and pending strategy transmission to corresponding
Execute server, so that the pending server receives the pending task of task control management equipment transmission and pending plan
Slightly, and according to the pending strategy execution pending task, then after the execution task is completed, generation is corresponding to perform knot
Fruit information, and the execution result information is back to task control management equipment, for example, the pending strategy is to be immediately performed one
Secondary, which is activity registration inventory export, then the pending server immediately register from database by reading activity
Inventory, and the execution result information of generation activity registration inventory export task, and activity registration inventory and implementing result are believed
Breath is back to task control management equipment.
Step S103, receives the execution result information for the pending task that the pending server returns, and deposits
Store up the execution result information.
The task control management equipment receives the execution result information for the pending task that the pending server returns,
And the execution result information is stored, which includes running succeeded, performs failure or perform failure cause etc..Example
Such as, which is online marathon registration inventory export, and implementation strategy is performs when 1 is small, the pending service
Device is inventory Export server, then task control management equipment by online marathon register inventory derived from pending task, often
The implementation strategy that task is performed when 1 is small is sent to inventory Export server, then the inventory Export server receiving it is online
Marathon registration inventory export task and when the implementation strategy of task is performed when 1 is small, with every 1 it is small when perform the once line horse
Pull loose registration inventory export task, i.e., when 1 is small from service database export line marathon register inventory, and every time it is complete
During into online marathon registration inventory export task, corresponding execution result information is back to task control management equipment.
In specific implementation, which also periodically can read task configuration information from database, and
Obtain the task configuration information is currently configured the time, which is compared with history setup time, if
The time is currently configured after history setup time, then can be determined that task configuration information has renewal, matches somebody with somebody confidence from task at this time
Pending task, pending tactful and pending server are obtained in breath, then by the pending task and the pending strategy
It is transmitted to the pending server.
In the present embodiment, the present invention obtains task when detecting task configuring request from the task configuring request
Configuration information, and pending task, pending tactful and pending server are obtained from the task configuration information, then should
Pending task and the pending strategy transmission are to the pending server, so that the pending server is based on the pending plan
The pending task is slightly performed, finally receives the execution result information for the pending task that the pending server returns, and
The execution result information is stored, this programme can configure execution task by being managed collectively execution task, and by the execution of configuration
Multiplexed transport to corresponding server performs, and realizes the flexible control of execution task, in addition, receiving the execution knot that server returns
Fruit information, is capable of the implementation status of effective monitor task, easy to be safeguarded when tasks carrying fails.
Further, with reference to Fig. 3, based on above-mentioned first embodiment, it is proposed that the of task control management method of the present invention
Two embodiments, difference lies in before step S102, which further includes with previous embodiment:
Step S104, task configuration information is obtained with interval preset time from database, and detects the task configuration
Whether information updates;
It should be noted that the present invention is based on previous embodiment, it is proposed that another kind control manages the specific of execution task
Mode, is only explained below, other to can refer to previous embodiment.
The task control management equipment obtains task configuration information with interval preset time from database, and detects this
Whether business configuration information updates.
Specifically, it is the refinement flow diagram of step S104 described in Fig. 3 with reference to Fig. 4, Fig. 4, step S104 includes:
Step S1041, obtains the setup time of the task configuration information, and judge the setup time whether with history
Setup time is identical;
Step S1042, if the setup time is different from history setup time, judges the task configuration information more
Newly;
Step S1043, if the setup time is identical with history setup time, judges the task configuration information not more
Newly.
After the task control management equipment obtains task configuration information with interval preset time from database, obtaining should
The setup time of task configuration information, and judge whether the setup time is identical with history setup time, if the setup time
It is different from history setup time, then it can be determined that the task configuration information has updated, it is therefore desirable to which the task of renewal is matched somebody with somebody into confidence
Pending task and pending strategy transmission in breath is to corresponding pending server, if the setup time and history configuration
Time is identical, then can be determined that the task configuration information does not update, therefore without pending task and pending tactful transmission.
It should be noted that history setup time storage is in a register, and initial value is 0, is getting task configuration information
During setup time, the history setup time stored in register is updated to the task configuration information got, so that next time makes
With the preset time can be configured by those skilled in the art according to actual conditions, this is not limited specifically in the present embodiment
System.
Step S105, when detecting the task configuration information renewal, obtains from the task configuration information and waits to hold
Row task, pending tactful and pending server.
The task control management equipment is when detecting task configuration information renewal, from the task configuration information of the renewal
It is middle to obtain pending task, pending tactful and pending server, and by the pending task and the pending strategy transmission
To the pending server, so that the pending server is based on the pending strategy execution pending task, and receives and be somebody's turn to do
The execution result information for the pending task that pending server returns, and store the execution result information.
In the present embodiment, whether the present invention has more with the task configuration information in the preset time Test database of interval
Newly, can be in task configuration information update, the task configuration information based on renewal carries out the control management of execution task, reduces
The number of operations of user.
Further, with reference to Fig. 5, task control management method of the present invention is proposed based on above-mentioned first or second embodiments
3rd embodiment, difference lies in after step S103, which further includes with previous embodiment:
Step S106, judges whether the pending task runs succeeded according to the execution result information;
It should be noted that the present invention proposes a kind of specific monitor mode of execution task based on previous embodiment, with
Under be only explained, it is other to can refer to previous embodiment.
The task control management equipment is receiving the execution result information for the pending task that pending server returns
When, judge whether the pending task runs succeeded according to the execution result information.
Specifically, it is the refinement flow diagram of step S106 described in Fig. 5 with reference to Fig. 6, Fig. 6, step S106 includes:
Step S1061, judges to whether there is successfully label in the execution result information;
Step S1062, if there is successfully label in the execution result information, judge the pending tasks carrying into
Work(;
Step S1063, if successfully label is not present in the execution result information, judges the pending tasks carrying
Failure.
The task control management equipment is receiving the execution result information for the pending task that pending server returns
When, judge to whether there is successfully label in the execution result information, can if there is successfully label in the execution result information
To judge the pending tasks carrying success, if successfully label is not present in execution result information, this pending is judged
Business performs failure.
Step S107, in the pending tasks carrying failure, obtains from the execution result information and performs failure
Reason, and show the execution failure cause.
The task control management equipment is obtained from the execution result information and performed when the pending tasks carrying fails
Failure cause, and show the execution failure cause so that user can be solved the problems, such as based on the execution failure cause.
Alternatively, in the present embodiment, after step S106, further include:
In the pending tasks carrying failure, judge execution failure cause in the execution result information whether with
Default failure cause is identical;
When execution failure cause in the execution result information is identical with default failure cause, by described pending
Business and the pending strategy are transmitted to the pending server again.
It should be noted that the present invention proposes the specific monitor mode of another execution task based on previous embodiment,
Only it is explained below, it is other to can refer to previous embodiment.
The task control management equipment judges the execution in the execution result information when the pending tasks carrying fails
Whether failure cause is identical with default failure cause, if the execution failure cause in the execution result information and default failure are former
Because identical, then the pending task and the pending strategy are transmitted to the pending server again, for the pending clothes
Business device re-executes the pending task based on pending strategy, if the execution failure cause is different from default failure cause,
Then show the execution failure cause.For example, the default failure cause disconnects for network, which disconnects for network,
Then when network reconnects, the pending task and the pending strategy are transmitted to the pending server again.Need
Illustrate, which can be set by those skilled in the art according to actual conditions, and the present embodiment does not make this to have
Body limits.
In the present embodiment, the present invention can carry out execution task when performing mission failure based on failure cause is performed
Execution again, the frequency of failure of less execution task, in addition, also show perform failure cause, easy to user safeguard.
The present invention also provides a kind of task control managing device.
With reference to Fig. 7, Fig. 7 is the high-level schematic functional block diagram of task control managing device first embodiment of the present invention.
In the present embodiment, which includes:
Acquisition module 101 is detected, for when detecting task configuring request, obtaining and appointing from the task configuring request
Business configuration information, and pending task, pending tactful and pending server are obtained from the task configuration information;
Transport module 102, for by the pending task and the pending strategy transmission to the pending service
Device, so that the pending server is based on pending task described in the pending strategy execution;
Memory module 103 is received, the execution knot of the pending task returned for receiving the pending server
Fruit information, and store the execution result information.
Further, the detection acquisition module 101, is additionally operable to:
Task configuration information is obtained from database with interval preset time, and whether more to detect the task configuration information
Newly;
When detecting the task configuration information renewal, pending task is obtained from the task configuration information, is treated
Implementation strategy and pending server.
Further, the detection acquisition module 101, is additionally operable to:
Obtain the setup time of the task configuration information, and judge the setup time whether with history setup time phase
Together;
If the setup time is different from history setup time, judge that the task configuration information has updated;
If the setup time is identical with history setup time, judge that the task configuration information does not update.
Further, the task control managing device further includes:
Judgment module, for judging whether the pending task runs succeeded according to the execution result information;
Display module is obtained, in the pending tasks carrying failure, being obtained from the execution result information
Failure cause is performed, and shows the execution failure cause.
Further, the judgment module, is additionally operable to:
Judge to whether there is successfully label in the execution result information;
If there is successfully label in the execution result information, the pending tasks carrying success is judged;
If successfully label is not present in the execution result information, the pending tasks carrying failure is judged.
Further, the judgment module, is additionally operable in the pending tasks carrying failure, judges described to perform knot
Whether the execution failure cause in fruit information is identical with default failure cause;
The transport module, the execution failure cause being additionally operable in the execution result information and default failure cause phase
Meanwhile the pending task and the pending strategy are transmitted to the pending server again.
The specific embodiment of task control managing device of the present invention and each specific implementation of above-mentioned task control management method
Example is essentially identical, and therefore not to repeat here.
In addition, the embodiment of the present invention also proposes a kind of computer-readable recording medium, the computer-readable recording medium
On be stored with task control management program, the task control management program realizes following steps when being executed by processor:
When detecting task configuring request, task configuration information is obtained from the task configuring request, and from described
Pending task, pending tactful and pending server are obtained in task configuration information;
By the pending task and the pending strategy transmission to the pending server, for described pending
Server is based on pending task described in the pending strategy execution;
The execution result information for the pending task that the pending server returns is received, and stores the execution
Result information.
Further, following steps are realized when the task control management program is executed by processor:
Task configuration information is obtained from database with interval preset time, and whether more to detect the task configuration information
Newly;
When detecting the task configuration information renewal, pending task is obtained from the task configuration information, is treated
Implementation strategy and pending server.
Further, following steps are realized when the task control management program is executed by processor:
Obtain the setup time of the task configuration information, and judge the setup time whether with history setup time phase
Together;
If the setup time is different from history setup time, judge that the task configuration information has updated;
If the setup time is identical with history setup time, judge that the task configuration information does not update.
Further, following steps are realized when the task control management program is executed by processor:
Judge whether the pending task runs succeeded according to the execution result information;
In the pending tasks carrying failure, obtained from the execution result information and perform failure cause, and shown
Show the execution failure cause.
Further, following steps are realized when the task control management program is executed by processor:
Judge to whether there is successfully label in the execution result information;
If there is successfully label in the execution result information, the pending tasks carrying success is judged;
If successfully label is not present in the execution result information, the pending tasks carrying failure is judged.
Further, following steps are realized when the task control management program is executed by processor:
In the pending tasks carrying failure, judge execution failure cause in the execution result information whether with
Default failure cause is identical;
When execution failure cause in the execution result information is identical with default failure cause, by described pending
Business and the pending strategy are transmitted to the pending server again.
The specific embodiment of computer-readable recording medium of the present invention is each specific real with above-mentioned task control management method
It is essentially identical to apply example, therefore not to repeat here.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone,
Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of task control management method, it is characterised in that the task control management method comprises the following steps:
When detecting task configuring request, task configuration information is obtained from the task configuring request, and from the task
Pending task, pending tactful and pending server are obtained in configuration information;
By the pending task and the pending strategy transmission to the pending server, for the pending service
Device is based on pending task described in the pending strategy execution;
The execution result information for the pending task that the pending server returns is received, and stores the implementing result
Information.
2. task control management method as claimed in claim 1, it is characterised in that described by the pending task and described
Before pending strategy transmission to the pending server step, the task control management method further includes:
Task configuration information is obtained from database with interval preset time, and detects whether the task configuration information updates;
When detecting task configuration information renewal, pending task, pending is obtained from the task configuration information
Tactful and pending server.
3. task control management method as claimed in claim 2, it is characterised in that the detection task configuration information is
The step of no renewal, includes:
The setup time of the task configuration information is obtained, and judges whether the setup time is identical with history setup time;
If the setup time is different from history setup time, judge that the task configuration information has updated;
If the setup time is identical with history setup time, judge that the task configuration information does not update.
4. the task control management method as any one of claim 1-3, it is characterised in that wait to hold described in the reception
The execution result information for the pending task that row server returns, and the step of store the execution result information after,
The task control management method further includes:
Judge whether the pending task runs succeeded according to the execution result information;
In the pending tasks carrying failure, obtained from the execution result information and perform failure cause, and show institute
State execution failure cause.
5. task control management method as claimed in claim 4, it is characterised in that described to be sentenced according to the execution result information
The step of whether pending task of breaking runs succeeded includes:
Judge to whether there is successfully label in the execution result information;
If there is successfully label in the execution result information, the pending tasks carrying success is judged;
If successfully label is not present in the execution result information, the pending tasks carrying failure is judged.
6. task control management method as claimed in claim 4, it is characterised in that described to be sentenced according to the execution result information
After the step of whether pending task of breaking runs succeeded, the task control management method further includes:
In the pending tasks carrying failure, judge the execution failure cause in the execution result information whether with presetting
Failure cause is identical;
When execution failure cause in the execution result information is identical with default failure cause, by the pending task and
The pending strategy is transmitted to the pending server again.
7. a kind of task control managing device, it is characterised in that the task control managing device includes:
Acquisition module is detected, for when detecting task configuring request, task configuration to be obtained from the task configuring request
Information, and pending task, pending tactful and pending server are obtained from the task configuration information;
Transport module, for by the pending task and the pending strategy transmission to the pending server, for
The pending server is based on pending task described in the pending strategy execution;
Memory module is received, the execution result information of the pending task returned for receiving the pending server,
And store the execution result information.
8. task control managing device as claimed in claim 7, it is characterised in that the detection acquisition module, is additionally operable to:
Task configuration information is obtained from database with interval preset time, and detects whether the task configuration information updates;
When detecting task configuration information renewal, pending task, pending is obtained from the task configuration information
Tactful and pending server.
9. a kind of task control management equipment, it is characterised in that the task control management equipment includes:Memory, processor
And the task control management program that can be run on the memory and on the processor is stored in, the task control management
Program realizes following steps when being performed by the processor:
When detecting task configuring request, task configuration information is obtained from the task configuring request, and from the task
Pending task, pending tactful and pending server are obtained in configuration information;
By the pending task and the pending strategy transmission to the pending server, for the pending service
Device is based on pending task described in the pending strategy execution;
The execution result information for the pending task that the pending server returns is received, and stores the implementing result
Information.
10. a kind of computer-readable recording medium, it is characterised in that task control is stored with the computer-readable recording medium
Management program processed, the task control management program realize following steps when being executed by processor:
When detecting task configuring request, task configuration information is obtained from the task configuring request, and from the task
Pending task, pending tactful and pending server are obtained in configuration information;
By the pending task and the pending strategy transmission to the pending server, for the pending service
Device is based on pending task described in the pending strategy execution;
The execution result information for the pending task that the pending server returns is received, and stores the implementing result
Information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711101604.5A CN107908487B (en) | 2017-11-08 | 2017-11-08 | Task control management method, device and equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711101604.5A CN107908487B (en) | 2017-11-08 | 2017-11-08 | Task control management method, device and equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107908487A true CN107908487A (en) | 2018-04-13 |
CN107908487B CN107908487B (en) | 2020-11-24 |
Family
ID=61844483
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711101604.5A Active CN107908487B (en) | 2017-11-08 | 2017-11-08 | Task control management method, device and equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107908487B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542591A (en) * | 2018-10-17 | 2019-03-29 | 深圳壹账通智能科技有限公司 | Task compensation deals method, apparatus, computer equipment and storage medium |
CN109684095A (en) * | 2018-12-26 | 2019-04-26 | 北京奇艺世纪科技有限公司 | A kind of task processing method and task distributing equipment |
CN110009381A (en) * | 2018-12-27 | 2019-07-12 | 香港乐蜜有限公司 | A kind of active configuration method, apparatus, electronic equipment and storage medium |
CN110347492A (en) * | 2019-07-15 | 2019-10-18 | 深圳前海乘势科技有限公司 | Distributed task dispatching method and apparatus based on time parameter method |
CN111694671A (en) * | 2020-06-12 | 2020-09-22 | 北京金山云网络技术有限公司 | Big data component management method, device, server, electronic equipment and system |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006338197A (en) * | 2005-05-31 | 2006-12-14 | Fujitsu Ltd | Transaction control program, transaction control method, and transaction processing system |
CN101009583A (en) * | 2006-01-24 | 2007-08-01 | 华为技术有限公司 | Execution method of the scheduled task and execution task of management task, and its terminal device |
US7412701B1 (en) * | 2002-04-22 | 2008-08-12 | Cisco Technology, Inc. | Method for network management using a virtual machine in a network device |
CN101707543A (en) * | 2009-11-30 | 2010-05-12 | 北京中科大洋科技发展股份有限公司 | Enterprise media bus system supporting multi-task type and enterprise media bus method supporting multi-task type |
CN102567106A (en) * | 2010-12-30 | 2012-07-11 | 中国移动通信集团云南有限公司 | Task scheduling method, system and device |
CN106557356A (en) * | 2015-09-25 | 2017-04-05 | 阿里巴巴集团控股有限公司 | A kind of task processing method and device |
CN106681810A (en) * | 2016-12-08 | 2017-05-17 | 乐视控股(北京)有限公司 | Task docking processing customized management method, device and electronic equipment |
CN107203814A (en) * | 2017-04-26 | 2017-09-26 | 消检通(深圳)科技有限公司 | A kind of management of fire fighting equipment method, device and readable storage medium storing program for executing |
CN107291547A (en) * | 2016-03-31 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of task scheduling processing method, apparatus and system |
CN107330771A (en) * | 2017-07-24 | 2017-11-07 | 杨润丁 | Task management method and device |
-
2017
- 2017-11-08 CN CN201711101604.5A patent/CN107908487B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7412701B1 (en) * | 2002-04-22 | 2008-08-12 | Cisco Technology, Inc. | Method for network management using a virtual machine in a network device |
JP2006338197A (en) * | 2005-05-31 | 2006-12-14 | Fujitsu Ltd | Transaction control program, transaction control method, and transaction processing system |
CN101009583A (en) * | 2006-01-24 | 2007-08-01 | 华为技术有限公司 | Execution method of the scheduled task and execution task of management task, and its terminal device |
CN101707543A (en) * | 2009-11-30 | 2010-05-12 | 北京中科大洋科技发展股份有限公司 | Enterprise media bus system supporting multi-task type and enterprise media bus method supporting multi-task type |
CN102567106A (en) * | 2010-12-30 | 2012-07-11 | 中国移动通信集团云南有限公司 | Task scheduling method, system and device |
CN106557356A (en) * | 2015-09-25 | 2017-04-05 | 阿里巴巴集团控股有限公司 | A kind of task processing method and device |
CN107291547A (en) * | 2016-03-31 | 2017-10-24 | 阿里巴巴集团控股有限公司 | A kind of task scheduling processing method, apparatus and system |
CN106681810A (en) * | 2016-12-08 | 2017-05-17 | 乐视控股(北京)有限公司 | Task docking processing customized management method, device and electronic equipment |
CN107203814A (en) * | 2017-04-26 | 2017-09-26 | 消检通(深圳)科技有限公司 | A kind of management of fire fighting equipment method, device and readable storage medium storing program for executing |
CN107330771A (en) * | 2017-07-24 | 2017-11-07 | 杨润丁 | Task management method and device |
Non-Patent Citations (1)
Title |
---|
晚来风急: "任务和调度:理解批量处理的关键设计", 《HTTPS://YQ.ALIYUN.COM/ARTICLES/219570》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542591A (en) * | 2018-10-17 | 2019-03-29 | 深圳壹账通智能科技有限公司 | Task compensation deals method, apparatus, computer equipment and storage medium |
CN109684095A (en) * | 2018-12-26 | 2019-04-26 | 北京奇艺世纪科技有限公司 | A kind of task processing method and task distributing equipment |
CN109684095B (en) * | 2018-12-26 | 2021-03-23 | 北京奇艺世纪科技有限公司 | Task processing method and task distribution equipment |
CN110009381A (en) * | 2018-12-27 | 2019-07-12 | 香港乐蜜有限公司 | A kind of active configuration method, apparatus, electronic equipment and storage medium |
CN110347492A (en) * | 2019-07-15 | 2019-10-18 | 深圳前海乘势科技有限公司 | Distributed task dispatching method and apparatus based on time parameter method |
CN111694671A (en) * | 2020-06-12 | 2020-09-22 | 北京金山云网络技术有限公司 | Big data component management method, device, server, electronic equipment and system |
CN111694671B (en) * | 2020-06-12 | 2023-09-01 | 北京金山云网络技术有限公司 | Big data component management method, device, server, electronic equipment and system |
Also Published As
Publication number | Publication date |
---|---|
CN107908487B (en) | 2020-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107908487A (en) | Task control management method, device, equipment and computer-readable recording medium | |
CN106844137A (en) | The monitoring method and device of server | |
US20160241589A1 (en) | Method and apparatus for identifying malicious website | |
CN108989266A (en) | A kind of processing method for preventing webpage from kidnapping and client and server | |
CN108353094A (en) | For M2M service layers across resource subscription | |
US20150156257A1 (en) | Application service providing method and system, and related device | |
CN108304205A (en) | A kind of update method of application program, terminal and computer readable storage medium | |
JP6739648B2 (en) | Wireless network type detection method and apparatus and electronic device | |
CN106557962A (en) | Method of payment, apparatus and system | |
CN104580177B (en) | Resource provider method, device and system | |
CN108616499A (en) | A kind of method for authenticating of application program, terminal and computer readable storage medium | |
CN108804484A (en) | The data measures and procedures for the examination and approval, equipment and computer readable storage medium | |
CN107896249A (en) | Across a network area data access method, device, equipment and storage medium | |
CN110399583A (en) | Page display method, device, electronic equipment and storage medium | |
CN108549826A (en) | Method of calibration, terminal, server and the readable storage medium storing program for executing of application program | |
CN107479798A (en) | Multi-screen interaction method and device | |
CN110035181A (en) | It is a kind of to apply card theme setting method and terminal fastly | |
CN107807830A (en) | Medical software update method and server based on cluster | |
CN111475359B (en) | System testing method, device and storage medium under multi-message interaction scene | |
CN106209918A (en) | The method of a kind of internet security management and terminal | |
CN108039956A (en) | Using monitoring method, system and computer-readable recording medium | |
CN107943666A (en) | Client performance Data Trend Monitor method, apparatus and computer-readable recording medium | |
CN108037963A (en) | Automatic deployment method, device and the computer-readable recording medium of device software | |
CN108182090A (en) | Flash plug-in loading methods and device based on blink kernels | |
CN109802945A (en) | A kind of data transmission method and terminal device |
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 |