CN105677469A - Timing task executing method and device - Google Patents

Timing task executing method and device Download PDF

Info

Publication number
CN105677469A
CN105677469A CN201610007277.6A CN201610007277A CN105677469A CN 105677469 A CN105677469 A CN 105677469A CN 201610007277 A CN201610007277 A CN 201610007277A CN 105677469 A CN105677469 A CN 105677469A
Authority
CN
China
Prior art keywords
timed task
task instruction
timing
timed
list
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
CN201610007277.6A
Other languages
Chinese (zh)
Other versions
CN105677469B (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.)
Beijing Jingdong Century Trading Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
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 Beijing Jingdong Century Trading Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610007277.6A priority Critical patent/CN105677469B/en
Publication of CN105677469A publication Critical patent/CN105677469A/en
Application granted granted Critical
Publication of CN105677469B publication Critical patent/CN105677469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • G06F9/4831Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority
    • G06F9/4837Task transfer initiation or dispatching by interrupt, e.g. masked with variable priority time dependent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/48Indexing scheme relating to G06F9/48
    • G06F2209/486Scheduler internals

Abstract

The invention discloses a timing task executing method and device. In one detailed embodiment, the method comprises the steps that a timing task information collection saved in cloud is obtained, wherein timing task information includes identification codes of devices oriented by timing tasks, task executing time and operation information on the devices; the current time is obtained, and a timing task instruction collection corresponding to the timing task information collection is determined based on the current time; the devices are operated by executing the timing task instruction collection. According to the detailed embodiment, the timing task information collection is saved in the cloud, and thus the stability of the timing task information collection is ensured; the current time is obtained, the timing task instruction collection corresponding to the timing task information collection is determined based on the current time, and thus the requirement for the performance of hardware is lowered; the devices are operated by executing the timing task instruction collection, so that interruption and delay of execution of the timing tasks are avoided, and thus executing efficiency of the timing tasks is improved.

Description

Timed task performs method and device
Technical field
The application relates to technical field of data processing, is specifically related to technology of Internet of things field, particularly relates to timed task and performs method and device.
Background technology
Internet of Things (InternetofThings) be one based on information carriers such as the Internet, conventional telecommunications nets, allow the network that all General Physics object implementatio8 that can be independently addressable interconnect. It has, and plain objects equipment, autonomous terminal be interconnected and intelligent 3 key characters of Pervasive Service. In modern Internet of Things application, substantial amounts of hardware device accesses rear end cloud service, and high in the clouds supports and manages the terminal unit of magnanimity, can realize the fixed cycle operator to equipment by Internet of Things.
But, existing it be timed the method for operation by Internet of Things and there is also some problems. Such as, it is impossible to supporting large-scale timed task, the disposal ability requirement height of hardware, timed task are performed process and easily occur interrupting and time delay, these problems cause performing the inefficient of fixed cycle operator.
Summary of the invention
This application provides timed task and perform method and device, to solve the problem mentioned in background technology.
On the one hand, this application provides a kind of timed task and perform method, described method includes: obtaining the timing task information set being saved in high in the clouds, wherein, timing task information includes the identification code of the targeted equipment of timed task, task execution time and the operation information to described equipment; Obtain current time and determine the timed task instruction set of corresponding described timing task information set based on described current time; By performing, described timed task instruction set is incompatible to be operated described equipment.
Second aspect, this application provides a kind of timed task and perform device, described device includes: timing task information set acquiring unit, for obtaining the timing task information set being saved in high in the clouds, wherein, timing task information includes the identification code of the targeted equipment of timed task, task execution time and the operation information to described equipment; Timed task instruction set acquiring unit, for obtaining current time and determining the timed task instruction set of corresponding described timing task information set based on described current time; Timed task instruction execution unit, for by performing, described timed task instruction set is incompatible to be operated described equipment.
Timing task information set is saved in high in the clouds by the application, it is ensured that the stability of timing task information set; Obtain current time and determine the timed task instruction set of corresponding described timing task information set based on described current time, reducing the performance requirement to hardware; By performing, timed task instruction set is incompatible that equipment is operated, it is to avoid interruption that timed task performs and time delay, improves the execution efficiency of timed task.
Accompanying drawing explanation
By reading the detailed description that non-limiting example is made made with reference to the following drawings, other features, purpose and advantage will become more apparent upon:
Fig. 1 can apply to exemplary system architecture figure therein according to the application;
Fig. 2 is the embodiment flow chart that the timed task according to the application performs method;
Fig. 3 is the schematic diagram that the timed task according to the application performs one application scenarios of method;
Fig. 4 is the schematic diagram that the timed task according to the application performs another application scenarios of method;
Fig. 5 is the example structure schematic diagram that the timed task according to the application performs device;
Fig. 6 is adapted for the structural representation of the computer system of the server for realizing the embodiment of the present application.
Detailed description of the invention
Below in conjunction with drawings and Examples, the application is described in further detail. It is understood that specific embodiment described herein is used only for explaining related invention, but not the restriction to this invention. It also should be noted that, for the ease of describing, accompanying drawing illustrate only the part relevant to about invention.
It should be noted that when not conflicting, the embodiment in the application and the feature in embodiment can be mutually combined. Describe the application below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Fig. 1 illustrates that the timed task that can apply the application performs the exemplary system architecture 100 of the embodiment of method or timed task execution device.
As it is shown in figure 1, system architecture 100 can include high in the clouds 101, distributed caching 102, data server 103, Internet of Things 104 and equipment 105. High in the clouds 101 is in order to preserve timing task information set; Timing task information is sent to distributed caching 102 by data server 103; Distributed caching 102 can improve the reading speed of timing task information, it is possible to timing task information is quickly sent to Internet of Things 104; Timing task information is transmitted to the equipment 105 being connected with Internet of Things 104 by Internet of Things 104 so that equipment 105 performs timed task.
It should be understood that the number of distributed caching in Fig. 1, data server and equipment is merely schematic. According to realizing needs, it is possible to have any number of distributed caching and equipment.
Illustrate that timed task performs flow process Figure 200 of an embodiment of method with continued reference to Fig. 2, Fig. 2.
Comprise the following steps as in figure 2 it is shown, the timed task of the present embodiment performs method:
Step 201, obtains the timing task information set being saved in high in the clouds.
Wherein, timing task information includes the identification code of the targeted equipment of timed task, task execution time and the operation information to described equipment;
In the present embodiment, timed task performs method and runs on the timing task information set in electronic equipment thereon (data server 103 in Fig. 1) acquisition high in the clouds 101, preserve to distributed caching 102, and sending timing task information by Internet of Things 104 to equipment 105, equipment 105 operates accordingly according to timing task information. Timing task information set is saved in high in the clouds 101, it is ensured that the stability of timing task information set.
In some optional implementations of the present embodiment, the timed task of the present embodiment performs method and also includes generating the step of timing task information set, it is possible to comprise the following steps:
The first step, receives the timing task information that the equipment being connected with Internet of Things is sent.
Before equipment 105 is sent timing task information, it is necessary first to receive the timing task information of equipment. Equipment 105 first passes through Internet of Things 104 and timing task information is sent to data server 103, is then sent to high in the clouds 101 again through data server 103, it is also possible to either directly through Internet of Things 104, timing task information is sent to high in the clouds 101.
Second step, in chronological sequence described timing task information is ranked up by order, obtains timing task information set by the described timing task information combination after sorting, preserves described timing task information set to high in the clouds.
After high in the clouds 101 receives timing task information, the task execution time that timing task information is comprised by data server 103 is analyzed, the quantity of the equipment 105 owing to being connected with Internet of Things 104 is a lot, therefore, the timing task information that equipment 105 is sent in chronological sequence order is needed to be ranked up, and obtain timing task information set by the timing task information combination after sorting, and it is saved in high in the clouds 101.
Step 202, obtains current time and determines the timed task instruction set of corresponding described timing task information set based on described current time.
The timing task information data of high in the clouds 101 storage are a lot, can very consumption data disposal ability if process all of timing task information simultaneously. For this, it is possible to need the timing task information performed to pick out execution by (as in one hour) in the recent period, select, when next moment (as in next hour), the timed task needing to perform again and perform. The timed task that will be singled out temporally is ranked up obtaining timed task instruction set.
In some optional implementations of the present embodiment, based on described current time, described acquisition current time also determines that the timed task instruction set of corresponding described timing task information set includes:
The first step, selects at least one timing task information based on described current time and setting interval from described timing task information set.
In timing task information set, the time of timing task information is different, but timing task information packet can be performed according to certain time interval. Owing in timing task information set, the quantity of timing task information is a lot, interval is more big, the timing task information quantity every time performed is more many, the data processing pressure brought to network and hardware is more big, therefore, generally adopt less interval that timing task information set is grouped. If neither one timing task information in certain interval, then again the timing task information in timing task information set is chosen by current interval, until choosing timing task information.
Second step, generates timed task instruction set according at least one timing task information described, and is preserved to the distributed caching being connected with described Internet of Things by described timed task instruction set.
After above-mentioned interval chooses timing task information, determine the execution time of timing task information according to the task execution time of these timing task informations, obtain timed task instruction. Namely timed task instruction contains timing task information and the execution time of corresponding timing task information. Whole timed task instructions is combined into timed task instruction set.
Internet of Things 104 connects multiple equipment 105, in order to accelerate the execution efficiency of timed task instruction, timed task instruction set is put into distributed caching 102, distributed caching 102 is utilized to read the advantage that data are fast, distributed caching 102 is connected with Internet of Things 104, it is possible to quickly process substantial amounts of timed task instruction.
Step 203, by performing, described timed task instruction set is incompatible to be operated described equipment.
After obtaining timed task instruction set, data server 103 performs the timed task instruction in timed task instruction set so that the equipment 105 connected with Internet of Things 104 carries out corresponding operation.
In some optional implementations of the present embodiment, step 203 can also comprise the following steps:
The first step, determines the next operation temporal information of described timing task information according to current time and described task execution time information.
The time disunity in high in the clouds 101 is arrived owing to equipment 105 sends timing task information, and the task execution time of timing task information usually differs, therefore, exist for the situation of multiple execution timing task information, such as, if current time is 10 o'clock of the morning, task execution time is 12 noon every day, then may determine that the next operation temporal information of timing task information is (i.e. some this noon 12) after two hours; If current time is 2 pm clock, task execution time is 12 noon every day, then the next operation temporal information of timing task information is (i.e. second day 12 noon) after 22 hours.
Second step, extracts timed task instruction from described timed task instruction set by described next operation temporal information, and builds timed task instruction list by the timed task instruction extracted.
The timing task information set in interval is contained in timed task instruction set, generally, the quantity of timing task information now is also a lot, and the task execution time between timing task information is not quite similar, therefore, timed task instruction can be extracted from timed task instruction set by certain time condition, the execution time of timed task instruction is segmented further, and build timed task instruction list by the timed task instruction extracted, using timed task instruction list as by the timed task instruction performed, so both can guarantee that and hardware is not constituted bigger data processing pressure, the waste to hardware data disposal ability can be effectively prevented from again.
3rd step, is operated described equipment by performing described timed task instruction list.
After obtaining timed task instruction list, by the execution time of timed task instruction on timed task instruction list, equipment is operated.
In some optional implementations of the present embodiment, described it is operated may comprise steps of to described equipment by performing described timed task instruction list:
The first step, the cycle interval very first time reads described timed task instruction list.
The cycle very first time herein is generally the less time cycle, such as one minute, namely reads a timed task instruction list at interval of one minute.
Second step, by performing the timed task instruction dropping in the described cycle very first time in described timed task instruction list with the interval of current time, is operated described equipment.
If existed and current time timed task instruction in a minute time interval, then according to this timed task instruction, equipment is operated.
In some optional implementations of the present embodiment, after performing timed task instruction, also need to the execution result of timed task instruction is recorded, namely, described it is operated including to described equipment by performing described timed task instruction list: the execution result recording described timed task instruction obtains timed task instruction watch-list, is saved in described distributed caching 102 by described timed task instruction watch-list. After timed task instruction performs, corresponding equipment can perform result according to timed task instruction feedback. Generally perform result to include running succeeded, perform failure or be not carried out in three situation. Execution result is set up corresponding relation with corresponding timed task instruction and can obtain timed task instruction watch-list. That is, described timed task instruction watch-list includes described timed task instruction and the execution result information of the described timed task instruction of correspondence.
In some optional implementations of the present embodiment, due to the network delay in reality or the situation such as equipment communication is not smooth, it is likely to occur timed task instruction cannot normally perform, this is accomplished by being repeated timed task instruction performing, therefore, described it is operated also including to described equipment by performing described timed task instruction list: the second time cycle of interval reads described timed task instruction watch-list in distributed caching; Performing the timed task instruction that unenforced timed task instruction in described timed task instruction watch-list is failed with execution, described second time cycle is more than the described cycle very first time. The above-mentioned cycle very first time is 1 minute, and the second time cycle herein can be 5 minutes. It should be noted that, even if the unenforced timed task instruction in timed task instruction watch-list and the failed timed task instruction of execution are repeated performing by the second time cycle of interval, it is also possible that occur being not carried out or perform failed situation, therefore, can also to the second time cycle time the execution result of timed task instruction that performs be recorded, and at the 3rd interval (more than the second interval, such as 24 hours, the enlightenment moment can be 00:00 in morning) check the timed task instruction watch-list of corresponding second interval. The interval arranged is more many, is not carried out or performs failed timed task instruction more few.
It is the schematic diagram that the timed task according to the present embodiment performs the application scenarios of method with continued reference to Fig. 3, Fig. 3. As shown in Figure 3, the data server 103 of the present embodiment is sent to distributed caching 102 after the part timing task information in timing task information set is constituted timed task instruction set, then the timed task instruction in timed task instruction set is read at the first timed task scheduler interval very first time interval from distributed caching 102, obtains the first timed task instruction list. Wherein, the first timed task instruction list is that the timed task instruction extracted from above-mentioned timed task instruction list by the cycle interval very first time is obtained. Then the first timed task instruction list is performed, it is achieved the operation to equipment. Then pass through timed task command monitor and will perform the execution result composition timed task instruction watch-list of timed task instruction and corresponding timed task instruction in the first timed task instruction list, and timed task instruction watch-list is saved in distributed caching 102. Also having the second timed task scheduler and the 3rd timed task scheduler in Fig. 3, the second timed task scheduler and the 3rd timed task scheduler are respectively separated the second time cycle and the 3rd time cycle and perform to be not carried out and performed failed timed task instruction in the timed task instruction watch-list that a upper time cycle obtains. Fig. 4 is the flow chart of the timed task execution method of corresponding diagram 3.
Timing task information set is saved in high in the clouds by the application, it is ensured that the stability of timing task information set; Determined the timed task instruction set of corresponding timing task information set by current time, timed task instruction set is saved in distributed caching, meets the demand performing extensive timed task; By performing, timed task instruction set is incompatible that equipment is operated, it is to avoid interruption that timed task performs and time delay, improves the execution efficiency of timed task.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of timed task and perform an embodiment of device, this device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and this device specifically can apply in various electronic equipment.
As it is shown in figure 5, the timed task described in the present embodiment performs device 500 includes timing task information set acquiring unit 501, timed task instruction set acquiring unit 502 and timed task instruction execution unit 503. Wherein, timing task information set acquiring unit 501 is for obtaining the timing task information set being saved in high in the clouds, and wherein, timing task information includes the identification code of the targeted equipment of timed task, task execution time and the operation information to described equipment; Timed task instruction set acquiring unit 502 is for obtaining current time and determining the timed task instruction set of corresponding described timing task information set based on described current time; Timed task instruction execution unit 503 is for by performing, described timed task instruction set is incompatible to be operated described equipment.
In some optional implementations of the present embodiment, timed task performs device 500 and also includes timing task information set generation unit (not shown), for generating timing task information set, it is possible to include timing task information and receive subelement (not shown) and timing task information set generation subelement (not shown). Wherein, timing task information receives subelement for receiving the timing task information that the equipment being connected with Internet of Things is sent; Timing task information set generates subelement and in chronological sequence order, described timing task information is ranked up, and obtains timing task information set by the described timing task information combination after sorting, preserves described timing task information set to high in the clouds.
In some optional implementations of the present embodiment, timed task instruction set acquiring unit 502 can include timing task information and select subelement (not shown) and timed task instruction set to generate subelement (not shown). Wherein, timing task information selects subelement for selecting at least one timing task information based on described current time and setting interval from described timing task information set; Timed task instruction set generates subelement for generating timed task instruction set according at least one timing task information described, and is preserved to the distributed caching being connected with described Internet of Things by described timed task instruction set.
In some optional implementations of the present embodiment, timed task instruction execution unit 503 can also include: next operation temporal information determines that subelement (not shown), timed task instruction list build subelement (not shown) and timed task instruction list performs subelement (not shown). Wherein, next operation temporal information determines that subelement for determining the next operation temporal information of described timing task information according to current time and described task execution time information; Timed task instruction list builds subelement for extracting timed task instruction from described timed task instruction set by described next operation temporal information, and builds timed task instruction list by the timed task instruction extracted; Timed task instruction list performs subelement for described equipment being operated by performing described timed task instruction list.
In some optional implementations of the present embodiment, described timed task instruction list performs subelement and includes the first timed task instruction list read module (not shown) and the first timed task instruction list execution module (not shown). Wherein, the first timed task instruction list read module is equivalent to the first above-mentioned timed task scheduler, reads described timed task instruction list for the cycle interval very first time; First timed task instruction list performs module for described equipment being operated by the timed task instruction performing to drop in the described cycle very first time with the interval of current time in described timed task instruction list.
In some optional implementations of the present embodiment, timed task instruction list performs subelement and includes timed task instruction watch-list acquisition module (not shown), execution result for recording described timed task instruction obtains timed task instruction watch-list, is saved in distributed caching by described timed task instruction watch-list.
In some optional implementations of the present embodiment, described timed task instruction list performs subelement and also includes the second timed task instruction list read module and the second timed task instruction list execution module. Wherein, the second timed task instruction list read module is equivalent to the second above-mentioned timed task scheduler, reads described timed task instruction watch-list for the second time cycle of interval in described distributed caching; Second timed task instruction list performs the timed task instruction that module is failed with execution for performing unenforced timed task instruction in described timed task instruction watch-list, and described second time cycle is more than the described cycle very first time.
Below with reference to Fig. 6, it illustrates the structural representation of the computer system 600 being suitable to the server for realizing the embodiment of the present application.
As shown in Figure 6, computer system 600 includes CPU (CPU) 601, its can according to the program being stored in read only memory (ROM) 602 or from storage part 608 be loaded into the program random access storage device (RAM) 603 and perform various suitable action and process. In RAM603, also storage has system 600 to operate required various programs and data. CPU601, ROM602 and RAM603 are connected with each other by bus 604. Input/output (I/O) interface 605 is also connected to bus 604.
It is connected to I/O interface 605: include the importation 606 of keyboard, mouse etc. with lower component; Output part 607 including such as cathode ray tube (CRT), liquid crystal display (LCD) etc. and speaker etc.; Storage part 608 including hard disk etc.; And include the communications portion 609 of the NIC of such as LAN card, modem etc. Communications portion 609 performs communication process via the network of such as the Internet. Driver 610 is connected to I/O interface 605 also according to needs. Detachable media 611, such as disk, CD, magneto-optic disk, semiconductor memory etc., be arranged in driver 610 as required, in order to the computer program read from it is mounted into storage part 608 as required.
Especially, according to embodiment of the disclosure, the process described above with reference to flow chart may be implemented as computer software programs. Such as, embodiment of the disclosure and include a kind of computer program, it includes the computer program being tangibly embodied on machine readable media, and described computer program comprises the program code for performing the method shown in flow chart. In such embodiments, this computer program can pass through communications portion 609 and be downloaded and installed from network, and/or is mounted from detachable media 611.
Flow chart in accompanying drawing and block diagram, it is illustrated that according to the system of the various embodiment of the application, the architectural framework in the cards of method and computer program product, function and operation. In this, flow chart or each square frame in block diagram can represent a part for a module, program segment or code, and a part for described module, program segment or code comprises the executable instruction of one or more logic function for realizing regulation. It should also be noted that at some as in the realization replaced, the function marked in square frame can also to be different from the order generation marked in accompanying drawing. Such as, two square frames succeedingly represented can essentially perform substantially in parallel, and they can also perform sometimes in the opposite order, and this determines according to involved function. It will also be noted that, the combination of the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart, can realize by the special hardware based system of the function or operation that perform regulation, or can realize with the combination of specialized hardware Yu computer instruction.
It is described in unit involved in the embodiment of the present application to be realized by the mode of software, it is also possible to realized by the mode of hardware. Described unit can also be arranged within a processor, for instance, it is possible to it is described as: a kind of processor includes timing task information set acquiring unit, timed task instruction set acquiring unit and timed task instruction execution unit. Wherein, the title of these unit is not intended that the restriction to this unit itself under certain conditions, for instance, timing task information set acquiring unit is also described as " obtaining the unit of timing task information set ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, this nonvolatile computer storage media can be the nonvolatile computer storage media comprised in device described in above-described embodiment; Can also be individualism, be unkitted the nonvolatile computer storage media allocating in terminal. Above-mentioned nonvolatile computer storage media storage has one or more program, when one or multiple program are performed by an equipment, make described equipment: obtain the timing task information set being saved in high in the clouds, wherein, timing task information includes the identification code of the targeted equipment of timed task, task execution time and the operation information to described equipment; Obtain current time and determine the timed task instruction set of corresponding described timing task information set based on described current time; By performing, described timed task instruction set is incompatible to be operated described equipment.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle. Skilled artisan would appreciate that, invention scope involved in the application, it is not limited to the technical scheme of the particular combination of above-mentioned technical characteristic, when also should be encompassed in without departing from described inventive concept simultaneously, other technical scheme being carried out combination in any by above-mentioned technical characteristic or its equivalent feature and being formed. Such as features described above and (but not limited to) disclosed herein have the technical characteristic of similar functions and replace mutually and the technical scheme that formed.

Claims (14)

1. a timed task performs method, it is characterised in that described method includes:
Obtaining the timing task information set being saved in high in the clouds, wherein, timing task information includes the identification code of the targeted equipment of timed task, task execution time and the operation information to described equipment;
Obtain current time and determine the timed task instruction set of corresponding described timing task information set based on described current time;
By performing, described timed task instruction set is incompatible to be operated described equipment.
2. method according to claim 1, it is characterised in that described method also includes the step generating timing task information set:
Receive the timing task information that the equipment being connected with Internet of Things is sent;
In chronological sequence described timing task information is ranked up by order, obtains timing task information set by the described timing task information combination after sorting, preserves described timing task information set to high in the clouds.
3. method according to claim 1, it is characterised in that based on described current time, described acquisition current time also determines that the timed task instruction set of corresponding described timing task information set includes:
From described timing task information set, at least one timing task information is selected based on described current time and setting interval;
Generate timed task instruction set according at least one timing task information described, and described timed task instruction set is preserved to the distributed caching being connected with described Internet of Things.
4. method according to claim 1, it is characterised in that described described timed task instruction set is incompatible to be operated including to described equipment by performing:
The next operation temporal information of described timing task information is determined according to current time and described task execution time information;
From described timed task instruction set, extract timed task instruction by described next operation temporal information, and build timed task instruction list by the timed task instruction extracted;
By performing described timed task instruction list, described equipment is operated.
5. method according to claim 4, it is characterised in that described be operated including to described equipment by performing described timed task instruction list:
The cycle interval very first time reads described timed task instruction list;
By performing the timed task instruction dropping in the described cycle very first time in described timed task instruction list with the interval of current time, described equipment is operated.
6. method according to claim 4, it is characterised in that described be operated including to described equipment by performing described timed task instruction list:
The execution result recording described timed task instruction obtains timed task instruction watch-list, described timed task instruction watch-list is saved in described distributed caching, wherein, described timed task instruction watch-list includes described timed task instruction and the execution result information of the described timed task instruction of correspondence.
7. method according to claim 6, it is characterised in that described be operated also including to described equipment by performing described timed task instruction list:
Second time cycle of interval reads described timed task instruction watch-list in described distributed caching;
Performing the timed task instruction that unenforced timed task instruction in described timed task instruction watch-list is failed with execution, described second time cycle is more than the described cycle very first time.
8. a timed task performs device, it is characterised in that described device includes:
Timing task information set acquiring unit, for obtaining the timing task information set being saved in high in the clouds, wherein, timing task information includes the identification code of the targeted equipment of timed task, task execution time and the operation information to described equipment;
Timed task instruction set acquiring unit, for obtaining current time and determining the timed task instruction set of corresponding described timing task information set based on described current time;
Timed task instruction execution unit, for by performing, described timed task instruction set is incompatible to be operated described equipment.
9. device according to claim 8, it is characterised in that described device also includes timing task information set and generates unit, is used for generating timing task information set, including:
Timing task information receives subelement, for receiving the timing task information that the equipment being connected with Internet of Things is sent;
Timing task information set generates subelement, in chronological sequence order, described timing task information is ranked up, and obtains timing task information set by the described timing task information combination after sorting, preserves described timing task information set to high in the clouds.
10. device according to claim 8, it is characterised in that described timed task instruction set acquiring unit includes:
Timing task information selects subelement, for selecting at least one timing task information based on described current time and setting interval from described timing task information set;
Timed task instruction set generates subelement, for generating timed task instruction set according at least one timing task information described, and is preserved to the distributed caching being connected with described Internet of Things by described timed task instruction set.
11. device according to claim 8, it is characterised in that described timed task instruction execution unit includes:
Next operation temporal information determines subelement, for determining the next operation temporal information of described timing task information according to current time and described task execution time information;
Timed task instruction list builds subelement, for extracting timed task instruction from described timed task instruction set by described next operation temporal information, and builds timed task instruction list by the timed task instruction extracted;
Timed task instruction list performs subelement, for described equipment being operated by performing described timed task instruction list.
12. device according to claim 11, it is characterised in that described timed task instruction list performs subelement and includes:
First timed task instruction list read module, reads described timed task instruction list for the cycle interval very first time;
First timed task instruction list performs module, for described equipment being operated by the timed task instruction performing to drop in the described cycle very first time with the interval of current time in described timed task instruction list.
13. device according to claim 11, it is characterised in that described timed task instruction list performs subelement and includes:
Timed task instruction watch-list acquisition module, the execution result for recording described timed task instruction obtains timed task instruction watch-list, is saved in distributed caching by described timed task instruction watch-list.
14. device according to claim 13, it is characterised in that described timed task instruction list performs subelement and also includes:
Second timed task instruction list read module, reads described timed task instruction watch-list for the second time cycle of interval in described distributed caching;
Second timed task instruction list performs module, and the timed task instruction failed with execution for performing unenforced timed task instruction in described timed task instruction watch-list, described second time cycle is more than the described cycle very first time.
CN201610007277.6A 2016-01-06 2016-01-06 Timed task execution method and device Active CN105677469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610007277.6A CN105677469B (en) 2016-01-06 2016-01-06 Timed task execution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610007277.6A CN105677469B (en) 2016-01-06 2016-01-06 Timed task execution method and device

Publications (2)

Publication Number Publication Date
CN105677469A true CN105677469A (en) 2016-06-15
CN105677469B CN105677469B (en) 2019-12-27

Family

ID=56299088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610007277.6A Active CN105677469B (en) 2016-01-06 2016-01-06 Timed task execution method and device

Country Status (1)

Country Link
CN (1) CN105677469B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095562A (en) * 2016-08-23 2016-11-09 北京云纵信息技术有限公司 The method and apparatus of Portable Batch System
CN106131598A (en) * 2016-07-11 2016-11-16 Tcl集团股份有限公司 A kind of task method for pushing based on high in the clouds and system
CN106339255A (en) * 2016-08-24 2017-01-18 北京小米移动软件有限公司 Timed task scheduling method, system and device, and servers
CN106406993A (en) * 2016-09-06 2017-02-15 努比亚技术有限公司 Timed task management method and system
CN106789244A (en) * 2016-12-22 2017-05-31 上海斐讯数据通信技术有限公司 A kind of management method and system of cloud terminal device
CN107065616A (en) * 2017-05-08 2017-08-18 浙江风向标科技有限公司 Inter-linked controlling method and device, computer-readable recording medium
CN107870571A (en) * 2016-09-26 2018-04-03 北京京东尚科信息技术有限公司 Control the method, apparatus and smart machine of smart machine
CN108132836A (en) * 2017-12-29 2018-06-08 北京奇艺世纪科技有限公司 A kind of task distribution method, device and electronic equipment
CN108287751A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 Task executing method and device, distributed system
CN108600077A (en) * 2018-03-01 2018-09-28 聚好看科技股份有限公司 A kind of timed message processing method and message management server
CN108711011A (en) * 2018-05-22 2018-10-26 杭州全视软件有限公司 Pass through Internet of Things generation, distribution task and the method for obtaining task completion assessment
CN109298924A (en) * 2018-09-26 2019-02-01 中国平安人寿保险股份有限公司 Management method, computer readable storage medium and the terminal device of timed task
CN110933148A (en) * 2019-11-15 2020-03-27 苏州浪潮智能科技有限公司 Monitoring method, system, equipment and storage medium
CN111367641A (en) * 2020-03-06 2020-07-03 杭州涂鸦信息技术有限公司 Timing method and system based on Internet of things
CN112147903A (en) * 2019-06-26 2020-12-29 百度在线网络技术(北京)有限公司 Equipment control method and device and computer readable storage medium
CN116800604A (en) * 2023-08-22 2023-09-22 中国科学院空天信息创新研究院 Configurable laser communication equipment control method, device, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140528A (en) * 2007-08-31 2008-03-12 中兴通讯股份有限公司 Method, device and system for realizing timing tasks load equilibria in cluster
US20090158293A1 (en) * 2005-09-05 2009-06-18 Nec Corporation Information processing apparatus
US20100146516A1 (en) * 2007-01-30 2010-06-10 Alibaba Group Holding Limited Distributed Task System and Distributed Task Management Method
CN103197969A (en) * 2013-03-27 2013-07-10 百度在线网络技术(北京)有限公司 Distributed timed task control device and method
CN104932911A (en) * 2014-03-20 2015-09-23 携程计算机技术(上海)有限公司 Method and device for implementing timed download tasks
CN104951361A (en) * 2014-03-27 2015-09-30 阿里巴巴集团控股有限公司 Method and device for triggering timing task
CN105100259A (en) * 2015-08-18 2015-11-25 北京京东尚科信息技术有限公司 Distributed timed task execution method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090158293A1 (en) * 2005-09-05 2009-06-18 Nec Corporation Information processing apparatus
US20100146516A1 (en) * 2007-01-30 2010-06-10 Alibaba Group Holding Limited Distributed Task System and Distributed Task Management Method
CN101140528A (en) * 2007-08-31 2008-03-12 中兴通讯股份有限公司 Method, device and system for realizing timing tasks load equilibria in cluster
CN103197969A (en) * 2013-03-27 2013-07-10 百度在线网络技术(北京)有限公司 Distributed timed task control device and method
CN104932911A (en) * 2014-03-20 2015-09-23 携程计算机技术(上海)有限公司 Method and device for implementing timed download tasks
CN104951361A (en) * 2014-03-27 2015-09-30 阿里巴巴集团控股有限公司 Method and device for triggering timing task
CN105100259A (en) * 2015-08-18 2015-11-25 北京京东尚科信息技术有限公司 Distributed timed task execution method and system

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131598A (en) * 2016-07-11 2016-11-16 Tcl集团股份有限公司 A kind of task method for pushing based on high in the clouds and system
CN106131598B (en) * 2016-07-11 2020-01-24 Tcl集团股份有限公司 Cloud-based task pushing method and system
CN106095562A (en) * 2016-08-23 2016-11-09 北京云纵信息技术有限公司 The method and apparatus of Portable Batch System
CN106339255B (en) * 2016-08-24 2019-10-11 北京小米移动软件有限公司 Dispatching method, system, device and the server of timed task
CN106339255A (en) * 2016-08-24 2017-01-18 北京小米移动软件有限公司 Timed task scheduling method, system and device, and servers
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
CN106789244A (en) * 2016-12-22 2017-05-31 上海斐讯数据通信技术有限公司 A kind of management method and system of cloud terminal device
CN108287751A (en) * 2017-01-09 2018-07-17 阿里巴巴集团控股有限公司 Task executing method and device, distributed system
CN108287751B (en) * 2017-01-09 2022-02-01 阿里巴巴集团控股有限公司 Task execution method and device and distributed system
CN107065616A (en) * 2017-05-08 2017-08-18 浙江风向标科技有限公司 Inter-linked controlling method and device, computer-readable recording medium
CN108132836A (en) * 2017-12-29 2018-06-08 北京奇艺世纪科技有限公司 A kind of task distribution method, device and electronic equipment
CN108132836B (en) * 2017-12-29 2021-10-22 北京奇艺世纪科技有限公司 Task distribution method and device and electronic equipment
CN108600077B (en) * 2018-03-01 2021-01-22 聚好看科技股份有限公司 Timing message processing method and message management server
CN108600077A (en) * 2018-03-01 2018-09-28 聚好看科技股份有限公司 A kind of timed message processing method and message management server
CN108711011A (en) * 2018-05-22 2018-10-26 杭州全视软件有限公司 Pass through Internet of Things generation, distribution task and the method for obtaining task completion assessment
CN109298924A (en) * 2018-09-26 2019-02-01 中国平安人寿保险股份有限公司 Management method, computer readable storage medium and the terminal device of timed task
CN109298924B (en) * 2018-09-26 2024-04-02 中国平安人寿保险股份有限公司 Timing task management method, computer readable storage medium and terminal device
CN112147903A (en) * 2019-06-26 2020-12-29 百度在线网络技术(北京)有限公司 Equipment control method and device and computer readable storage medium
CN110933148A (en) * 2019-11-15 2020-03-27 苏州浪潮智能科技有限公司 Monitoring method, system, equipment and storage medium
CN111367641A (en) * 2020-03-06 2020-07-03 杭州涂鸦信息技术有限公司 Timing method and system based on Internet of things
CN111367641B (en) * 2020-03-06 2023-10-20 杭州涂鸦信息技术有限公司 Timing method and system based on Internet of things
CN116800604A (en) * 2023-08-22 2023-09-22 中国科学院空天信息创新研究院 Configurable laser communication equipment control method, device, equipment and medium
CN116800604B (en) * 2023-08-22 2023-11-07 中国科学院空天信息创新研究院 Configurable laser communication equipment control method, device, equipment and medium

Also Published As

Publication number Publication date
CN105677469B (en) 2019-12-27

Similar Documents

Publication Publication Date Title
CN105677469A (en) Timing task executing method and device
US11188380B2 (en) Method and apparatus for processing task in smart device
CN102880503B (en) Data analysis system and data analysis method
CN109981715B (en) Session management method and device
US20220138074A1 (en) Method, electronic device and computer program product for processing data
CN105607606B (en) A kind of data acquisition device and method based on double mainboard frameworks
CN105468676A (en) Big data processing method
CN109302723B (en) Multi-node real-time radio monitoring control method based on Internet
US20120254133A1 (en) Method for binary persistence in a system providing offers to subscribers
CN114598731B (en) Cluster log acquisition method, device, equipment and storage medium
CN114124643B (en) PaaS-based network equipment flow collection method and device
CN115543423A (en) Method, device and equipment for generating benchmarks and storage medium
CN112000492B (en) Public number user tag management system and method
CN112115113B (en) Data storage system, method, device, equipment and storage medium
CN104735097A (en) Information collecting method and system
CN113342518A (en) Task processing method and device
CN113360558A (en) Data processing method, data processing device, electronic device, and storage medium
CN112148279A (en) Log information processing method and device, electronic equipment and storage medium
CN113886842B (en) Dynamic intelligent scheduling method and device based on test
CN111143280B (en) Data scheduling method, system, device and storage medium
CN108959019A (en) A kind of monitoring method of operating status, device and terminal
CN113852840A (en) Video rendering method and device, electronic equipment and storage medium
CN117082001A (en) Distributed task concurrency control method based on token bucket
CN114021054A (en) Operation and maintenance management method based on kvm combined industrial internet mode
CN115391009A (en) Resource scheduling method, system, equipment and storage medium for batch 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