CN109298929A - Timing task carrying-out time recommended method, device, equipment and storage medium - Google Patents

Timing task carrying-out time recommended method, device, equipment and storage medium Download PDF

Info

Publication number
CN109298929A
CN109298929A CN201811186816.2A CN201811186816A CN109298929A CN 109298929 A CN109298929 A CN 109298929A CN 201811186816 A CN201811186816 A CN 201811186816A CN 109298929 A CN109298929 A CN 109298929A
Authority
CN
China
Prior art keywords
period
execution
timed task
execution period
pending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811186816.2A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811186816.2A priority Critical patent/CN109298929A/en
Publication of CN109298929A publication Critical patent/CN109298929A/en
Pending legal-status Critical Current

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/4825Interrupt from clock, e.g. time of day
    • 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/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution

Abstract

The present invention relates to field of computer technology more particularly to a kind of timing task carrying-out time recommended method, device, equipment and storage mediums.Timing task carrying-out time recommended method includes: to obtain the execution period of user setting, determines the minimum time granularity for executing the period;Several first will be divided into the execution period and execute the periods;Obtain existing pending timed task in database;The pending timed task quantity in every one first execution period is calculated, screen pending timed task minimum number first executes the period, the execution period most lightly loaded is as run to system;The execution period most lightly loaded will be run to system, push to user client.The present invention passes through the execution period for counting and calculating existing timed task, filter out the execution period of timed task minimum number, push to user, it solves currently since blindly the selection execution time causes a large amount of timed tasks that may concurrently execute the problem for keeping system load excessively high in sometime point accumulation to user.

Description

Timing task carrying-out time recommended method, device, equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of timing task carrying-out time recommended method, device, set Standby and storage medium.
Background technique
With the fast development of computer technology, all trades and professions all can use computer to carry out actual operation and control. For the ease of management, and save computer resource, it will usually which timed task is set in a computer.Currently, timed task is set After being set to function, is run according to execution time, the execution frequency etc. that have been arranged, opened with reducing the management resource of computer resource Pin.After timed task is arranged, generally requiring the execution time to timed task is configured.
During timed task creation, the time of operation is generally specified by user.If the operation of user's selection task Period is one hour, then specifically needing to select task in which partite transport row hourly;If select the cycle of operation of task for One day, then need to select task to bring into operation in which daily hour, and so on.
But user, especially to the uncomprehending user of system, often only can select to write from memory when selecting runing time Recommendation time for recognizing at will selects according to the hobby of oneself.Which results in considerable tasks sometime to put heap Product, when execution, considerable task is concurrently executed so that system load is very high.
Summary of the invention
In view of this, it is necessary to for existing user when the timed task setting to creation executes the time, blindly select One execution time causes considerable task may be the problem of sometime point is accumulated, when providing a kind of execution of timed task Between recommended method, device, equipment and storage medium.
A kind of timing task carrying-out time recommended method, includes the following steps:
In the execution period for obtaining the timed task of user setting, determine the execution period corresponding minimum time particle Degree;
According to the minimum time granularity, the execution period is divided into several the first execution periods;
Obtain all pending timed tasks for having set the execution time in database;
The pending timed task quantity in each first execution period is counted and calculated, pending timing is filtered out Task quantity least described first executes the period, and the execution period most lightly loaded is as run to system;
Is run as the execution time recommended the execution period most lightly loaded to system using described, pushes to setting
The user client in the execution period of timed task.
In one of the embodiments, the execution period of the timed task for obtaining user setting, determine the execution Period corresponding minimum time granularity, comprising:
Obtain the execution period of the timed task;
Period-minimum time granularity relation mapping table is called, according to the execution period, in period-minimum time Retrieval matches the minimum time granularity corresponding with the execution period in Relationship Between Size mapping table.
It is described in one of the embodiments, to obtain all pending timings for having set the execution time times in database Business, comprising:
The access authority of the database is obtained, and is connected to the database, all institutes are stored in the database The metamessage of pending timed task and each pending timed task is stated, the metamessage includes described pending fixed When task the execution period and Time Of Next execution;
The query script is executed after sending query script to the database, obtains all pending timed tasks And execution period and the Time Of Next execution of each pending timed task, the query script is with described pending fixed When task be query argument or searching keyword.
The pending timing for counting and calculating in each first execution period is appointed in one of the embodiments, Business quantity, filter out pending timed task minimum number described first execute the period, as run to system most lightly loaded The execution period, comprising:
According to the execution period of each pending timed task and Time Of Next execution, calculate each described wait hold Second executes the period belonging to row timed task;
The pending timed task in the same second execution period for executing the period will be belonged to respectively, carry out plus-minus fortune It calculates, show that all described second execute the pending timed task quantity in the period;
It filters out described second be overlapped with the first execution period and executes the period, and list held with described first respectively The quantity for the pending timed task in the second execution period that the row period is overlapped, obtains affiliated each described first Execute the pending timed task quantity in the period;
Filter out pending timed task minimum number described first executes the period, as runs to system most lightly loaded The execution period.
It is described in one of the embodiments, that execution period most lightly loaded holding as recommendation is run to system using described The row time pushes to the user client in the execution period of setting timed task, comprising:
Execution period generation most lightly loaded is run to PUSH message to system by described, and according to described to PUSH message Prompt information is generated, the prompt printed words for running the execution period most lightly loaded to system are carried in the prompt information;
By the user client in the execution period for pushing to setting timed task to PUSH message and the prompt information End.
The access authority for obtaining the database in one of the embodiments, and it is connected to the database, institute The metamessage that all pending timed tasks and each pending timed task are stored in database is stated, it is described Metamessage includes execution period and the Time Of Next execution of the pending timed task, comprising:
It is attached by Hibernate Object Relation Mapping frame and the database;
The access authority of the database is obtained using the username and password of long-range connection permission.
It is described in one of the embodiments, that execution period most lightly loaded holding as recommendation is run to system using described The row time pushes to before the user client in the execution period of setting timed task, further includes:
By it is described first execution the period according to pending timed task quantity number be ranked up, pending timed task The execution period of minimum number makes number one, and pending timed task quantity most execution period comes finally One;
The period is executed as the execution time recommended using sorted described first, is sent to the execution of setting timed task The user client in period.
A kind of timing task carrying-out time recommendation apparatus, including following module:
Period acquisition module is executed, is set as obtaining the execution period of the timed task of user setting, determines the execution Period corresponding minimum time granularity;
Period division module is executed, is set as according to the minimum time granularity, if the execution period is divided into Dry first executes the period;
Pending timed task obtains module, is set as obtaining all set in database and executes the pending fixed of time When task;
Period screening module is executed, the pending timing for being set as counting and calculating in each first execution period is appointed Business quantity, filter out pending timed task minimum number described first execute the period, as run to system most lightly loaded The execution period;
Time pushing module is executed, is set as running execution period most lightly loaded holding as recommendation to system for described The row time pushes to the user client in the execution period of setting timed task.
A kind of computer equipment, including memory and processor are stored with computer-readable instruction in the memory, institute When stating computer-readable instruction by one or more processors execution, so that one or more processor execution are above-mentioned The step of timing task carrying-out time recommended method.
A kind of storage medium being stored with computer-readable instruction, the computer-readable instruction are handled by one or more When device executes, so that the step of one or more processors execute above-mentioned timing task carrying-out time recommended method.
Above-mentioned timing task carrying-out time recommended method, device, equipment and storage medium, comprising: obtain user setting The execution period of timed task determines the execution period corresponding minimum time granularity;According to the minimum time particle The execution period is divided into several the first execution periods by degree;Obtain database in it is all set execute the time to Execute timed task;The pending timed task quantity in each first execution period is counted and calculated, is filtered out wait hold Described the first of row timed task minimum number executes the period, and the execution period most lightly loaded is as run to system;It will be described Is run as the execution time recommended the execution period most lightly loaded to system, pushes to the execution period of setting timed task User client.The technical program passes through the execution period for counting and calculating existing timed task, filters out timed task quantity The least execution period, as the execution time recommended to the user, solve currently due to user blindly selection execute the time from And causing a large amount of timed tasks may be in sometime point accumulation, execution, a large amount of timed tasks concurrently execute so that system The problem of load too high.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.
Fig. 1 is a kind of overall flow figure of timing task carrying-out time recommended method of the invention;
Fig. 2 is the acquisition minimum time granularity process in a kind of timing task carrying-out time recommended method of the invention Schematic diagram;
Fig. 3 is that the acquisition in a kind of timing task carrying-out time recommended method of the invention has pending timed task mistake The schematic diagram of journey;
Fig. 4, which is that the calculating in a kind of timing task carrying-out time recommended method of the invention is most lightly loaded to system operation, to be held The schematic diagram of row period process;
Fig. 5 is a kind of structure chart of timing task carrying-out time recommendation apparatus of the invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition Other one or more features, integer, step, operation, element, component and/or their group.
Fig. 1 is a kind of overall flow figure of timing task carrying-out time recommended method of the invention, as shown in Figure 1, a kind of Timing task carrying-out time recommended method, comprising the following steps:
Step S1 obtains the execution period of the timed task of user setting, when determining that the execution period is corresponding minimum Between granularity.
Wherein, after timed task is arranged, generally requiring the execution time to timed task is configured, in timed task During creation, the execution time of timed task is generally specified by user.When setting executes the time, first setting executes the period For per hour, daily, it is monthly or annual, if user selects per hour to execute period, i.e. timed task per every other hour Execution is primary, after having set the execution period, needs further to set the execution time, i.e., timed task is in which point hourly Clock executes.If user select execute the period be it is daily, need further to set when timed task starts in daily It executes.If user selects to execute the period starts to execute monthly, to need further to set timed task in how many numbers monthly. And so on.
When above-mentioned steps execute, the foreground client of server is arranged for user's incoming timing task where timed task The front end web page for executing the period obtains the cycle value and returns to clothes after the timed task that user inputs setting executes the period Be engaged in device backstage, for the execution period set by user can be preset for per hour, daily, it is monthly or annual.Backstage is equipped with The minimum time granularity in corresponding different execution period, when determining minimum according to the execution period set by user that foreground returns Between granularity.
Such as execute the period be set as per hour, then minimum time granularity may be configured as 5 minutes, 10 minutes, 15 minutes, 20 minutes or 30 minutes, in a wherein preferred embodiment, the execution period was hourly, minimum time granularity It is set as 5 minutes.If executing the period to be set as daily, minimum time granularity be may be configured as 30 minutes, 45 minutes or 60 Minute, in a wherein preferred embodiment, executing the period is daily that minimum time granularity is set as 60 minutes. - minimum time granularity relation mapping table is established the period according to period minimum time granularity corresponding with the period is executed is executed.
The execution period is divided into several the first execution periods according to the minimum time granularity by step S2.
It, will after determining minimum time granularity corresponding to the execution period of user setting when above-mentioned steps execute The execution period is divided into several the first execution periods according to minimum time granularity.If executing the period is per hour, when minimum Between granularity be 5 minutes, then executing several the first execution periods of period per hour after equal part is respectively as follows: 0~5 point, 5~10 Point, 10~15 points, 15~20 points, 20~25 points, 25~30 minutes, 30~35 points, 35~40 points, 40~45 points, 45~50 points, 50~55 points, 55~60 points, every one first span for executing the period is a minimum time granularity.
Step S3 obtains all pending timed tasks for having set the execution time in database.
Wherein, all timed tasks for having set the execution time are stored in background data base, the packet being stored in database The metamessage of timed task is included, metamessage includes execution period and the Time Of Next execution of timed task.
When above-mentioned steps execute, the access authority of database is obtained, database is connected to.Then query script is sent to number According in library, and query script is executed, inquires and obtain holding for all pending timed tasks and each pending timed task Row period and Time Of Next execution, query script is using pending timed task as query argument or searching keyword.
Step S4, count and calculate it is each it is described first execute the period in pending timed task quantity, filter out to Execute timed task minimum number described first executes the period, and the execution period most lightly loaded is as run to system.
When above-mentioned steps execute, one first is established with the title of pending timed task, execution period and Time Of Next execution A table, counts in the table and calculates belonging to each pending timed task second and execute the period, calculated the Two execution periods were recorded in the row where corresponding pending timed task, then when executing fall in the same execution period second The pending timed task of section screens, and carries out plus and minus calculation to them, obtains pending in each second execution period Timed task quantity.
When filtering out the second execution period and second execution when falling in every one first execution in segment limit respectively again Pending timed task quantity in section is to get the pending timed task quantity arrived in every one first execution period.Such as the One execution period was respectively as follows: 0~5 point, 5~10 points, 10~15 points, 15~20 points, 20~25 points, 25~30 points, 30~35 points, 35~40 points, 40~45 points, 45~50 points, 50~55 points, 55~60 points.The result then obtained is respectively in 0~5 point wait hold The quantity of row timed task, the pending timed task quantity in 5~10 points, the pending timed task number in 10~15 points It measures, the pending timed task quantity in 15~20 points, the pending timed task quantity in 20~25 points, in 25~30 points Pending timed task quantity, the pending timed task quantity in 30~35 points, the pending timed task in 35~40 points Quantity, the pending timed task quantity in 40~45 points, the pending timed task quantity in 45~50 points, in 50~55 points Pending timed task quantity and 55~60 points in pending timed task quantity.
Step S5 runs the execution period most lightly loaded as the execution time recommended to system for described, pushes to and set Set the user client in the execution period of timed task.
The present embodiment executes the period by the way that the execution period of user setting is divided into several first, counts and calculate number According to pending timed task quantity when falling in the first execution in library in segment limit, and filter out pending timed task quantity most The first few execution period is pushed to user client, solves currently since blindly selection executes the time so as to cause big to user Measuring timed task may be in sometime point accumulation, execution, and a large amount of timed tasks concurrently execute so that system load is excessively high The problem of.
In one embodiment, Fig. 2 is that the acquisition in a kind of timing task carrying-out time recommended method of the invention is minimum The schematic diagram of time granularity process, as shown in Fig. 2, a kind of acquisition minimum time of timing task carrying-out time recommended method Granularity process, includes the following steps:
Step S101 obtains the execution period of the timed task.
Step S102 calls period-minimum time granularity relation mapping table, according to the execution period, the period-most Retrieval matches the minimum time granularity corresponding with the execution period in small time granularity relation mapping table.
When above-mentioned steps execute, the execution period set by user is obtained, using the numerical value in the execution period in period-minimum In time granularity relation mapping table, minimum time granularity corresponding with the execution period is found.Wherein, the period-is minimum Time granularity relation mapping table be it is created in advance, it is according to executing period and minimum time granularity set in advance Creation.
Wherein, corresponding minimum time granularity of different execution periods may be configured as multiple, in a kind of optimal embodiment In, execute the period be it is hourly, minimum time granularity is 5 minutes, and executing the period is daily, minimum time particle Degree is 60 minutes.
The present embodiment, by create and call the period in advance-minimum time granularity relation mapping table to obtain executes week Minimum time granularity, convenient and efficient corresponding to phase, and accurately obtains minimum time granularity, and it is subsequent accurate to facilitate It divides and executes the period.
In one embodiment, Fig. 3 is that the acquisition in a kind of timing task carrying-out time recommended method of the invention is existing The schematic diagram of pending timed task process, as shown in figure 3, a kind of acquisition of timing task carrying-out time recommended method has needed The process for executing timed task, includes the following steps:
Step S301, obtains the access authority of the database, and is connected to the database, stores in the database There is the metamessage of the pending timed task and each pending timed task, the metamessage includes described The execution period of pending timed task and Time Of Next execution.
Step S302 executes the query script after sending query script to the database, obtains all described wait hold In the execution period and Time Of Next execution of row timed task and each pending timed task, the query script is with institute Stating pending timed task is query argument or searching keyword.
The present embodiment is connected to database, and send query script and obtain wait hold by obtaining the access authority of database The execution period of row timed task and Time Of Next execution improve the efficiency and accuracy of acquisition.
In one embodiment, Fig. 4 is calculating in a kind of timing task carrying-out time recommended method of the invention to being The system operation schematic diagram most lightly loaded for executing period process, as shown in figure 4, a kind of meter of timing task carrying-out time recommended method It calculates and the process most lightly loaded for executing the period is run to system, include the following steps:
Step S401 is calculated every according to the execution period of each pending timed task and Time Of Next execution Second executes the period belonging to the one pending timed task.
Above-mentioned steps execute when, according to the execution period of pending timed task and Time Of Next execution can calculate to Execute timed task the execution period, for example, execute the period be per hour, Time Of Next execution be 9 when 22 divide it is pending fixed When task, execute the period be 20~25 points;And so on, calculate the execution period of all pending timed tasks.
Step S402 will belong to the pending timed task in the same second execution period for executing the period respectively, Plus and minus calculation is carried out, show that all described second execute the pending timed task quantity in the period.
When above-mentioned steps execute, after the completion of the execution period belonging to all pending timed tasks calculates, has and much exist It is identical to execute the pending timed task executed in the period, the pending timed task belonged in the same execution period is added Subtract operation, counts the pending timed task quantity in each execution period.
Step S403, filter out with it is described first execution the period is overlapped it is described second execute the period, and list respectively and Described first executes the quantity of the pending timed task in the second execution period that the period is overlapped, and obtains affiliated every One described first executes the pending timed task quantity in the period.
When above-mentioned steps execute, successively filters out and execute what the period was overlapped with the first of execution period division set by user Period and its pending timed task quantity are executed, and it is labeled.
Step S404, filter out pending timed task minimum number described first execute the period, as transport to system The row execution period most lightly loaded.
When above-mentioned steps execute, the execution period of mark is screened, wherein pending timed task quantity is filtered out The least execution period is pushed to user client, when user can choose any time in the execution period as executing Between.
The present embodiment is obtained by statistics, calculating and screening and runs the execution period most lightly loaded to system, saves the time And efficiently and accurately.
In one embodiment, the execution time of recommendation is pushed to user client, included the following steps:
Execution period generation most lightly loaded is run to PUSH message to system by described, and according to described to PUSH message Prompt information is generated, the prompt printed words for running the execution period most lightly loaded to system are carried in the prompt information;
By the user client in the execution period for pushing to setting timed task to PUSH message and the prompt information End.
When above-mentioned steps execute, using to system run it is most lightly loaded execute the period as the execution time generation recommended to PUSH message, for example the execution period of user setting is that per hour, what system-computed went out runs execution most lightly loaded to system Period is 0~5 point hourly, then to PUSH message are as follows: 0 divide when x~x when 5 divide.Wherein, according to PUSH message, system is raw At prompt information, prompt information are as follows: 0 divide when x~x when 5 divide and run the execution period most lightly loaded for system.
The present embodiment, it includes prompt information that the recommendation pushed to user client, which executed in the time, so that one mesh of user It is clear the purpose for recommending to execute the time to it, increases the use rate of the execution time of recommendation.
In one embodiment, the access authority of database is obtained, and is connected to the database, is included the following steps:
It is attached by Hibernate Object Relation Mapping frame and the database;
The access authority of the database is obtained using the username and password of long-range connection permission.
Hibernate is the Object Relation Mapping frame an of open source code, it connects (JDBC) to java database The object encapsulation of very lightweight is carried out, simple Java object (POJO) and database table are established mapping relations by it, are One full automatic Object Relation Mapping (orm) frame, hibernate can automatically generate SQL statement, and execute automatically.
JDBC is a kind of for executing the Java API of SQL statement, and unified access can be provided for a variety of relational databases, The class and interface that it is write by one group with Java language form.
It is described that is run as the execution time recommended the execution period most lightly loaded to system using described, it is fixed to push to setting When task execution the period user client before, further includes:
By it is described first execution the period according to pending timed task quantity number be ranked up, pending timed task The execution period of minimum number makes number one, and pending timed task quantity most execution period comes finally One;
The period is executed as the execution time recommended using sorted described first, is sent to the execution of setting timed task The user client in period.
The present embodiment will be pushed to user according to the number sorted execution period of pending timed task quantity, can So that user has multinomial selection.
A kind of timing task carrying-out time recommendation apparatus, as shown in figure 5, including following module:
Period acquisition module is executed, is set as obtaining the execution period of the timed task of user setting, determines the execution Period corresponding minimum time granularity;
Period division module is executed, is set as according to the minimum time granularity, if the execution period is divided into Dry first executes the period;
Pending timed task obtains module, is set as obtaining all set in database and executes the pending fixed of time When task;
Period screening module is executed, the pending timing for being set as counting and calculating in each first execution period is appointed Business quantity, filter out pending timed task minimum number described first execute the period, as run to system most lightly loaded The execution period;
Time pushing module is executed, is set as running execution period most lightly loaded holding as recommendation to system for described The row time pushes to the user client in the execution period of setting timed task.
In one embodiment it is proposed that a kind of computer equipment, including memory and processor, it is stored in memory Computer-readable instruction, when computer-readable instruction is executed by one or more processors, so that one or more processors are held The step of timing task carrying-out time recommended method described in the various embodiments described above is realized when row computer-readable instruction.
In one embodiment it is proposed that a kind of storage medium for being stored with computer-readable instruction, computer-readable finger When order is executed by one or more processors, so that one or more processors execute timing described in the various embodiments described above and appoint Business executes the step of time recommended method.Wherein, the storage medium can be non-volatile memory medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
Some exemplary embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but It cannot be construed as a limitation to the scope of the present invention.It should be pointed out that for the ordinary skill people of this field For member, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to of the invention Protection scope.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of timing task carrying-out time recommended method, which comprises the steps of:
In the execution period for obtaining the timed task of user setting, determine the execution period corresponding minimum time granularity;
According to the minimum time granularity, the execution period is divided into several the first execution periods;
Obtain all pending timed tasks for having set the execution time in database;
The pending timed task quantity in each first execution period is counted and calculated, pending timed task is filtered out Described the first of minimum number executes the period, and the execution period most lightly loaded is as run to system;
Is run as the execution time recommended the execution period most lightly loaded to system using described, pushes to setting timed task Execute the user client in period.
2. timing task carrying-out time recommended method according to claim 1, which is characterized in that the acquisition user setting Timed task the execution period, determine the execution period corresponding minimum time granularity, comprising:
Obtain the execution period of the timed task;
Period-minimum time granularity relation mapping table is called, according to the execution period, in period-minimum time granularity Retrieval matches the minimum time granularity corresponding with the execution period in relation mapping table.
3. timing task carrying-out time recommended method according to claim 1, which is characterized in that in the acquisition database It is all to have set the pending timed task for executing the time, comprising:
Obtain the access authority of the database, and be connected to the database, be stored in the database it is all it is described to The metamessage of timed task and each pending timed task is executed, the metamessage includes that the pending timing is appointed The execution period of business and Time Of Next execution;
Execute the query script after sending query script to the database, obtain all pending timed tasks and The execution period of each pending timed task and Time Of Next execution, the query script are appointed with the pending timing Business is query argument or searching keyword.
4. timing task carrying-out time recommended method according to claim 3, which is characterized in that the statistics simultaneously calculates every One described first executes the pending timed task quantity in the period, filters out described the of pending timed task minimum number One executes the period, and the execution period most lightly loaded is as run to system, comprising:
According to the execution period of each pending timed task and Time Of Next execution, it is each described pending fixed to calculate When task belonging to second execute the period;
The pending timed task in the same second execution period for executing the period will be belonged to respectively, carry out plus and minus calculation, Show that all described second execute the pending timed task quantity in the period;
When filtering out described second be overlapped with the first execution period and execute the period, and listed respectively with the described first execution Described the second of Duan Chonghe executes the quantity of the pending timed task in the period, obtains affiliated each described first and executes Pending timed task quantity in period;
Filter out pending timed task minimum number described first executes the period, as runs most lightly loaded hold to system The row period.
5. timing task carrying-out time recommended method according to claim 1, which is characterized in that it is described by described to system The execution period most lightly loaded is run as the execution time recommended, pushes to the user visitor in the execution period of setting timed task Family end, comprising:
Execution period generation most lightly loaded is run to PUSH message to system by described, and according to described to PUSH message generation Prompt information carries the prompt printed words that the execution period most lightly loaded is run to system in the prompt information;
By the user client in the execution period for pushing to setting timed task to PUSH message and the prompt information.
6. timing task carrying-out time recommended method according to claim 3, which is characterized in that described to obtain the data The access authority in library, and be connected to the database, be stored in the database all pending timed tasks and The metamessage of each pending timed task, the metamessage include the execution period of the pending timed task under The secondary execution time, comprising:
It is attached by Hibernate Object Relation Mapping frame and the database;
The access authority of the database is obtained using the username and password of long-range connection permission.
7. timing task carrying-out time recommended method according to claim 4, which is characterized in that it is described by described to system The execution period most lightly loaded is run as the execution time recommended, pushes to the user visitor in the execution period of setting timed task Before the end of family, further includes:
By it is described first execution the period according to pending timed task quantity number be ranked up, pending timed task quantity The least execution period makes number one, and pending timed task quantity most execution period comes last Position;
The period is executed as the execution time recommended using sorted described first, is sent to the execution period of setting timed task User client.
8. a kind of timing task carrying-out time recommendation apparatus, which is characterized in that including following module:
Period acquisition module is executed, is set as obtaining the execution period of the timed task of user setting, determines the execution period Corresponding minimum time granularity;
Period division module is executed, is set as according to the minimum time granularity, the execution period is divided into several First executes the period;
Pending timed task obtains module, is set as obtaining all pending timings for having set the execution time in database and appoints Business;
Period screening module is executed, is set as counting and calculating the pending timed task number in each first execution period Amount, filter out pending timed task minimum number described first execute the period, as run most lightly loaded hold to system The row period;
Time pushing module is executed, is set as running the execution period most lightly loaded as when the execution recommended to system for described Between, push to the user client in the execution period of setting timed task.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by one or more processors, so that one or more processors execute such as right It is required that described in any one of 1 to 7 the step of timing task carrying-out time recommended method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the timed task as described in any one of claims 1 to 7 and execute The step of time recommended method.
CN201811186816.2A 2018-10-12 2018-10-12 Timing task carrying-out time recommended method, device, equipment and storage medium Pending CN109298929A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811186816.2A CN109298929A (en) 2018-10-12 2018-10-12 Timing task carrying-out time recommended method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811186816.2A CN109298929A (en) 2018-10-12 2018-10-12 Timing task carrying-out time recommended method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109298929A true CN109298929A (en) 2019-02-01

Family

ID=65162266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811186816.2A Pending CN109298929A (en) 2018-10-12 2018-10-12 Timing task carrying-out time recommended method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109298929A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110135146A (en) * 2019-04-29 2019-08-16 武汉中锐源信息技术开发有限公司 A kind of data base authority management method and system
CN110336849A (en) * 2019-04-25 2019-10-15 郑州时空隧道信息技术有限公司 Information-pushing method, information push-delivery apparatus and terminal
CN111309463A (en) * 2020-02-05 2020-06-19 北京明略软件系统有限公司 Method and device for determining task execution time and readable storage medium
CN112650971A (en) * 2020-12-31 2021-04-13 新奥数能科技有限公司 Method, device and equipment for realizing formula calculation and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933426A (en) * 2006-10-19 2007-03-21 杭州华为三康技术有限公司 Method and apparatus for automatic selecting staging time
CN102655347A (en) * 2011-03-02 2012-09-05 辽宁省电力有限公司 Online automatic checking method for soft pressing plate
US20130055283A1 (en) * 2010-05-07 2013-02-28 Dinkar Sitaram Workload Performance Control
CN106407085A (en) * 2016-11-24 2017-02-15 中国银行股份有限公司 Performance monitoring method and apparatus
CN108446837A (en) * 2018-03-07 2018-08-24 中国人民大学 A kind of load optimized method of medical services recommended work

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1933426A (en) * 2006-10-19 2007-03-21 杭州华为三康技术有限公司 Method and apparatus for automatic selecting staging time
US20130055283A1 (en) * 2010-05-07 2013-02-28 Dinkar Sitaram Workload Performance Control
CN102655347A (en) * 2011-03-02 2012-09-05 辽宁省电力有限公司 Online automatic checking method for soft pressing plate
CN106407085A (en) * 2016-11-24 2017-02-15 中国银行股份有限公司 Performance monitoring method and apparatus
CN108446837A (en) * 2018-03-07 2018-08-24 中国人民大学 A kind of load optimized method of medical services recommended work

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110336849A (en) * 2019-04-25 2019-10-15 郑州时空隧道信息技术有限公司 Information-pushing method, information push-delivery apparatus and terminal
CN110135146A (en) * 2019-04-29 2019-08-16 武汉中锐源信息技术开发有限公司 A kind of data base authority management method and system
CN111309463A (en) * 2020-02-05 2020-06-19 北京明略软件系统有限公司 Method and device for determining task execution time and readable storage medium
CN111309463B (en) * 2020-02-05 2023-04-07 北京明略软件系统有限公司 Method and device for determining task execution time and readable storage medium
CN112650971A (en) * 2020-12-31 2021-04-13 新奥数能科技有限公司 Method, device and equipment for realizing formula calculation and storage medium
CN112650971B (en) * 2020-12-31 2024-03-05 新奥数能科技有限公司 Method, device, equipment and storage medium for realizing formula calculation

Similar Documents

Publication Publication Date Title
CN109313602B (en) System, method, and medium for handling dependency of stack strength in emergency relations
CN109298929A (en) Timing task carrying-out time recommended method, device, equipment and storage medium
EP2609501B1 (en) Dynamic calculation of sample profile reports
CN103390066B (en) A kind of database overall automation optimizes prior-warning device and disposal route thereof
CN102981904B (en) A kind of method for scheduling task and system
CN107168977B (en) Data query optimization method and device
CN109902117A (en) Operation system analysis method and device
Van der Aalst et al. Getting the data
CN109684332A (en) A kind of wide table generating method of data, apparatus and system
CN107633015A (en) A kind of data processing method, device and equipment
CN110209730A (en) Change synchronous method, device, computer equipment and the computer storage medium of data
CN106874079A (en) A kind of method and device of tasks carrying
CN111858600A (en) Data wide table construction method, device, equipment and storage medium
CN106155594B (en) A kind of data processing method and device
CN113722141B (en) Method and device for determining delay reason of data task, electronic equipment and medium
CN104317820B (en) Statistical method and device for report forms
KR102024164B1 (en) Method and apparatus for automaticgeneration of auto scaling call rulefor individual tenant in multi-tenancy environment
US11663087B2 (en) Validating metering of a disaster recovery service used in clouds
US9280439B2 (en) Usage analysis of productive environment to establish new data source for process optimization and project planning
US20210312365A1 (en) Analysis of resources utilized during execution of a process
CN111190817B (en) Method and device for processing software defects
CN110941608B (en) Method, device and equipment for generating buried point analysis and funnel analysis report
US10810640B1 (en) Automated time tracking of events in a calendar and use of the same to generate invoices
US20210263777A1 (en) Real time sense & control architecture
CN113553320B (en) Data quality monitoring method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination