CN105224401A - Scheduled task control method and device - Google Patents
Scheduled task control method and device Download PDFInfo
- Publication number
- CN105224401A CN105224401A CN201510568375.2A CN201510568375A CN105224401A CN 105224401 A CN105224401 A CN 105224401A CN 201510568375 A CN201510568375 A CN 201510568375A CN 105224401 A CN105224401 A CN 105224401A
- Authority
- CN
- China
- Prior art keywords
- time
- timed task
- dynamic script
- triggered time
- current system
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of scheduled task control method, described scheduled task control method comprises the following steps: by scheduler with the triggered time of predetermined period acquisition based on the timed task of dynamic script editor, and the described triggered time is sent to detector; Detect current system time by described detector and whether reach the described triggered time; When detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.The invention also discloses a kind of timed task control device.The invention enables timed task can carry out in real time increasing, revise or the operation such as deletion, without the need to restarting server, substantially increasing Consumer's Experience.
Description
Technical field
The present invention relates to Systematical control field, particularly relate to a kind of scheduled task control method and device.
Background technology
Current operating system can realize timed task function by background program, with when the current time reaches the default time, perform corresponding timed task, but realize in timed task process by background program, when needs increase, amendment or when deleting timed task, must by amendment background program, when amended program is put into server, necessary first closing server, after amended program is put into server, restart server again, and after server recompilates, the renewal to background program can be completed.It is very inconvenient to use, and can not increase in real time, revises or the operation such as deletion timed task.Therefore, in timed task operational process, cannot increase timed task in real time, revise or the problem of the operation such as deletion, problems demand inventor in this respect solves.
Foregoing, only for auxiliary understanding technical scheme of the present invention, does not represent and admits that foregoing is prior art.
Summary of the invention
Fundamental purpose of the present invention is to solve in timed task operational process, cannot increase in real time, revises or problem that deletion etc. operates timed task.
For achieving the above object, the invention provides a kind of scheduled task control method, described scheduled task control method comprises the following steps:
By scheduler with the triggered time of predetermined period acquisition based on the timed task of dynamic script editor, and the described triggered time is sent to detector;
Detect current system time by described detector and whether reach the described triggered time;
When detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
Preferably, describedly to be obtained based on triggered time of the timed task of dynamic script editor with predetermined period by scheduler, and before being sent to the step of detector the described triggered time, also comprise:
Receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing;
Receive based on described arrange interface trigger setting completed instruction time, resolve described dynamic script to determine the corresponding triggered time by described manager;
By described manager, the triggered time determined is sent to described scheduler.
Preferably, described when detecting that current system time reaches the described triggered time, the step being performed dynamic script corresponding to described timed task by actuator is comprised:
When detecting that current system time reaches the described triggered time, obtained the dynamic script of described timed task from described manager by described detector;
By described detector, obtained dynamic script is compiled, and the dynamic script after compiling is sent to described actuator;
The dynamic script after described compiling is performed by described actuator.
Preferably, describedly detect current system time by described detector and whether reach the step in described triggered time and comprise:
Current system time is determined by described detector;
By described detector, current system time and described triggered time are compared, to judge whether current system time reaches the described triggered time.
Preferably, described when detecting that current system time reaches the described triggered time, performed the step of dynamic script corresponding to described timed task by actuator after, also comprise:
When receiving modify instruction, providing amendment interface by described manager, increasing, revise or delete the timed task of correspondence for user based on the dynamic script of described amendment interface display;
When receiving the complete instruction of the amendment triggered based on described amendment interface, by the dynamic script after described manager analytic modification, to determine the triggered time of amended dynamic script;
By described manager, the amended triggered time is sent to described scheduler.
In addition, for achieving the above object, the present invention also provides a kind of timed task control device, and described timed task control device comprises:
Scheduler module, for being obtained based on triggered time of the timed task of dynamic script editor with predetermined period by scheduler, and is sent to detector by the described triggered time;
Whether polling module, reach the described triggered time for detecting current system time by described detector;
Execution module, for when detecting that current system time reaches the described triggered time, performs dynamic script corresponding to described timed task by actuator.
Preferably, described timed task control device also comprises and arranges module, parsing module and sending module;
Described module is set, for receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing;
Described parsing module, for receive based on described arrange interface trigger setting completed instruction time, resolve described dynamic script to determine the corresponding triggered time by described manager;
Described sending module, for being sent to described scheduler by described manager by the triggered time determined.
Preferably, described execution module comprises acquiring unit, compilation unit and performance element;
Described acquiring unit, for when detecting that current system time reaches the described triggered time, obtains the dynamic script of described timed task from described manager by described detector;
Described compilation unit, for being compiled obtained dynamic script by described detector, and is sent to described actuator by the dynamic script after compiling;
Described performance element, for performing the dynamic script after described compiling by described actuator.
Preferably, described polling module comprises determining unit and comparing unit;
Described determining unit, for determining current system time by described detector;
Described comparing unit, for current system time and described triggered time being compared by described detector, to judge whether current system time reaches the described triggered time.
Preferably, described timed task control device also comprises modified module;
Described modified module, for when receiving modify instruction, providing amendment interface by described manager, increasing, revise or delete the timed task of correspondence for user based on the dynamic script of described amendment interface display;
Described parsing module, also for when receiving the complete instruction of the amendment triggered based on described amendment interface, by the dynamic script after described manager analytic modification, to determine the triggered time of amended dynamic script;
Described sending module, also for the amended triggered time being sent to described scheduler by described manager.
The present invention realizes timed task by dynamic script, and by scheduler with the triggered time of predetermined period real-time update timed task, make to increase in real time timed task, revise or the operation such as deletion time, can the real-time update triggered time; And detect current system time by detector, when detecting that current system time reaches the described triggered time, dynamic script corresponding to described timed task is performed by actuator, make to increase in real time timed task, revise or the operation such as deletion time, can according to the triggered time after renewal, the dynamic script after Real-time Obtaining upgrades completes corresponding timed task.Making timed task can carry out in real time increasing, revise or the operation such as deletion, without the need to restarting server, substantially increasing Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the first embodiment of scheduled task control method of the present invention;
Fig. 2 is the schematic flow sheet of the second embodiment of scheduled task control method of the present invention;
Fig. 3 is the schematic flow sheet of the 3rd embodiment of scheduled task control method of the present invention;
Fig. 4 is the schematic flow sheet of the 4th embodiment of scheduled task control method of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the first embodiment of timed task control device of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the second embodiment of timed task control device of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the 3rd embodiment of timed task control device of the present invention;
Fig. 8 is the high-level schematic functional block diagram of the 4th embodiment of timed task control device of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The primary solutions of the embodiment of the present invention is: by scheduler with the triggered time of predetermined period acquisition based on the timed task of dynamic script editor, and the described triggered time is sent to detector; Detect current system time by described detector and whether reach the described triggered time; When detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
In timed task operational process, cannot increase timed task in real time, revise or the problem of the operation such as deletion.
Based on the problems referred to above, the invention provides a kind of scheduled task control method.
With reference to the schematic flow sheet that Fig. 1, Fig. 1 are the first embodiment of scheduled task control method of the present invention.
In the present embodiment, described scheduled task control method comprises:
Step S10, by scheduler with the triggered time of predetermined period acquisition based on the timed task of dynamic script editor, and is sent to detector by the described triggered time;
In timed task operational process, by scheduler with the triggered time of predetermined period acquisition based on the timed task of dynamic script editor, and the described triggered time is sent to detector, judge whether described timed task reaches trigger condition for described detector according to the described triggered time.Judged by the Real-time Obtaining triggered time, make the timed task based on dynamic script editor carrying out increasing, revise or the operation such as deletion time, can upgrade in time the corresponding triggered time.Described dynamic script can be edited in operational process, such as: in described dynamic script operational process, carries out increasing new function, or modifies to existing function or the operation such as deletion.Making timed task in operational process, increase to timed task, the operation such as amendment or deletion can be realized without the need to restarting server.
The described timed task based on dynamic script editor can be the default dynamic script edited for timed task, preferably, can be kept in manager by described dynamic script; Or, described dynamic script also can be the dynamic script for timed task that User Defined is arranged, such as: receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing; Receive based on described arrange interface trigger setting completed instruction time, described dynamic script is kept in described manager.
The described triggered time is execution time of the triggered time of described timed task or the dynamic script of described timed task, when system time reaches the described triggered time, performs described dynamic script; The described triggered time can be determined by the dynamic script of resolving described timed task, preferably, described dynamic script comprises the triggered time information of described timed task, and described triggered time information includes but not limited to triggered time or triggered time and activation period etc. first.
Described timed task can be timing send short messages, timing derivative according to etc. task, such as: when needing the computing carrying out big data quantity, in order to not affect system performance when using daytime, this task can be carried out at night in bed as timed task.
Step S20, detects current system time by described detector and whether reaches the described triggered time;
Obtained the triggered time of timed task from described scheduler by described detector, and detect current system time by described detector and whether reach the described triggered time, to judge whether the trigger condition reaching described timed task, when detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
Step S30, when detecting that current system time reaches the described triggered time, performs dynamic script corresponding to described timed task by actuator.
When detecting that current system time reaches the triggered time of described timed task by described detector, control the dynamic script that actuator performs described timed task.
Further, after described step S30, all right: when receiving modify instruction, amendment interface is provided by described manager, by the dynamic script of described amendment interface display timed task, increase, revise or delete corresponding timed task for user based on the dynamic script of described amendment interface display; When receiving the complete instruction of the amendment triggered based on described amendment interface, by the dynamic script after described manager analytic modification, to determine the triggered time of amended dynamic script; By described manager, the amended triggered time is sent to described scheduler, carries out the judgement of the trigger condition of timed task for scheduler according to the described amended triggered time.
The present embodiment realizes timed task by dynamic script, and by scheduler with the triggered time of predetermined period real-time update timed task, make to increase in real time timed task, revise or the operation such as deletion time, can the real-time update triggered time; And detect current system time by detector, when detecting that current system time reaches the described triggered time, dynamic script corresponding to described timed task is performed by actuator, make to increase in real time timed task, revise or the operation such as deletion time, can according to the triggered time after renewal, the dynamic script after Real-time Obtaining upgrades completes corresponding timed task.Making timed task can carry out in real time increasing, revise or the operation such as deletion, without the need to restarting server, substantially increasing Consumer's Experience.
With reference to the schematic flow sheet that Fig. 2, Fig. 2 are the second embodiment of scheduled task control method of the present invention.Based on the first embodiment of above-mentioned scheduled task control method, before described step S10, also comprise:
Step S11, receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing;
Step S12, receive based on described arrange interface trigger setting completed instruction time, resolve described dynamic script to determine the corresponding triggered time by described manager;
Step S13, is sent to described scheduler by described manager by the triggered time determined.
Receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing.Preferably, the shortcut icon of timed task setting can be provided for by manager, for user, instruction be set based on described shortcut icon triggering is described.Receive based on described arrange interface trigger setting completed instruction time, described dynamic script can be kept at described manager, and resolve described dynamic script to determine the triggered time of timed task by described manager, by described manager, the triggered time determined is sent to described scheduler, carries out the judgement of trigger condition for described scheduler according to the received triggered time.
The present embodiment provides the dynamic script of interface for users to timed task to edit by manager, with by realizing the operations such as increase to timed task, amendment or deletion to the editor of dynamic script, and by scheduler with the triggered time of predetermined period real-time update timed task, make to increase in real time timed task, revise or the operation such as deletion time, can the real-time update triggered time; And detect current system time by detector, when detecting that current system time reaches the described triggered time, dynamic script corresponding to described timed task is performed by actuator, make to increase in real time timed task, revise or the operation such as deletion time, can according to the triggered time after renewal, the dynamic script after Real-time Obtaining upgrades completes corresponding timed task.Making timed task can carry out in real time increasing, revise or the operation such as deletion, without the need to restarting server, substantially increasing Consumer's Experience.
With reference to the schematic flow sheet that Fig. 3, Fig. 3 are the 3rd embodiment of scheduled task control method of the present invention.Based on the second embodiment of above-mentioned scheduled task control method, described step S30 comprises:
Step S31, when detecting that current system time reaches the described triggered time, obtains the dynamic script of described timed task from described manager by described detector;
Step S32, is compiled obtained dynamic script by described detector, and the dynamic script after compiling is sent to described actuator;
Step S33, performs the dynamic script after described compiling by described actuator.
When detecting that current system time reaches the described triggered time by described detector, obtain dynamic script corresponding to described triggered time by described detector from described manager; By described detector, obtained dynamic script is compiled, and the dynamic script after compiling is sent to described actuator; The dynamic script after described compiling is performed by described actuator.The dynamic script after described compiling is performed, to improve the operational efficiency of scheduler by actuator.
The present embodiment obtains dynamic script by detector from manager, and compiles dynamic script, to perform the dynamic script after compiling by actuator.When making the triggered time reaching timed task, corresponding dynamic script can be performed in time, realizes the function of timed task.
With reference to the schematic flow sheet that Fig. 4, Fig. 4 are the 4th embodiment of scheduled task control method of the present invention.Based on the second embodiment of above-mentioned scheduled task control method, described step S20 comprises:
Step S21, determines current system time by described detector;
Step S22, is compared current system time and described triggered time by described detector, to judge whether current system time reaches the described triggered time.
Determine current system time by described detector, and obtain the triggered time of described timed task; By described detector, current system time and described triggered time are compared, to judge whether current system time reaches the described triggered time, when detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
The present embodiment passes through the current system time of detector Real-time Obtaining, to judge whether current system time reaches the triggered time of timed task, with when detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
The executive agent of the scheduled task control method of above-mentioned first to fourth embodiment all can for have timed task function terminal device or for being arranged on the control device in terminal.Further, described scheduled task control method can be realized by the client control program be arranged on terminal device or control device, wherein, described terminal can include but not limited to the mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desk-top computer etc.
The present invention further provides a kind of timed task control device.
With reference to the high-level schematic functional block diagram that Fig. 5, Fig. 5 are the first embodiment of timed task control device of the present invention.
In the present embodiment, described timed task control device comprises: scheduler module 10, polling module 20 and execution module 30.
Described scheduler module 10, for being obtained based on triggered time of the timed task of dynamic script editor with predetermined period by scheduler, and is sent to detector by the described triggered time;
In timed task operational process, by scheduler with the triggered time of predetermined period acquisition based on the timed task of dynamic script editor, and the described triggered time is sent to detector, judge whether described timed task reaches trigger condition for described detector according to the described triggered time.Judged by the Real-time Obtaining triggered time, make the timed task based on dynamic script editor carrying out increasing, revise or the operation such as deletion time, can upgrade in time the corresponding triggered time.Described dynamic script can be edited in operational process, such as: in described dynamic script operational process, carries out increasing new function, or modifies to existing function or the operation such as deletion.Making timed task in operational process, increase to timed task, the operation such as amendment or deletion can be realized without the need to restarting server.
The described timed task based on dynamic script editor can be the default dynamic script edited for timed task, preferably, can be kept in manager by described dynamic script; Or, described dynamic script also can be the dynamic script for timed task that User Defined is arranged, such as: receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing; Receive based on described arrange interface trigger setting completed instruction time, described dynamic script is kept in described manager.
The described triggered time is execution time of the triggered time of described timed task or the dynamic script of described timed task, when system time reaches the described triggered time, performs described dynamic script; The described triggered time can be determined by the dynamic script of resolving described timed task, preferably, described dynamic script comprises the triggered time information of described timed task, and described triggered time information includes but not limited to triggered time or triggered time and activation period etc. first.
Described timed task can be timing send short messages, timing derivative according to etc. task, such as: when needing the computing carrying out big data quantity, in order to not affect system performance when using daytime, this task can be carried out at night in bed as timed task.
Whether described polling module 20, reach the described triggered time for detecting current system time by described detector;
Obtained the triggered time of timed task from described scheduler by described detector, and detect current system time by described detector and whether reach the described triggered time, to judge whether the trigger condition reaching described timed task, when detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
Described execution module 30, for when detecting that current system time reaches the described triggered time, performs dynamic script corresponding to described timed task by actuator.
When detecting that current system time reaches the triggered time of described timed task by described detector, control the dynamic script that actuator performs described timed task.
Further, described timed task control device can also comprise modified module; Described modified module, for when receiving modify instruction, providing amendment interface by described manager, increasing, revise or delete the timed task of correspondence for user based on the dynamic script of described amendment interface display; Described parsing module, also for when receiving the complete instruction of the amendment triggered based on described amendment interface, by the dynamic script after described manager analytic modification, to determine the triggered time of amended dynamic script; Described sending module, also for the amended triggered time being sent to described scheduler by described manager.
The present embodiment realizes timed task by dynamic script, and by scheduler with the triggered time of predetermined period real-time update timed task, make to increase in real time timed task, revise or the operation such as deletion time, can the real-time update triggered time; And detect current system time by detector, when detecting that current system time reaches the described triggered time, dynamic script corresponding to described timed task is performed by actuator, make to increase in real time timed task, revise or the operation such as deletion time, can according to the triggered time after renewal, the dynamic script after Real-time Obtaining upgrades completes corresponding timed task.Making timed task can carry out in real time increasing, revise or the operation such as deletion, without the need to restarting server, substantially increasing Consumer's Experience.
With reference to the high-level schematic functional block diagram that Fig. 6, Fig. 6 are second embodiment of apparatus of the present invention.Based on the first embodiment of above-mentioned timed task control device, described timed task control device also comprises and arranges module 40, parsing module 50 and sending module 60;
Described module 40 is set, for receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing;
Described parsing module 50, for receive based on described arrange interface trigger setting completed instruction time, resolve described dynamic script to determine the corresponding triggered time by described manager;
Described sending module 60, for being sent to described scheduler by described manager by the triggered time determined.
Receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing.Preferably, the shortcut icon of timed task setting can be provided for by manager, for user, instruction be set based on described shortcut icon triggering is described.Receive based on described arrange interface trigger setting completed instruction time, described dynamic script can be kept at described manager, and resolve described dynamic script to determine the triggered time of timed task by described manager, by described manager, the triggered time determined is sent to described scheduler, carries out the judgement of trigger condition for described scheduler according to the received triggered time.
The present embodiment provides the dynamic script of interface for users to timed task to edit by manager, with by realizing the operations such as increase to timed task, amendment or deletion to the editor of dynamic script, and by scheduler with the triggered time of predetermined period real-time update timed task, make to increase in real time timed task, to revise or after the operation such as deletion, can the real-time update triggered time; And detect current system time by detector, when detecting that current system time reaches the described triggered time, dynamic script corresponding to described timed task is performed by actuator, make to increase in real time timed task, to revise or after the operation such as deletion, can according to the triggered time after renewal, the dynamic script after Real-time Obtaining upgrades completes corresponding timed task.Making timed task can carry out in real time increasing, revise or the operation such as deletion, without the need to restarting server, substantially increasing Consumer's Experience.
With reference to the high-level schematic functional block diagram that Fig. 7, Fig. 7 are the 3rd embodiment of apparatus of the present invention.Based on the second embodiment of above-mentioned timed task control device, described execution module comprises acquiring unit 31, compilation unit 32 and performance element 33;
Described acquiring unit 31, for when detecting that current system time reaches the described triggered time, obtains the dynamic script of described timed task from described manager by described detector;
Described compilation unit 32, for being compiled obtained dynamic script by described detector, and is sent to described actuator by the dynamic script after compiling;
Described performance element 33, for performing the dynamic script after described compiling by described actuator.
When detecting that current system time reaches the described triggered time by described detector, obtain dynamic script corresponding to described triggered time by described detector from described manager; By described detector, obtained dynamic script is compiled, and the dynamic script after compiling is sent to described actuator; The dynamic script after described compiling is performed by described actuator.The dynamic script after described compiling is performed, to improve the operational efficiency of scheduler by actuator.
The present embodiment obtains dynamic script by detector from manager, and compiles dynamic script, to perform the dynamic script after compiling by actuator.When making the triggered time reaching timed task, corresponding dynamic script can be performed in time, realizes the function of timed task.
With reference to the high-level schematic functional block diagram that Fig. 8, Fig. 8 are the 4th embodiment of apparatus of the present invention.Based on the second embodiment of above-mentioned timed task control device, described polling module comprises determining unit 21 and comparing unit 22;
Described determining unit 21, for determining current system time by described detector;
Described comparing unit 22, for current system time and described triggered time being compared by described detector, to judge whether current system time reaches the described triggered time.
Determine current system time by described detector, and obtain the triggered time of described timed task; By described detector, current system time and described triggered time are compared, to judge whether current system time reaches the described triggered time, when detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
The present embodiment passes through the current system time of detector Real-time Obtaining, to judge whether current system time reaches the triggered time of timed task, with when detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
It should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the device comprising this key element and also there is other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add required general hardware platform by software and realize, hardware can certainly be passed through, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprising some instructions in order to make a station terminal equipment (can be mobile phone, computing machine, server, air conditioner, or the network equipment etc.) perform method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.
Claims (10)
1. a scheduled task control method, is characterized in that, described scheduled task control method comprises the following steps:
By scheduler with the triggered time of predetermined period acquisition based on the timed task of dynamic script editor, and the described triggered time is sent to detector;
Detect current system time by described detector and whether reach the described triggered time;
When detecting that current system time reaches the described triggered time, perform dynamic script corresponding to described timed task by actuator.
2. scheduled task control method as claimed in claim 1, is characterized in that, describedly obtains triggered time based on the timed task of dynamic script editor by scheduler with predetermined period, and before being sent to the step of detector the described triggered time, also comprises:
Receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing;
Receive based on described arrange interface trigger setting completed instruction time, resolve described dynamic script to determine the corresponding triggered time by described manager;
By described manager, the triggered time determined is sent to described scheduler.
3. scheduled task control method as claimed in claim 2, it is characterized in that, described when detecting that current system time reaches the described triggered time, the step being performed dynamic script corresponding to described timed task by actuator is comprised:
When detecting that current system time reaches the described triggered time, obtained the dynamic script of described timed task from described manager by described detector;
By described detector, obtained dynamic script is compiled, and the dynamic script after compiling is sent to described actuator;
The dynamic script after described compiling is performed by described actuator.
4. scheduled task control method as claimed in claim 2, is characterized in that, describedly detects current system time by described detector and whether reaches the step in described triggered time and comprise:
Current system time is determined by described detector;
By described detector, current system time and described triggered time are compared, to judge whether current system time reaches the described triggered time.
5. the scheduled task control method as described in any one of claim 2 to 4, it is characterized in that, described when detecting that current system time reaches the described triggered time, performed the step of dynamic script corresponding to described timed task by actuator after, also comprise:
When receiving modify instruction, providing amendment interface by described manager, increasing, revise or delete the timed task of correspondence for user based on the dynamic script of described amendment interface display;
When receiving the complete instruction of the amendment triggered based on described amendment interface, by the dynamic script after described manager analytic modification, to determine the triggered time of amended dynamic script;
By described manager, the amended triggered time is sent to described scheduler.
6. a timed task control device, is characterized in that, described timed task control device comprises:
Scheduler module, for being obtained based on triggered time of the timed task of dynamic script editor with predetermined period by scheduler, and is sent to detector by the described triggered time;
Whether polling module, reach the described triggered time for detecting current system time by described detector;
Execution module, for when detecting that current system time reaches the described triggered time, performs dynamic script corresponding to described timed task by actuator.
7. timed task control device as claimed in claim 6, is characterized in that, described timed task control device also comprises and arranges module, parsing module and sending module;
Described module is set, for receive instruction is set time, provided by manager and interface be set, for user based on the described dynamic script arranging timed task described in interface editing;
Described parsing module, for receive based on described arrange interface trigger setting completed instruction time, resolve described dynamic script to determine the corresponding triggered time by described manager;
Described sending module, for being sent to described scheduler by described manager by the triggered time determined.
8. timed task control device as claimed in claim 7, it is characterized in that, described execution module comprises acquiring unit, compilation unit and performance element;
Described acquiring unit, for when detecting that current system time reaches the described triggered time, obtains the dynamic script of described timed task from described manager by described detector;
Described compilation unit, for being compiled obtained dynamic script by described detector, and is sent to described actuator by the dynamic script after compiling;
Described performance element, for performing the dynamic script after described compiling by described actuator.
9. timed task control device as claimed in claim 7, it is characterized in that, described polling module comprises determining unit and comparing unit;
Described determining unit, for determining current system time by described detector;
Described comparing unit, for current system time and described triggered time being compared by described detector, to judge whether current system time reaches the described triggered time.
10. the timed task control device as described in any one of claim 7 to 9, is characterized in that, described timed task control device also comprises modified module;
Described modified module, for when receiving modify instruction, providing amendment interface by described manager, increasing, revise or delete the timed task of correspondence for user based on the dynamic script of described amendment interface display;
Described parsing module, also for when receiving the complete instruction of the amendment triggered based on described amendment interface, by the dynamic script after described manager analytic modification, to determine the triggered time of amended dynamic script;
Described sending module, also for the amended triggered time being sent to described scheduler by described manager.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510568375.2A CN105224401A (en) | 2015-09-08 | 2015-09-08 | Scheduled task control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510568375.2A CN105224401A (en) | 2015-09-08 | 2015-09-08 | Scheduled task control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105224401A true CN105224401A (en) | 2016-01-06 |
Family
ID=54993391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510568375.2A Pending CN105224401A (en) | 2015-09-08 | 2015-09-08 | Scheduled task control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105224401A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106201672A (en) * | 2016-06-22 | 2016-12-07 | 武汉斗鱼网络科技有限公司 | A kind of timed task arranges system and timed task operation method thereof |
CN106789170A (en) * | 2016-11-28 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of task processing method and device |
CN106874079A (en) * | 2016-06-08 | 2017-06-20 | 阿里巴巴集团控股有限公司 | A kind of method and device of tasks carrying |
CN107391188A (en) * | 2017-07-17 | 2017-11-24 | 聚好看科技股份有限公司 | A kind of method and apparatus for controlling timed task |
CN108512688A (en) * | 2017-11-29 | 2018-09-07 | 中国平安人寿保险股份有限公司 | Network node configuration method and terminal |
CN109634589A (en) * | 2018-12-07 | 2019-04-16 | 上海上实龙创智慧能源科技股份有限公司 | A kind of processing method for the automatic Realtime Alerts task of sewage treatment process |
CN109840143A (en) * | 2018-12-21 | 2019-06-04 | 北京城市网邻信息技术有限公司 | A kind of control method of functional task, device, electronic equipment and storage medium |
CN110134558A (en) * | 2019-05-17 | 2019-08-16 | 网易(杭州)网络有限公司 | A kind of detection method and device of server |
CN110393919A (en) * | 2019-07-29 | 2019-11-01 | 杭州绝地科技股份有限公司 | Method of automatic configuration, device, storage medium and the mobile terminal of ludic activity |
CN110968405A (en) * | 2018-09-30 | 2020-04-07 | 杭州海康威视系统技术有限公司 | Method and device for detecting planned tasks |
CN111078383A (en) * | 2019-12-24 | 2020-04-28 | 浙江诺诺网络科技有限公司 | Timed task management method, device, equipment and storage medium |
-
2015
- 2015-09-08 CN CN201510568375.2A patent/CN105224401A/en active Pending
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106874079A (en) * | 2016-06-08 | 2017-06-20 | 阿里巴巴集团控股有限公司 | A kind of method and device of tasks carrying |
CN106201672A (en) * | 2016-06-22 | 2016-12-07 | 武汉斗鱼网络科技有限公司 | A kind of timed task arranges system and timed task operation method thereof |
CN106789170A (en) * | 2016-11-28 | 2017-05-31 | 北京奇虎科技有限公司 | A kind of task processing method and device |
CN107391188A (en) * | 2017-07-17 | 2017-11-24 | 聚好看科技股份有限公司 | A kind of method and apparatus for controlling timed task |
CN108512688A (en) * | 2017-11-29 | 2018-09-07 | 中国平安人寿保险股份有限公司 | Network node configuration method and terminal |
CN110968405A (en) * | 2018-09-30 | 2020-04-07 | 杭州海康威视系统技术有限公司 | Method and device for detecting planned tasks |
CN109634589A (en) * | 2018-12-07 | 2019-04-16 | 上海上实龙创智慧能源科技股份有限公司 | A kind of processing method for the automatic Realtime Alerts task of sewage treatment process |
CN109840143A (en) * | 2018-12-21 | 2019-06-04 | 北京城市网邻信息技术有限公司 | A kind of control method of functional task, device, electronic equipment and storage medium |
CN110134558A (en) * | 2019-05-17 | 2019-08-16 | 网易(杭州)网络有限公司 | A kind of detection method and device of server |
CN110134558B (en) * | 2019-05-17 | 2024-01-26 | 网易(杭州)网络有限公司 | Method and device for detecting server |
CN110393919A (en) * | 2019-07-29 | 2019-11-01 | 杭州绝地科技股份有限公司 | Method of automatic configuration, device, storage medium and the mobile terminal of ludic activity |
CN110393919B (en) * | 2019-07-29 | 2023-04-07 | 杭州绝地科技股份有限公司 | Automatic configuration method and device of game activity, storage medium and mobile terminal |
CN111078383A (en) * | 2019-12-24 | 2020-04-28 | 浙江诺诺网络科技有限公司 | Timed task management method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105224401A (en) | Scheduled task control method and device | |
CN102779151B (en) | The searching method of application program, Apparatus and system | |
CN107402788B (en) | Resource packaging management method and device | |
CN104281518A (en) | Terminal application test method, device, system and platform and mobile terminal | |
CN109408132A (en) | A kind of configuration file processing method and server, user terminal, storage medium | |
CN105404585A (en) | Method and apparatus for acquiring code coverage rate | |
CN105677335A (en) | Method and device for increasing first starting speed of mobile terminal | |
CN106126397A (en) | The processing method of program crashing message and system | |
CN105159833A (en) | Automatic testing device and method | |
CN105573755A (en) | Method and device for acquiring application Activity rendering time | |
CN109800135B (en) | Information processing method and terminal | |
CN104503780A (en) | Method and device for providing application channel packet | |
CN108536451A (en) | Application program buries a method for implanting and device | |
CN104615462A (en) | Cross-platform mobile application generating server side and system | |
CN105740144A (en) | Automated testing method and system for Android mobile Terminal | |
CN110597564A (en) | Installation package construction and service component loading method, device and terminal equipment | |
CN104965914A (en) | Page display method and apparatus | |
CN111984239A (en) | Page configuration method, device, server and storage medium | |
CN105094777A (en) | Method and device for realizing application screen shot | |
CN107608663A (en) | A kind of development approach and device of Mobile solution plug-in unit and Mobile solution | |
CN104317648A (en) | Method and device for monitoring advertisements | |
CN111209001A (en) | Method, system, equipment and medium for batch generation of APKs of android channels | |
CN106776266B (en) | Configuration method of test tool and terminal equipment | |
CN110046100B (en) | Packet testing method, electronic device and medium | |
CN110795353A (en) | Debugging method, device and equipment for fast application and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518057 Shenzhen Software Park, Nanshan District high tech Industrial Park, Guangdong, China,, 6 401-402 Applicant after: Yongxing Shenzhen Polytron Technologies Inc Address before: 518057 Shenzhen Software Park, Nanshan District high tech Industrial Park, Guangdong, China,, 6 401-402 Applicant before: Shenzhen Longrise Technology Co., Ltd. |
|
COR | Change of bibliographic data | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160106 |