CN104932911B - The execution method and device of timing downloading task - Google Patents

The execution method and device of timing downloading task Download PDF

Info

Publication number
CN104932911B
CN104932911B CN201410106406.8A CN201410106406A CN104932911B CN 104932911 B CN104932911 B CN 104932911B CN 201410106406 A CN201410106406 A CN 201410106406A CN 104932911 B CN104932911 B CN 104932911B
Authority
CN
China
Prior art keywords
downloading task
time point
execution
active
timing
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.)
Active
Application number
CN201410106406.8A
Other languages
Chinese (zh)
Other versions
CN104932911A (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.)
Shanghai Ctrip Business Co Ltd
Original Assignee
Shanghai Ctrip Business 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 Shanghai Ctrip Business Co Ltd filed Critical Shanghai Ctrip Business Co Ltd
Priority to CN201410106406.8A priority Critical patent/CN104932911B/en
Publication of CN104932911A publication Critical patent/CN104932911A/en
Application granted granted Critical
Publication of CN104932911B publication Critical patent/CN104932911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of execution method and device of timing downloading task comprising active execution method and passive execution method, active execution method includes: S1, database receive several timing downloading tasks;S2, several timing downloading tasks are obtained out of database;S3, the reference time point of timing downloading task is added with execution interval duration, judges whether to fall into set period of time, if so then execute S4, if otherwise executing S62;S4, active downloading task is executed;S5, S61 is executed after updating reference time point to execution moment;S61, S71 is executed after updating the execution time point of active downloading task;S62, the execution time point of passive downloading task is updated;S71, active downloading task is sent back into database;S72, passive downloading task is sent back into database.It is used in combination by active execution method and passive execution method, while guaranteeing user experience, has saved system cost to a greater extent.

Description

The execution method and device of timing downloading task
Technical field
The present invention relates to a kind of execution method and devices of timing downloading task.
Background technique
Currently, some network seat reservation systems (such as air ticket seat reservation system etc.) are generally mentioned by following two mode from service For the current newest full cabin information of mechanism downloading (that is, whether the coastiong, this time flight is remaining to ticketing): 1) being sent out in user It send order because of full cabin (i.e. nothing left ticket) and after failure, updates the full cabin information of the targeted train number of the order or flight etc.;2) With it is a certain when a length of interval update full cabin information.
The defect of such method is: on the one hand, user sends order failure and updates, or automatically updates frequency mistake Slowly, it will cause user experience to decline and then lose client;On the other hand, since the mode frequent updating automatically updated expires cabin letter Breath, can cause stress the server of operator, and generate correlative charges, therefore increase cost.
Summary of the invention
The technical problem to be solved by the present invention is in order to overcome prior art cost and user experience to be difficult to satisfactory to both parties defect, A kind of execution method and device of timing downloading task that can have not only guaranteed user experience but also reduce system cost is provided.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A kind of execution method of timing downloading task, it is characterized in that comprising there is an active execution method and one passively Execution method, the active execution method includes following steps:
S1, a database receive several timing downloading tasks, wherein when each timing downloading task includes an execution Between point, an execution interval duration and a reference time point;
That is, each timing downloading task is by three attributes: executing time point, execution interval duration and benchmark Time point.
S2, obtained out of described database it is several it is described execute time points be located at current time be starting one set when Between timing downloading task in section;
S3, the timing downloading task that will acquire reference time point be added with execution interval duration, judge to be added Whether time point out falls into the set period of time, if so then execute S4, if otherwise executing S62;
Herein, it is possible to directly find some spy from database in method (see below S100~S400) due to passively executing Fixed timing downloading task is downloaded and changes the reference time point of the specific timing downloading task, so to judge benchmark Time is added whether obtained time point falls into set period of time with execution interval duration, excludes passively whereby The timing downloading task executed.
The time point that S4, addition obtain falls into the timing downloading task in the set period of time and appoints for actively downloading Business, executes the active downloading task, and after recording the execution moment of the active downloading task, executes S5;
Herein, active downloading task by what this approach of automatic execution method was actively downloaded it is to be understood that determined When downloading task.
S5, S61 is executed after updating the reference time point to the execution moment of the active downloading task;
S61, the reference time point that the execution time point of the active downloading task is updated to same active downloading task S71 is executed after being added the time point obtained with execution interval duration;
Under the time point that S62, addition obtain is passive without falling into the timing downloading task in the set period of time The execution time point of the passive downloading task is updated to the reference time point and execution of same passive downloading task by load task Interval duration executes S72 after being added the time point obtained;
S71, after the active downloading task is sent back the database, S2 is executed;
S72, after the passive downloading task is sent back the database, S2 is executed;
It, can will be passive that is, by judge whether time point for obtaining of addition falls into the set period of time (that is, reference time point is updated) the timing downloading task executed in execution method (seeing below) (appoint by i.e. passive downloading Business) it excludes.
The passive execution method includes following steps:
S100, an instruction is received, described instruction is for downloading task when executing certain;
S200, the timing downloading task in S100 is found from the database;
S300, the timing downloading task in S100 is executed, and records holding for the timing downloading task in S100 The row moment;
S400, the reference time point for updating the timing downloading task in S100 are the execution moment in S300.
Herein, passive execution method relates generally to other means and holds to manual (i.e. passive) of specific timing downloading task Row.The execution method of entire timing downloading task can be made to take into account the benefit actively downloaded and passively downloaded in this way.
Preferably, including S21 between the S2 and S3:
The timing downloading task that will acquire is put into a timing downloading task queue, in the timing downloading task queue The timing downloading task quantity be higher than one setting quantity when stop the acquisition;
The S3 is, successively by the reference time point of the timing downloading task in the timing downloading task queue with Execution interval duration is added, and judges to be added whether the time point obtained falls into the set period of time, if so then execute S4, if Otherwise S62 is executed.
That is, the timing downloading task in timing downloading task queue quantitatively (is handled in the presence of when accumulating When busy), it is waited, does not continue to obtain new timing downloading task whithin a period of time to reduce system pressure.
Preferably, the S4 are as follows:
Being added the timing downloading task that the time point obtained falls into the set period of time is active downloading task, Execute the active downloading task, judge the active downloading task whether one setting implementation number in successful execution, if It is to execute S41, if otherwise executing S42;
S41, after the execution moment for recording the active downloading task, S5 is executed;
S42, terminate process after the active downloading task is sent to an error set of tasks.
Herein, the serious forgiveness for the system that can be improved is set in this way.
Preferably, the S42 are as follows:
S43 is executed after the active downloading task is sent to an error set of tasks;
S43, one first setting duration of every process, are screened from whole active downloading tasks in the error set of tasks The executable active downloading task is sent to the database, and will can be performed by executable active downloading task out The reference time point of the active downloading task be updated to sending instant and subtract the time point that execution interval duration obtains.
That is, the active downloading task of failed download can be put together, it will be therein at certain specific time points Executable active downloading task (i.e. the active downloading task of failed download due to system problem, it is non-to be made because of failure itself At the active downloading task of failed download) it is re-transmitted to database, the circulation executed into active.
Preferably, the S1 are as follows:
A length of interval receives several timing downloading tasks when one database is with one second setting, wherein each timing downloading Task includes an execution time point, an execution interval duration and a reference time point.
That is, the timing downloading task that database timing receipt is new.
The present invention also provides a kind of executive devices of timing downloading task, it is characterized in that comprising there is one actively to execute Module and a passive execution module, the active execution module includes: a database, it is certain when downloading task acquisition module, One time point judgment module, an active downloading task execution module, an active downloading task reference time point update module, a master Dynamic downloading task executes time point update module, a passive downloading task executes time point update module, an active downloading task It sends back to module and a passive downloading task sends back to module;
The database is for receiving several timing downloading tasks, wherein each timing downloading task includes to hold Row time point, an execution interval duration and a reference time point;
The timing downloading task obtains module and is located at for obtaining several execution time points out of described database It take current time as the timing downloading task in a set period of time of starting;
The reference time point and execution interval for the timing downloading task that the time point judgment module is used to will acquire Duration is added, and judges to be added whether the time point obtained falls into the set period of time, if the active is then called to download Task execution module, if the passive downloading task is otherwise called to execute time point update module;
Being added the timing downloading task that the time point obtained falls into the set period of time is active downloading task, The active downloading task execution module records the execution of the active downloading task for executing the active downloading task After moment, the active downloading task reference time point update module is called;
The active downloading task reference time point update module is used to update the fiducial time of the active downloading task The active downloading task is called to execute time point update module after point to the execution moment;
The active downloading task executes time point update module and is used for the execution time point of the active downloading task Be updated to same active downloading task reference time point be added the time point obtained with execution interval duration after call the master Dynamic downloading task sends back to module;
The time point that addition obtains is that passive downloading is appointed without falling into the timing downloading task in the set period of time Business, the passive downloading task execute time point update module for the execution time point of the passive downloading task to be updated to The reference time point of same passive downloading task calls the passive downloading after being added the time point obtained with execution interval duration Task sends back to module;
The active downloading task sends back to module for calling after the active downloading task is sent back the database The timing downloading task obtains module;
The passive downloading task sends back to module for calling after the passive downloading task is sent back the database The timing downloading task obtains module;
Downloading task searching module when the passive execution module includes a command reception module, is certain, centainly at present The passive execution module of load task and the passive update module of a reference time point;
Described instruction receiving module is used to receive the instruction of downloading task when for executing certain;
The timing downloading task searching module is used to find corresponding described fixed of described instruction from the database When downloading task;
The passive execution module of timing downloading task is used to execute the corresponding timing downloading task of described instruction, and Record the execution moment of the corresponding timing downloading task of described instruction;
The passive update module of reference time point is used to update the base of the corresponding timing downloading task of described instruction Quasi- time point is the execution moment of the corresponding timing downloading task of described instruction.
Preferably, the executive device of the timing downloading task further includes having a threshold module, the timing downloading task Module is obtained to be also used to call the threshold module that acquired timing downloading task is put into a timing downloading task queue, The quantity of the timing downloading task in the timing downloading task queue stops the acquisition when being higher than a setting quantity, Then the time point judgment module is called;
The time point judgment module is used for successively by the timing downloading task in the timing downloading task queue Reference time point be added with execution interval duration, judge to be added whether time point for obtaining falls into the set period of time, If then calling the active downloading task execution module, if the passive downloading task is otherwise called to execute time point update mould Block.
Preferably, the executive device of the timing downloading task further includes having an active downloading task to execute moment record mould Block and an error task processing module;
Being added the timing downloading task that the time point obtained falls into the set period of time is active downloading task;
The active downloading task execution module is used for, and executes the active downloading task, judges that the active downloading is appointed Successful execution in the implementation number whether business sets one, if the active downloading task is then called to execute moment record mould Block, if otherwise calling the error task processing module;
After the active downloading task executes the execution moment that moment logging modle is used to record the active downloading task, Call the active downloading task reference time point update module;
The error task processing module is used to the active downloading task being sent to an error set of tasks.
Preferably, the executive device of the timing downloading task further includes having an error task to retransmit module;
The error task processing module after the active downloading task is sent to an error set of tasks for calling The error task retransmits module;
The error task retransmits module for every by one first setting duration, from complete in the error set of tasks Executable active downloading task is filtered out in portion's active downloading task, and the executable active downloading task is sent to institute When stating database, and the reference time point of the executable active downloading task being updated to sending instant subtract execution interval The long time point obtained.
Preferably, a length of interval receives several timing downloading tasks when the database is for one second setting, wherein every Downloading task includes an execution time point, an execution interval duration and a reference time point when certain.
Positive effect of the present invention is: being used in combination by active execution method and passive execution method, is guaranteeing user While experience, system cost has been saved to a greater extent.
Detailed description of the invention
Fig. 1 is the flow chart of the active execution method of present pre-ferred embodiments.
Fig. 2 is the flow chart of the passive execution method of present pre-ferred embodiments.
Fig. 3 is the structural schematic diagram of the executive device of the timing downloading task of present pre-ferred embodiments.
Specific embodiment
A preferred embodiment is named, and completely illustrates the present invention in conjunction with attached drawing to become apparent from.
Fig. 1 is the flow chart of the active execution method of the present embodiment, and Fig. 2 is the process of the passive execution method of the present embodiment Figure, as shown in Fig. 1~2, the timing downloading task in the execution method for the timing downloading task that the present embodiment is related to is that air ticket is pre- The downloading task of full cabin data is ordered in system, downloading task of each full cabin data includes an execution time point, one holds Row interval duration and a reference time point.Wherein, a length of current newest from the downloading of Shipping service offer mechanism when execution interval The interval duration of full cabin information, can be by experienced business expert for conditions such as different flights and periods, to each A timing downloading task sets execution interval duration, can also automatically be changed according to the variation of the different attribute of each flight Become the execution interval duration of corresponding timing downloading task.
The execution method for the timing downloading task that the present embodiment is related to includes an active execution method and a passive execution Method, active execution method automatically appoint each timing downloading by the execution interval duration of aforementioned timing downloading task The corresponding full cabin data of business are downloaded, and include following steps:
Step 1, a database are that interval receives under several timings with one second setting duration (for 1 minute in the present embodiment) Load task.
Step 2 obtains several execution time points positioned at the set period of time for taking current time as starting out of database Interior timing downloading task.
Step 21, the timing downloading task that will acquire are put into a timing downloading task queue, in timing downloading task team The quantity of timing downloading task in column stops obtaining when being higher than setting quantity (being set as 1000 in the present embodiment).
Step 3, successively by the reference time point and execution interval of the timing downloading task in timing downloading task queue when It is long to be added, judge to be added whether the time point obtained falls into set period of time, if so then execute step 4, if otherwise executing step Rapid 62.
The timing downloading task that the time point that step 4, addition obtain falls into set period of time is active downloading task, is held Row active downloading task, judge active downloading task whether one setting implementation number in successful execution, if so then execute step Rapid 41,42 are thened follow the steps if not.
Step 41 after the execution moment for recording active downloading task, executes step 5.
Step 42 executes step 43 after active downloading task to be sent to an error set of tasks.
Step 43, one first setting duration (being set as 24 hours in the present embodiment) of every process, out of error set of tasks Whole active downloading tasks in filter out executable active downloading task, executable active downloading task is sent to number According to library, and the reference time point of executable active downloading task is updated to sending instant and subtracts what execution interval duration obtained Time point.
Step 5, the reference time point for updating active downloading task execute step 61 to after executing the moment.
Step 61, the reference time point that the execution time point of active downloading task is updated to same active downloading task with Execution interval duration executes step 71 after being added the time point obtained.
The time point that step 62, addition obtain is that passive downloading is appointed without falling into the timing downloading task in set period of time The execution time point of passive downloading task is updated to the reference time point and execution interval duration of same passive downloading task by business Step 72 is executed after being added the time point obtained.
Step 71 after active downloading task is sent back database, executes step 2.
Step 72 after passive downloading task is sent back database, executes step 2.
In addition, passively executing method after failure and user's transmission order is because of full cabin (i.e. nothing left ticket), updates and be somebody's turn to do The full cabin of the targeted train number of order or flight (i.e. the targeted timing downloading task of order issues the instruction passively executed) etc. Data.Since above-mentioned execution interval duration is possible to because the too long or other factors of setting, user consult current full cabin number According to when be shown with remaining ticket, and it is out of date actually to expire cabin data, needs to re-download.
Passive execution method includes following steps:
Step 100 receives an instruction, instructs downloading task when for executing certain;
Step 200, the timing downloading task being found in the database in step 100;
Step 300 executes timing downloading task in step 100, and timing downloading task in recording step 100 is held The row moment;
Step 400, the reference time point for updating the timing downloading task in step 100 are the execution moment in step 300.
Fig. 3 is the structural schematic diagram of the executive device of the timing downloading task of the present embodiment, as shown in figure 3, the present embodiment The executive device for the timing downloading task being related to includes an active execution module and a passive execution module, and the active executes Module includes: a database 101, it is certain when downloading task acquisition module 102, a threshold module 121, a time point judge mould Block 103, an active downloading task execution module 104, an active downloading task execute the error task of moment logging modle 141, one Processing module 142, error task are retransmitted under module 143, an active downloading task reference time point update module 105, an active Carry task execution time point update module 161, a passive downloading task executes the actively downloading times of time point update module 162, one Business sends back to module 171 and a passive downloading task sends back to module 172.
A length of interval receives several timing downloading tasks when database 101 is with one second setting, wherein each timing downloading Task includes an execution time point, an execution interval duration and a reference time point.
Timing downloading task obtains module 102 and is located at for obtaining several execution time points out of database 101 with current Moment is the timing downloading task in a set period of time of starting.
Timing downloading task obtains module 102 and is also used to call threshold module 121 for appointing acquired timing downloading Business is put into a timing downloading task queue, and the quantity of the timing downloading task in timing downloading task queue is higher than a setting Stop obtaining when quantity, then allocating time point judgment module 103.
Time point judgment module 103 is used for successively by the fiducial time of the timing downloading task in timing downloading task queue Point is added with execution interval duration, judges to be added whether the time point obtained falls into set period of time, if then calling actively Downloading task execution module 104, if passive downloading task is otherwise called to execute time point update module 162.
Being added the timing downloading task that the time point obtained falls into set period of time is active downloading task;
Whether active downloading task execution module 104 is used for, execute active downloading task, judge active downloading task one Successful execution in the implementation number of setting, if then calling active downloading task to execute moment logging modle 141, if otherwise calling Malfunction task processing module 142.
After active downloading task executes the execution moment that moment logging modle 141 is used to record active downloading task, call Active downloading task reference time point update module 105.
Error task processing module 142 is used to call error to appoint after active downloading task to be sent to an error set of tasks Module 143 is retransmitted in business.
Error task retransmits module 143 and sets duration by one first for every, main from the whole in error set of tasks Executable active downloading task is filtered out in dynamic downloading task, executable active downloading task is sent to database 101, And the reference time point of executable active downloading task is updated to sending instant and subtracts the time that execution interval duration obtains Point.
Active downloading task reference time point update module 105 is used to update the reference time point of active downloading task to holding Active downloading task is called to execute time point update module 161 after the row moment.
Active downloading task executes time point update module 161 for the execution time point of active downloading task to be updated to The reference time point of same active downloading task calls active downloading task after being added the time point obtained with execution interval duration Send back to module 171.
The time point that addition obtains is passive downloading task without falling into the timing downloading task in set period of time, under passive It carries task execution time point update module 162 and is used to for being updated at the execution time point of passive downloading task same passive downloading times The reference time point of business calls passive downloading task to send back to module 172 after being added the time point obtained with execution interval duration.
Active downloading task sends back to module 171 for calling under timing after active downloading task is sent back database 101 Carry task acquisition module 102.
Passive downloading task sends back to module 172 for calling under timing after passive downloading task is sent back database 101 Carry task acquisition module 102.
It is downloading task searching module 2000 when passive execution module includes a command reception module 1000, is certain, certain When the passive execution module 3000 of the downloading task and passive update module 4000 of a reference time point.
Command reception module 1000 instructs downloading task when for executing certain for receiving an instruction;
Timing downloading task searching module 2000 from database 101 for finding the corresponding timing downloading task of instruction.
The passive execution module 3000 of timing downloading task is for executing instruction corresponding timing downloading task, and recording instruction The execution moment of corresponding timing downloading task.
The passive update module 4000 of reference time point is used for the reference time point of the corresponding timing downloading task of more new command For the execution moment for instructing corresponding timing downloading task.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that this is only For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from Under the premise of the principle and substance of the present invention, many changes and modifications may be made, but these change and Modification each falls within protection scope of the present invention.

Claims (10)

1. a kind of execution method of timing downloading task, which is characterized in that it includes that an active execution method and one passively hold Row method, the active execution method includes following steps:
S1, a database receive several timing downloading tasks, wherein each timing downloading task includes the execution time Point, an execution interval duration and a reference time point;
S2, several execution time points are obtained out of described database positioned at the set period of time for taking current time as starting Interior timing downloading task;
S3, the timing downloading task that will acquire reference time point be added with execution interval duration, judge to be added and obtain Whether time point falls into the set period of time, if so then execute S4, if otherwise executing S62;
The timing downloading task that the time point that S4, addition obtain falls into the set period of time is active downloading task, The active downloading task is executed, and after recording the execution moment of the active downloading task, executes S5;
S5, S61 is executed after updating the reference time point to the execution moment of the active downloading task;
It S61, the reference time point that the execution time point of the active downloading task is updated to same active downloading task and holds Row interval duration executes S71 after being added the time point obtained;
The time point that S62, addition obtain is that passive downloading is appointed without falling into the timing downloading task in the set period of time At the execution time point of the passive downloading task, is updated to the reference time point and execution interval of same passive downloading task by business Duration executes S72 after being added the time point obtained;
S71, after the active downloading task is sent back the database, S2 is executed;
S72, after the passive downloading task is sent back the database, S2 is executed;
The passive execution method includes following steps:
S100, an instruction is received, described instruction is for downloading task when executing certain;
S200, the timing downloading task in S100 is found from the database;
S300, when executing the timing downloading task in S100, and recording the execution of the timing downloading task in S100 It carves;
S400, the reference time point for updating the timing downloading task in S100 are the execution moment in S300.
2. the execution method of timing downloading task as described in claim 1, which is characterized in that include between the S2 and S3 S21:
The timing downloading task that will acquire is put into a timing downloading task queue, the institute in the timing downloading task queue Stop the acquisition when stating the quantity of timing downloading task higher than a setting quantity;
The S3 are as follows: successively by the reference time point and execution of the timing downloading task in the timing downloading task queue It is spaced duration to be added, judges to be added whether the time point obtained falls into the set period of time, if so then execute S4, if otherwise Execute S62.
3. the execution method of timing downloading task as claimed in claim 2, which is characterized in that the S4 are as follows:
Being added the timing downloading task that the time point obtained falls into the set period of time is active downloading task, is executed The active downloading task, judge the active downloading task whether one setting implementation number in successful execution, if then S41 is executed, if otherwise executing S42;
S41, after the execution moment for recording the active downloading task, S5 is executed;
S42, terminate process after the active downloading task is sent to an error set of tasks.
4. the execution method of timing downloading task as claimed in claim 3, which is characterized in that the S42 are as follows:
S43 is executed after the active downloading task is sent to an error set of tasks;
S43, one first setting duration of every process, filtering out from whole active downloading tasks in the error set of tasks can The executable active downloading task is sent to the database, and the institute that will be can be performed by the active downloading task of execution The reference time point for stating active downloading task is updated to sending instant and subtracts the time point that execution interval duration obtains.
5. the execution method of timing downloading task as described in claim 1, which is characterized in that the S1 are as follows:
A length of interval receives several timing downloading tasks when one database is with one second setting, wherein each timing downloading task It include an execution time point, an execution interval duration and a reference time point.
6. a kind of executive device of timing downloading task, which is characterized in that it includes that an active execution module and one passively hold Row module, the active execution module includes: a database, it is certain when downloading task acquisition module, a time point judge mould Block, an active downloading task execution module, an active downloading task reference time point update module, an active downloading task execute Time point update module, a passive downloading task executes time point update module, an active downloading task sends back to module and a quilt Dynamic downloading task sends back to module;
The database is for receiving several timing downloading tasks, wherein when each timing downloading task includes an execution Between point, an execution interval duration and a reference time point;
The timing downloading task obtains module and is located at for obtaining several execution time points out of described database to work as The preceding moment is the timing downloading task in a set period of time of starting;
The reference time point and execution interval duration for the timing downloading task that the time point judgment module is used to will acquire It is added, judges to be added whether the time point obtained falls into the set period of time, if then calling the active downloading task Execution module, if the passive downloading task is otherwise called to execute time point update module;
Being added the timing downloading task that the time point obtained falls into the set period of time is active downloading task, described Active downloading task execution module records the execution moment of the active downloading task for executing the active downloading task Afterwards, the active downloading task reference time point update module is called;
The active downloading task reference time point update module is used to update the reference time point of the active downloading task extremely The active downloading task is called to execute time point update module after the execution moment;
The active downloading task executes time point update module and is used to update the execution time point of the active downloading task For same active downloading task reference time point be added the time point obtained with execution interval duration after call under the active Load task sends back to module;
The time point that addition obtains is passive downloading task, institute without falling into the timing downloading task in the set period of time It is same for the execution time point of the passive downloading task to be updated to state passive downloading task execution time point update module The reference time point of passive downloading task calls the passive downloading task after being added the time point obtained with execution interval duration Send back to module;
The active downloading task sends back to module for after the active downloading task is sent back the database, described in calling Timing downloading task obtains module;
The passive downloading task sends back to module for after the passive downloading task is sent back the database, described in calling Timing downloading task obtains module;
Downloading task searching module when the passive execution module includes a command reception module, is certain, it is certain when downloading appoint Passive execution module of being engaged in and the passive update module of a reference time point;
Described instruction receiving module is used to receive the instruction of downloading task when for executing certain;
The timing downloading task searching module for finding under the corresponding timing of described instruction from the database Load task;
The passive execution module of timing downloading task is recorded for executing the corresponding timing downloading task of described instruction The execution moment of the corresponding timing downloading task of described instruction;
When the passive update module of reference time point is used to update the benchmark of the corresponding timing downloading task of described instruction Between point be the corresponding timing downloading task of described instruction the execution moment.
7. the executive device of timing downloading task as claimed in claim 6, which is characterized in that the timing downloading task is held It further includes having a threshold module that luggage, which is set, and the timing downloading task obtains module and is also used to call the threshold module that will be obtained The timing downloading task taken is put into a timing downloading task queue, under the timing in the timing downloading task queue The quantity of load task stops the acquisition when being higher than a setting quantity, then calls the time point judgment module;
The time point judgment module is used for successively by the base of the timing downloading task in the timing downloading task queue Quasi- time point is added with execution interval duration, judges to be added whether the time point obtained falls into the set period of time, if The active downloading task execution module is then called, if the passive downloading task is otherwise called to execute time point update module.
8. the executive device of timing downloading task as claimed in claim 7, which is characterized in that the timing downloading task is held It further includes having an active downloading task to execute moment logging modle and an error task processing module that luggage, which is set,;
The active downloading task execution module is used for: being executed the active downloading task, is judged that the active downloading task is The no successful execution in the implementation number of a setting, if the active downloading task is then called to execute moment logging modle, if Otherwise the error task processing module is called;
After the active downloading task executes the execution moment that moment logging modle is used to record the active downloading task, call The active downloading task reference time point update module;
The error task processing module is used to the active downloading task being sent to an error set of tasks.
9. the executive device of timing downloading task as claimed in claim 8, which is characterized in that the timing downloading task is held It further includes having an error task to retransmit module that luggage, which is set,;
Described in the error task processing module is used to be sent to the active downloading task after one error set of tasks and calls Error task retransmits module;
The error task retransmits module and sets duration by one first for every, main from the whole in the error set of tasks Executable active downloading task is filtered out in dynamic downloading task, the executable active downloading task is sent to the number It is updated to grow when sending instant subtracts execution interval according to library, and by the reference time point of the executable active downloading task Time point out.
10. the executive device of timing downloading task as claimed in claim 6, which is characterized in that the database is used for one A length of interval receives several timing downloading tasks when the second setting, wherein when each timing downloading task includes an execution Between point, an execution interval duration and a reference time point.
CN201410106406.8A 2014-03-20 2014-03-20 The execution method and device of timing downloading task Active CN104932911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410106406.8A CN104932911B (en) 2014-03-20 2014-03-20 The execution method and device of timing downloading task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410106406.8A CN104932911B (en) 2014-03-20 2014-03-20 The execution method and device of timing downloading task

Publications (2)

Publication Number Publication Date
CN104932911A CN104932911A (en) 2015-09-23
CN104932911B true CN104932911B (en) 2019-06-18

Family

ID=54120087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410106406.8A Active CN104932911B (en) 2014-03-20 2014-03-20 The execution method and device of timing downloading task

Country Status (1)

Country Link
CN (1) CN104932911B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873194A (en) * 2015-11-30 2016-08-17 乐视网信息技术(北京)股份有限公司 Method and device for reporting behaviours of mobile terminal
CN105677469B (en) * 2016-01-06 2019-12-27 北京京东世纪贸易有限公司 Timed task execution method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1853428A (en) * 2003-09-19 2006-10-25 皮科特有限公司 Apparatus and method for automated updating system for wireless networks
US7849191B2 (en) * 2002-11-29 2010-12-07 Ntt Docomo, Inc. Download system, communication terminal, server, and download method
CN102375865A (en) * 2010-08-24 2012-03-14 腾讯科技(深圳)有限公司 Message updating method for message client, and message client
CN103324670A (en) * 2013-05-21 2013-09-25 华中科技大学 Method and system for pushing web page content updating information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7849191B2 (en) * 2002-11-29 2010-12-07 Ntt Docomo, Inc. Download system, communication terminal, server, and download method
CN1853428A (en) * 2003-09-19 2006-10-25 皮科特有限公司 Apparatus and method for automated updating system for wireless networks
CN102375865A (en) * 2010-08-24 2012-03-14 腾讯科技(深圳)有限公司 Message updating method for message client, and message client
CN103324670A (en) * 2013-05-21 2013-09-25 华中科技大学 Method and system for pushing web page content updating information

Also Published As

Publication number Publication date
CN104932911A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN103197969B (en) Distributed timed task control device and method
GB2573444A (en) Method and system for analytics-based updating of networked devices
CN104699541B (en) Method, apparatus, data transfer components and the system of synchrodata
JP6427763B2 (en) Management device
CN103997498B (en) Distributed lock service implementation method and component
TWI564805B (en) Can filter adjust the task scheduling system and scheduling methods
US9798680B2 (en) Policy control method and apparatus for terminal peripheral
EP3282369A1 (en) Remote data synchronization method and apparatus for database
CN105468500B (en) timed task monitoring method and device
CN107566460B (en) Method and system for distributed deployment of planning tasks
CN104932911B (en) The execution method and device of timing downloading task
EP2829930A1 (en) Production project proposal determination method, production project proposal device and program
JP2006048350A5 (en)
CN110532074A (en) A kind of method for scheduling task and system of multi-tenant Mode S aaS service cluster environment
CN111240935B (en) Automatic intelligent operation and maintenance system and operation and maintenance method
JP2012019199A5 (en) PROCESSING SYSTEM, SUBSTRATE PROCESSING APPARATUS, DATA PROCESSING METHOD OF PROCESSING SYSTEM, COLLECTING UNIT, RECORDING MEDIUM, AND MANUFACTURING METHOD OF SEMICONDUCTOR DEVICE
CN104980513B (en) A kind of multi-client collaboration grouping concurrency conflict and permission processing method
US10908951B2 (en) Coordinating event-driven object execution
US8937946B1 (en) System and method for identifying tunnel information without frequently polling all routers for all tunnel information
CN103645922B (en) It is a kind of that the method, apparatus and system for carrying out software cleaning are inquired about based on cloud
CN109976883A (en) A kind of processing method and its system of task
JP5393194B2 (en) Medical work support device
EP2988476A1 (en) Method and apparatus for processing operation on endpoint peripheral
JP7078383B2 (en) Working time management device
JP2021516394A (en) User interface optimization for delayed data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160206

Address after: 200335 Shanghai city Changning District Admiralty Road No. 968 Building No. 16 10 floor

Applicant after: SHANGHAI XIECHENG BUSINESS CO., LTD.

Address before: 200335 Shanghai City, Changning District Fuquan Road No. 99, Ctrip network technology building

Applicant before: Ctrip computer technology (Shanghai) Co., Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant