CN105468500A - Timing task monitoring method and device - Google Patents

Timing task monitoring method and device Download PDF

Info

Publication number
CN105468500A
CN105468500A CN201510782816.9A CN201510782816A CN105468500A CN 105468500 A CN105468500 A CN 105468500A CN 201510782816 A CN201510782816 A CN 201510782816A CN 105468500 A CN105468500 A CN 105468500A
Authority
CN
China
Prior art keywords
timed task
heavily
task
run
control table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510782816.9A
Other languages
Chinese (zh)
Other versions
CN105468500B (en
Inventor
谢豪运
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201510782816.9A priority Critical patent/CN105468500B/en
Publication of CN105468500A publication Critical patent/CN105468500A/en
Application granted granted Critical
Publication of CN105468500B publication Critical patent/CN105468500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback

Abstract

The invention provides a timing task monitoring method and device. The method comprises the following steps: creating a monitor for each timing task; and scanning a timing task control table through the monitor to carry out monitoring, wherein the timing task control table comprises a task ID (Identifier), an operation state and a monitoring state. When the method and the device disclosed by the invention are implemented, the timing tasks of different servers can be automatically monitored and re-run so as to bring convenience for monitoring personnel to monitor through the page of computer equipment.

Description

Timed task method for supervising and device
Technical field
The present invention relates to data processing field, specifically, relate to timed task method for supervising and device.
Background technology
Because the demand of associated traffic data increases gradually, and the real-time of demand and accuracy requirement improve, and these all require that system server carries out process business on time, accurately automatically.But, in the operational process of system server, there is the unreliable factor that many influential system normally run, such as, network is obstructed, system delays machine, source data resolves failure and object service does not respond, and all can affect the normal process of service related data.In order to when system server is made mistakes, can adopt remedial measures in time, need to monitor timed task, the method remedied is provided simultaneously.Then, what prior art adopted is intrinsic timed task framework, under so intrinsic framework, cannot realize the monitoring of timed task and heavily run.
Summary of the invention
For solving the problems of the technologies described above, the invention provides timed task method for supervising and device.
According to the first aspect of embodiment of the present invention, provide a kind of timed task method for supervising, the method can comprise: for each timed task creates audiomonitor; Monitored by the control table of described audiomonitor scanning timed task, wherein, described timed task control table comprises task identification ID, running status and listening state.
In certain embodiments of the present invention, described method also comprises: described audiomonitor is saved in scheduler global object, and described scheduler global object is saved in the static variable of Econstants class.
In certain embodiments of the present invention, described timed task control table also comprises following one or more: heavily run the date, perform frequency explanation, task names, task description, start time, end time and button.
In certain embodiments of the present invention, described method also comprises: the value of heavily running the date determining the first timed task in described timed task control table, if the value on described heavy race date is predetermined value, then directly described first timed task is heavily run in request, if the value on described heavy race date is other numerical value outside described predetermined value, then receive the heavily race date of user's input, and heavily run described first timed task according to the heavily race date of described input.
In certain embodiments of the present invention, described method also comprises: when each timed task brings into operation, and performs in flowing water table the Flow Record inserted described each timed task, and record the job start time of described each timed task at timed task.
In certain embodiments of the present invention, described method also comprises: when timed task success, upgrades the job end time in described timed task execution flowing water table and operation result; And when timed task failure, upgrade the task run result in described timed task execution flowing water table, and misregistration reason.
According to the second aspect of embodiment of the present invention, provide a kind of timed task method for supervising, the method can comprise: create timed task and heavily run control table, wherein, described timed task heavily runs the failure record that control table comprises timed task; Scan described timed task and heavily run control table, and heavily run script heavily to run timed task corresponding to described failure record according to the failure record triggering that described timed task heavily runs in control table.
In certain embodiments of the present invention, described heavy race script is configured to the heavily race parameter receiving user's input, and described heavy race parameter comprises heavy stopwatch name and heavily runs the date.
In certain embodiments of the present invention, the timed task that the described failure record of described heavy race is corresponding comprises: heavily run timed task corresponding to described failure record according to the parameter of heavily running that described heavy race script receives.
In certain embodiments of the present invention, described method also comprises: after heavily running timed task corresponding to described failure record, judge whether successfully to generate heavily to run destination file, if, then delete described timed task and heavily run described failure record in control table, if not, then revise described timed task and heavily run failure record in control table.
According to the third aspect of embodiment of the present invention, provide a kind of timed task supervising device, this device can comprise: creation module, for creating audiomonitor for each timed task; Scan module, for being monitored by the control table of described audiomonitor scanning timed task, wherein, described timed task control table comprises task identification ID, running status and listening state
In certain embodiments of the present invention, described creation module, also for described audiomonitor is saved in scheduler global object, and is saved in the static variable of Econstants class by described scheduler global object.
In certain embodiments of the present invention, described timed task control table also comprises following one or more: heavily run the date, perform frequency explanation, task names, task description, start time, end time and button.
In certain embodiments of the present invention, described device also comprises: judge module, for determining the value of heavily running the date of the first timed task in described timed task control table; Heavily run module, for directly asking heavily to run described first timed task when the value on described heavy race date is predetermined value, receive the heavily race date of user's input when the value on described heavy race date is other numerical value outside described predetermined value, and heavily run described first timed task according to the heavily race date of described input.
In certain embodiments of the present invention, described device also comprises: insert module, for when each timed task brings into operation, perform in flowing water table the Flow Record inserted described each timed task at timed task, and record the job start time of described each timed task.
In certain embodiments of the present invention, described insert module, also perform job end time in flowing water table and operation result for upgrading described timed task when timed task success, and the task run result upgraded when timed task failure in described timed task execution flowing water table, and misregistration reason.
According to the fourth aspect of embodiment of the present invention, provide a kind of timed task supervising device, this device can comprise: arrange module, heavily runs control table for creating timed task, and wherein, described timed task heavily runs the failure record that control table comprises timed task; Control module, heavily runs control table for scanning described timed task, and heavily runs script heavily to run timed task corresponding to described failure record according to the failure record triggering that described timed task heavily runs in control table.
In certain embodiments of the present invention, described heavy race script is configured to the heavily race parameter receiving user's input, and described heavy race parameter comprises heavy stopwatch name and heavily runs the date.
In certain embodiments of the present invention, the timed task that described control module heavily runs described failure record corresponding comprises: heavily run timed task corresponding to described failure record according to the parameter of heavily running that described heavy race script receives.
In certain embodiments of the present invention, described device also comprises: maintenance module, for after heavily running timed task corresponding to described failure record, judge whether successfully to generate heavily to run destination file, if, then delete described timed task and heavily run described failure record in control table, if not, then revise described timed task and heavily run failure record in control table.
Implement timed task method for supervising provided by the invention and device, can realize the automatic monitoring of the timed task of different server and heavily run, facilitating monitor staff to be monitored by the page of computer equipment.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the timed task method for supervising according to one embodiment of the present invention;
Fig. 2 is the timed task monitoring Organization Chart according to one embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the timed task method for supervising according to one embodiment of the present invention;
Fig. 4 is the schematic flow sheet monitored according to the timed task of one embodiment of the present invention;
Fig. 5 is the structural representation of the timed task supervising device according to one embodiment of the present invention
Fig. 6 is the structural representation of the timed task supervising device according to one embodiment of the present invention.
Embodiment
Be described in detail to various aspects of the present invention below in conjunction with the drawings and specific embodiments.Wherein, well-known module, unit and connection each other, link, communication or operation do not illustrate or do not elaborate.Further, described feature, framework or function can combine by any way in one or more embodiments.It will be appreciated by those skilled in the art that following various embodiments are only for illustrating, but not for limiting the scope of the invention.Can also easy understand, the module in each embodiment described herein and shown in the drawings or unit or processing mode can be undertaken combining and designing by various different configuration.
It should be noted that, the timed task in embodiment of the present invention refers to that computer system performs by the frequency initiating task of specifying.Under timed task heavily runs and refers to that, Server Restart obstructed at network etc. can not resist factor, timed task does not normally perform, and timed task needs to have re-executed to reach the function and demand data of specifying.
Embodiment of the present invention provides a kind of timed task method for supervising, and this timed task method for supervising is applicable to the timed task monitoring of WEB application server and heavily runs.In WEB application server, timed task controls timed task trigger by quartz timed task framework, and trigger calls corresponding business processing class and processes.
See the schematic flow sheet that Fig. 1, Fig. 1 are the timed task method for supervising according to one embodiment of the present invention, this method for supervising can comprise:
S101, for each timed task creates audiomonitor,
S102, is monitored by the control table of described audiomonitor scanning timed task.
In embodiments of the present invention, timed task control table comprise the task identification ID of timed task, this timed task running status (such as, running status can comprise executed, perform medium) and the listening state (such as, listening state can comprise having started monitor or stopped monitoring) of this timed task.
Below for a concrete timed task monitoring framework, the flow process that in WEB application server, timed task is monitored is described.See the timed task monitoring Organization Chart that Fig. 2, Fig. 2 are according to one embodiment of the present invention.
See Fig. 2, first, in the initialization of timed task queue, resolve quartz_data.xml file, for each timed task in WEB application server creates audiomonitor (EQuartzInitializerListener) 201, and the audiomonitor 201 of establishment is saved in scheduler global object 202.Then, the factory object containing scheduler is saved in the static variable of Econstants class, facilitates the timing task management Javabean on follow-up backstage to conduct interviews amendment to factory object.
Scheduler global object carries out scheduling controlling to multiple timed task (task 3 such as, in Fig. 2, task 2 etc.).It should be noted that, embodiments of the present invention also can comprise timed task and perform flowing water table, for carrying out Flow Record to timed task.When each timed task brings into operation, perform the Flow Record inserting each timed task in flowing water table at timed task, and record the job start time of each timed task.Such as, the function of the such form of insertJobExcFlow (jobId, startTime) can be adopted to insert, and wherein, jobId parameter is timed task mark, and startTime parameter is the start time of this timed task.After after timed task is finished, the execution result of each timed task is inserted/is updated to timed task and perform in flowing water table.Specifically, the execution result of a timed task can be divided into two classes, Mission Success and mission failure.When this timed task success, upgrade the end time of this timed task in above-mentioned timed task execution flowing water table and the operation result of this timed task; When this timed task failure, upgrade the operation result that above-mentioned timed task performs this timed task in flowing water table, and record the error reason of this timed task.Such as, updateJobExcFlow (flowNo can be adopted, endTime, result, errorMsg) such function upgrades, wherein, flowNo parameter is that this timed task performs the flowline numbering in flowing water table at timed task, endTime parameter is the end time of this timed task, and result parameter is the operation result of this timed task, and errorMsg parameter is the error reason of this timed task failure.As shown in Figure 2, flowing water table is performed for timed task to be monitored by the alarm monitoring processing module of outside.
The operation conditions that timed task is monitored in timed task control table 203 is scanned by audiomonitor 201.Timed task control table 203 of the present invention, except can comprising the task identification ID of above-mentioned timed task, running status and listening state, also can comprise following one or more: heavily run the date, perform frequency explanations, task names, task description, the start time, end time, heavily race state and button.Wherein, the data in timed task control table 203 and quartz_data.xml data syn-chronization.Heavily the race date is the date field Job_DATA_DATETYPE in timed task control table E_JOB_CONTROLLER, and its value can be predetermined value (such as, 0), also can be other numerical value outside predetermined value.Execution frequency illustrates, is the execution frequency of timed task, such as, can be set to 1:00 AM execution every day.Perform frequency can the execution frequency in real time modifying memory queue be configured.Start time and end time can be the nearest start time of timed task and nearest end time.Button, can be set to start or stop.Timed task control table can be illustrated on the monitoring page of user, facilitates user to check the operation conditions of timed task at any time.
And, the mode that embodiments of the present invention can also be configured by backstage controls startup and the time-out of timed task, such as, by back-stage management page startup/suspended task, and by backstage timing task management Bean204, the startup/halted state of timed task is updated in timed task control table.Such as, the function that can pass through rescheduleJob (triggerName, triggerGroup, triggerObj) such carrys out initiating task, the function such by pauseTrigger (triggerName, triggerGroup) carrys out suspended task.But, allow to suspend in the middle part of the operational process of timed task.Further, the buttons such as interpolation, editor can be set at the administration page of timed task, conveniently timed task control table be inserted and retouching operation.
In embodiments of the present invention, heavily can run according to the value of heavily running the date of the first timed task in timed task control table 203.If the value of heavily running the date be predetermined value (such as, 0), then directly described first timed task is heavily run in request, if the value of heavily running the date is other numerical value outside this predetermined value, then receive the heavily race date of user's input, and heavily run this first timed task according to the heavily race date of described input.Wherein, the first timed task can be any one timed task in timed task control table.If timed task heavily runs successfully, then refresh timing task control table 203, modifies the heavily race state of this timed task of timed task control table 203, if heavily run failure, is then reported an error by the timing task management page.
Embodiment of the present invention is to WEB application server, by adding the mode of independent audiomonitor to each timed task, monitor the running status of each timed task, the error message of real time record timed task, and controlled operation and the time-out of timed task by backstage configuration mode, thus achieve heavily race and the monitoring of timed task.
Present invention also offers a kind of timed task method for supervising, this timed task method for supervising is applicable to the timed task monitoring of file server.In file server, timed task is that shell script is called in the crontab timed task service timing provided by linux, shell script calls the service be distributed on TUXEDO (TransactionforUNIXhasbeenExtendedforDistributedOperation is distributed the UNIX transaction system after formula operation expansion) again and realizes business function.
See the schematic flow sheet that Fig. 3, Fig. 3 are the timed task method for supervising according to one embodiment of the present invention, the method can comprise:
S301, create timed task and heavily run control table, wherein, described timed task heavily runs the failure record that control table comprises timed task;
S302, scans described timed task and heavily runs control table, and heavily runs script heavily to run timed task corresponding to described failure record according to the failure record triggering that described timed task heavily runs in control table.
In embodiments of the present invention, newly-increased timed task is needed heavily to run control table E_FILEJOB_RERUN_CONTROLLER and timing Detection task.Wherein, timed task heavily runs control table E_FILEJOB_RERUN_CONTROLLER, for the failure record of recording timing task, is detected by the timing Detection task increased newly.Timing Detection task, heavily runs control table by scanning timed task, heavily runs the failure record in control table, trigger and heavily run script, thus heavily run timed task corresponding to this failure record according to the timed task of scanning acquisition.Wherein, heavily run script and can be configured to the heavily race parameter receiving user's input, such as, the date at heavy stopwatch name and this heavy stopwatch place can be comprised.Heavily running of timed task can heavily run timed task corresponding to failure record according to the parameter of heavily running of heavily running script reception.After heavily running timed task corresponding to failure record, judge whether successfully to generate and heavily run record result, record result is heavily run if successfully generate, then can delete timed task and heavily run this failure record in control table, if record result is heavily run in unsuccessful generation, then amendment timed task heavily runs the failure record in control table.
Present invention also offers the operation that amendment timed task heavily runs the increase of control table E_FILEJOB_RERUN_CONTROLLER, deletion, amendment and inspection.The amendment that public method realizes heavily running timed task control table can be called by assigned address in existing timed task program.And the timed task can also monitoring file server by the page heavily runs control table.
Below for a concrete timed task monitoring framework, the flow process of timed task monitoring in supporting paper server.It is the schematic flow sheet monitored according to the timed task of one embodiment of the present invention see Fig. 4, Fig. 4.
In the embodiment shown in Fig. 4, file server is for CAS (ChannelAnalysisSystem, channel analysis system) provides data.Wherein, corresponding to step S401 ~ S406 is heavily run timed task, and corresponding to step S407 ~ S411 is that CAS is for number timed task.Heavily run timed task can comprise: step S401, crontab dispatch service; Step 402, crontab timing (such as, 1 hour) calls and heavily runs script call_RERUN_UNLOAD.sh; Step S403, scanning timed task heavily runs control table E_FILEJOB_RERUN_CONTROLLER, such as, heavily runs control table by the timed task in Query Database; Step S404, determine that timed task heavily runs in control table E_FILEJOB_RERUN_CONTROLLER and whether there is the CAS that can heavily run and heavily run task, namely, determines that timed task heavily runs the failure record in control table, if do not exist and heavily run task, then return step S401; If exist and heavily run task, then perform step S405, renewal timed task heavily runs the running status of this timed task in control table and is revised as successfully, then, perform step S406, call the heavy stopwatch name of call_EPAY_CAS_UNLOAD.sh script appointment and heavily run the date and unload number (wherein, EPAY represents electronic fare payment system), then triggered step S409, call_EPAY_CAS_UNLOAD.sh, and call TUXEDO service EPAY_CAS_UNLOAD.Before step S409, CAS, for number timed task, also performs step S407, crontab dispatch service, and step S408, crontab invoke script call_EPAY_CAS_UNLOAD.sh.After step S409, step S410, the EPAY_CAS_UNLOAD service that performs is according to the heavy stopwatch name of specifying and heavily run the date and carry out timed task and heavily run, and after timed task is heavily run through into, execution step S411, carries out unloading number, generation destination file, then, perform step S412, judge whether successfully to generate destination file, if not, namely, successfully could not generate destination file, then perform step S415, amendment timed task heavily runs the heavily race state of this timed task in control table, if, namely, successfully generate destination file, then perform step S413, call TUXEDO Ftp server and destination file is transferred to CAS, then, perform step S414, if transmission success, then delete timed task and heavily run heavily race record corresponding in control table, if unsuccessful transmission, then perform step S415, amendment timed task heavily runs the heavily race state of this timed task in control table.The maintenance that timed task heavily runs control table all can be synchronized in database in step S415 and step S416.Watch-dog is by heavily running control table to the operation of database by page presentation timed task, and the timed task of monitoring file server heavily runs.
Embodiment of the present invention additionally provides a kind of timed task supervising device, and this supervising device can be deployed on WEB application server, for carrying out timed task monitoring and heavily running.
See the structural representation that Fig. 5, Fig. 5 are the timed task supervising devices according to one embodiment of the present invention, this device 500 can comprise:
Creation module 501, for creating audiomonitor for each timed task;
Scan module 502, for being monitored by the control table of described audiomonitor scanning timed task, wherein, described timed task control table comprises task identification ID, running status and listening state.
In embodiments of the present invention, creation module 501 can be each timed task and creates audiomonitor, scan module 502 is monitored by the control table of audiomonitor scanning timed task, wherein, described timed task control table comprises task identification ID, (such as, running status can comprise executed, perform medium) and the listening state (such as, listening state can comprise having started monitor or stopped monitoring) of this timed task.In a kind of concrete embodiment, the framework of device 500 can see Fig. 2.
Described audiomonitor can also be saved in scheduler global object by creation module 501, and described scheduler global object is saved in the static variable of Econstants class, facilitates the access of the timing task management Javabean on follow-up backstage to revise.
The timed task control table of embodiment of the present invention also can comprise following one or more: heavily run the date, perform frequency explanations, task names, task description, the start time, end time, heavily race state and button.Wherein, the data in timed task control table and quartz_data.xml data syn-chronization.Heavily the race date is the date field Job_DATA_DATETYPE in timed task control table E_JOB_CONTROLLER, and its value can be predetermined value (such as, 0), also can be other numerical value outside predetermined value.Execution frequency illustrates, is the execution frequency of timed task, such as, can be set to 1:00 AM execution every day.Perform frequency can the execution frequency in real time modifying memory queue be configured.Start time and end time can be the nearest start time of timed task and nearest end time.Button, can be set to start or stop.Timed task control table can be illustrated on the monitoring page of user, facilitates user to check the operation conditions of timed task at any time.
In certain embodiments of the present invention, timed task supervising device 500 also can comprise judge module and heavily run module, wherein, judge module, for determining the value of heavily running the date of the first timed task in described timed task control table (wherein, the first timed task can be any one timed task in timed task control table); Heavily run module, for described heavy race the date value be predetermined value (such as, 0) directly ask time heavily to run this first timed task, the value of heavily running the date be other numerical value outside described predetermined value (such as, other numerical value outside 0) time receive heavily race date of user's input, and heavily run this first timed task according to the heavily race date that this user inputs.
In certain embodiments of the present invention, timed task supervising device 500 also can comprise insert module, insert module is when each timed task brings into operation, perform in flowing water table the Flow Record inserted described each timed task at timed task, and record the job start time of described each timed task.Insert module can also upgrade described timed task and perform job end time in flowing water table and operation result when timed task success, and the task run result upgraded when timed task failure in described timed task execution flowing water table, and misregistration reason.
Embodiments of the present invention additionally provide a kind of timed task supervising device, and this device is applicable to the timed task monitoring of file server.See the structural representation that Fig. 6, Fig. 6 are the timed task supervising devices according to one embodiment of the present invention, this device 600 can comprise:
Arranging module 601, heavily running control table for creating timed task, wherein, described timed task heavily runs the failure record that control table comprises timed task;
Control module 602, heavily runs control table for scanning described timed task, and heavily runs script heavily to run timed task corresponding to described failure record according to the failure record triggering that described timed task heavily runs in control table.
In embodiments of the present invention, arrange module 601 and can create timed task and heavily run control table, wherein, described timed task heavily runs the failure record that control table comprises timed task.Control module can scan described timed task and heavily run control table, and heavily runs script heavily to run timed task corresponding to described failure record according to the failure record triggering that described timed task heavily runs in control table.Wherein, the concrete monitor procedure of the modules of timed task supervising device 600 can with reference to figure 4.
In embodiments of the present invention, heavily run the heavily race parameter that script is configured to receive user's input, described heavy race parameter comprises heavy stopwatch name and heavily runs the date.Accordingly, the timed task heavily running failure record corresponding can comprise: the parameter of heavily running according to heavily running script reception heavily runs timed task corresponding to described failure record.
In embodiments of the present invention, timed task supervising device 600 also can comprise maintenance module, this maintenance module can after heavily running timed task corresponding to described failure record, judge whether successfully to generate heavily to run destination file, if, then delete described timed task and heavily run described failure record in control table, if not, then revise described timed task and heavily run failure record in control table.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode of software combined with hardware platform, can certainly all be implemented by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, smart mobile phone or the network equipment etc.) perform the method described in some part of each embodiment of the present invention or embodiment.
The term used in instructions of the present invention and wording, just to illustrating, are not meaned and are formed restriction.It will be appreciated by those skilled in the art that under the prerequisite of the ultimate principle not departing from disclosed embodiment, can various change be carried out to each details in above-mentioned embodiment.Therefore, scope of the present invention is only determined by claim, and in the claims, except as otherwise noted, all terms should be understood by the most wide in range rational meaning.

Claims (20)

1. a timed task method for supervising, is characterized in that, described method comprises:
For each timed task creates audiomonitor;
Monitored by the control table of described audiomonitor scanning timed task, wherein, described timed task control table comprises task identification ID, running status and listening state.
2. method according to claim 1, is characterized in that, described method also comprises:
Described audiomonitor is saved in scheduler global object, and described scheduler global object is saved in the static variable of Econstants class.
3. method according to claim 1, is characterized in that, described timed task control table also comprises following one or more: heavily run the date, perform frequency explanation, task names, task description, start time, end time and button.
4. method according to claim 3, is characterized in that, described method also comprises:
Determine the value of heavily running the date of the first timed task in described timed task control table, if the value on described heavy race date is predetermined value, then directly described first timed task is heavily run in request, if the value on described heavy race date is other numerical value outside described predetermined value, then receive the heavily race date of user's input, and heavily run described first timed task according to the heavily race date of described input.
5. method according to claim 1, is characterized in that, described method also comprises:
When each timed task brings into operation, perform in flowing water table the Flow Record inserted described each timed task at timed task, and record the job start time of described each timed task.
6. method according to claim 5, is characterized in that, described method also comprises:
When timed task success, upgrade the job end time in described timed task execution flowing water table and operation result; And
When timed task failure, upgrade the task run result in described timed task execution flowing water table, and misregistration reason.
7. a timed task method for supervising, is characterized in that, described method comprises:
Create timed task and heavily run control table, wherein, described timed task heavily runs the failure record that control table comprises timed task;
Scan described timed task and heavily run control table, and heavily run script heavily to run timed task corresponding to described failure record according to the failure record triggering that described timed task heavily runs in control table.
8. method according to claim 7, is characterized in that, described heavy race script is configured to the heavily race parameter receiving user's input, and described heavy race parameter comprises heavy stopwatch name and heavily runs the date.
9. method according to claim 8, is characterized in that, timed task corresponding to the described failure record of described heavy race comprises:
Timed task corresponding to described failure record is heavily run according to the parameter of heavily running that described heavy race script receives.
10. method according to claim 7, is characterized in that, described method also comprises:
After heavily running timed task corresponding to described failure record, judge whether successfully to generate heavily to run destination file, if so, then delete described timed task and heavily run described failure record in control table, if not, then revise described timed task and heavily run failure record in control table.
11. 1 kinds of timed task supervising devices, is characterized in that, described device comprises:
Creation module, for creating audiomonitor for each timed task;
Scan module, for being monitored by the control table of described audiomonitor scanning timed task, wherein, described timed task control table comprises task identification ID, running status and listening state.
12. devices according to claim 11, is characterized in that, described creation module, also for described audiomonitor is saved in scheduler global object, and described scheduler global object are saved in the static variable of Econstants class.
13. devices according to claim 11, is characterized in that, described timed task control table also comprises following one or more: heavily run the date, perform frequency explanation, task names, task description, start time, end time and button.
14. devices according to claim 13, is characterized in that, described device also comprises:
Judge module, for determining the value of heavily running the date of the first timed task in described timed task control table;
Heavily run module, for directly asking heavily to run described first timed task when the value on described heavy race date is predetermined value, receive the heavily race date of user's input when the value on described heavy race date is other numerical value outside described predetermined value, and heavily run described first timed task according to the heavily race date of described input.
15. devices according to claim 11, is characterized in that, described device also comprises:
Insert module, for when each timed task brings into operation, performs in flowing water table the Flow Record inserted described each timed task, and records the job start time of described each timed task at timed task.
16. devices according to claim 15, it is characterized in that, described insert module, also perform job end time in flowing water table and operation result for upgrading described timed task when timed task success, and the task run result upgraded when timed task failure in described timed task execution flowing water table, and misregistration reason.
17. 1 kinds of timed task supervising devices, is characterized in that, described device comprises:
Arranging module, heavily running control table for creating timed task, wherein, described timed task heavily runs the failure record that control table comprises timed task;
Control module, heavily runs control table for scanning described timed task, and heavily runs script heavily to run timed task corresponding to described failure record according to the failure record triggering that described timed task heavily runs in control table.
18. devices according to claim 17, is characterized in that, described heavy race script is configured to the heavily race parameter receiving user's input, and described heavy race parameter comprises heavy stopwatch name and heavily runs the date.
19. devices according to claim 18, is characterized in that, the timed task that described control module heavily runs described failure record corresponding comprises:
Timed task corresponding to described failure record is heavily run according to the parameter of heavily running that described heavy race script receives.
20. devices according to claim 17, is characterized in that, described device also comprises:
Maintenance module, for after heavily running timed task corresponding to described failure record, judges whether successfully to generate heavily to run destination file, if, then delete described timed task and heavily run described failure record in control table, if not, then revise described timed task and heavily run failure record in control table.
CN201510782816.9A 2015-11-16 2015-11-16 timed task monitoring method and device Active CN105468500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510782816.9A CN105468500B (en) 2015-11-16 2015-11-16 timed task monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510782816.9A CN105468500B (en) 2015-11-16 2015-11-16 timed task monitoring method and device

Publications (2)

Publication Number Publication Date
CN105468500A true CN105468500A (en) 2016-04-06
CN105468500B CN105468500B (en) 2018-11-16

Family

ID=55606231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510782816.9A Active CN105468500B (en) 2015-11-16 2015-11-16 timed task monitoring method and device

Country Status (1)

Country Link
CN (1) CN105468500B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106327306A (en) * 2016-08-29 2017-01-11 东莞市浩云网迅供应链服务有限公司 Order lifecycle presentation method and system
CN106375435A (en) * 2016-08-31 2017-02-01 福建天晴数码有限公司 Web thread timeout monitoring method and system
CN106406993A (en) * 2016-09-06 2017-02-15 努比亚技术有限公司 Timed task management method and system
CN107870571A (en) * 2016-09-26 2018-04-03 北京京东尚科信息技术有限公司 Control the method, apparatus and smart machine of smart machine
CN108564180A (en) * 2017-12-31 2018-09-21 广州用能互联网有限公司 A kind of maintenance program system and method
CN108681598A (en) * 2018-05-21 2018-10-19 平安科技(深圳)有限公司 Task runs method, system, computer equipment and storage medium again automatically
CN109245937A (en) * 2018-10-08 2019-01-18 郑州云海信息技术有限公司 A kind of alarm method and device of PIM platform
CN109298962A (en) * 2018-09-03 2019-02-01 中国平安人寿保险股份有限公司 Monitoring method, computer readable storage medium and the terminal device of timed task
CN109933485A (en) * 2017-12-18 2019-06-25 中国科学院沈阳自动化研究所 A kind of dispatching method executed for algorithm with monitoring
CN110688206A (en) * 2019-09-05 2020-01-14 平安科技(深圳)有限公司 Timing task scheduling method and device, computer equipment and storage medium
CN111414203A (en) * 2020-03-14 2020-07-14 北京数巫大数据研究院有限公司 Intelligent data ET L task operating system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080301685A1 (en) * 2007-05-31 2008-12-04 Novell, Inc. Identity-aware scheduler service
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN102981904A (en) * 2011-09-02 2013-03-20 阿里巴巴集团控股有限公司 Task scheduling method and system
CN104166590A (en) * 2013-05-20 2014-11-26 阿里巴巴集团控股有限公司 Task scheduling method and system
CN104966177A (en) * 2015-07-28 2015-10-07 上海分众软件技术有限公司 Timed task management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080301685A1 (en) * 2007-05-31 2008-12-04 Novell, Inc. Identity-aware scheduler service
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN102981904A (en) * 2011-09-02 2013-03-20 阿里巴巴集团控股有限公司 Task scheduling method and system
CN104166590A (en) * 2013-05-20 2014-11-26 阿里巴巴集团控股有限公司 Task scheduling method and system
CN104966177A (en) * 2015-07-28 2015-10-07 上海分众软件技术有限公司 Timed task management system

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106327306A (en) * 2016-08-29 2017-01-11 东莞市浩云网迅供应链服务有限公司 Order lifecycle presentation method and system
CN106375435A (en) * 2016-08-31 2017-02-01 福建天晴数码有限公司 Web thread timeout monitoring method and system
CN106406993A (en) * 2016-09-06 2017-02-15 努比亚技术有限公司 Timed task management method and system
CN106406993B (en) * 2016-09-06 2019-11-15 努比亚技术有限公司 A kind of timing task management method and system
CN107870571A (en) * 2016-09-26 2018-04-03 北京京东尚科信息技术有限公司 Control the method, apparatus and smart machine of smart machine
CN109933485A (en) * 2017-12-18 2019-06-25 中国科学院沈阳自动化研究所 A kind of dispatching method executed for algorithm with monitoring
CN109933485B (en) * 2017-12-18 2021-06-15 中国科学院沈阳自动化研究所 Scheduling method for algorithm execution and monitoring
CN108564180A (en) * 2017-12-31 2018-09-21 广州用能互联网有限公司 A kind of maintenance program system and method
WO2019223174A1 (en) * 2018-05-21 2019-11-28 平安科技(深圳)有限公司 Automatic task rerunning method and system, computer device and storage medium
CN108681598A (en) * 2018-05-21 2018-10-19 平安科技(深圳)有限公司 Task runs method, system, computer equipment and storage medium again automatically
CN108681598B (en) * 2018-05-21 2023-06-02 平安科技(深圳)有限公司 Automatic task rerun method, system, computer equipment and storage medium
CN109298962A (en) * 2018-09-03 2019-02-01 中国平安人寿保险股份有限公司 Monitoring method, computer readable storage medium and the terminal device of timed task
CN109245937A (en) * 2018-10-08 2019-01-18 郑州云海信息技术有限公司 A kind of alarm method and device of PIM platform
CN109245937B (en) * 2018-10-08 2022-03-25 郑州云海信息技术有限公司 PIM platform warning method and device
CN110688206A (en) * 2019-09-05 2020-01-14 平安科技(深圳)有限公司 Timing task scheduling method and device, computer equipment and storage medium
CN111414203A (en) * 2020-03-14 2020-07-14 北京数巫大数据研究院有限公司 Intelligent data ET L task operating system

Also Published As

Publication number Publication date
CN105468500B (en) 2018-11-16

Similar Documents

Publication Publication Date Title
CN105468500A (en) Timing task monitoring method and device
CN101601214B (en) Facilitating recovery in a coordinated timing network
CN102609281B (en) Distributed software patch update method and system
WO2016037479A1 (en) Method, device and system for optimizing virtualized network function (vnf)
CN108206847A (en) CDN management system, method and device
CN101160563A (en) Method and system for hosting and executing a component application
EP2863281B1 (en) System and method to configure a field device
CN112799786A (en) Exit method, device, equipment and storage medium of micro-service instance
CN112003728B (en) Kubernetes cluster-based application master and standby implementation method and device
EP4095678A1 (en) Method and apparatus of deploying a cluster, device and storage medium
CN101621397A (en) Distributed network management system, and maintenance and management method thereof
WO2008069431A1 (en) Download server and method for installing and updating application program using partitioning of shared library
CN114385759A (en) Configuration file synchronization method and device, computer equipment and storage medium
CN110633085B (en) Relay protection setting calculation method and device based on micro-service architecture
CN104516744A (en) Software updating method and system
CN105631715A (en) Advertisement updating supervision method and device
CN113419818B (en) Basic component deployment method, device, server and storage medium
US20240054054A1 (en) Data Backup Method and System, and Related Device
CN113315754A (en) Intelligent linkage method, device, equipment and medium for firewall of container visit
CN102929649B (en) The configuration-system of PCS7 software systems and collocation method
CN114443239A (en) Method and device for filling container
US9207928B2 (en) Computer-readable medium, apparatus, and methods of automatic capability installation
US10635454B2 (en) Service management method and the device
CN110830591B (en) Information synchronization method, system, electronic equipment and storage medium
CN112231231A (en) Method, system and device for debugging cloud service

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant