CN108762911A - Timing task management method, apparatus, computer equipment and storage medium - Google Patents

Timing task management method, apparatus, computer equipment and storage medium Download PDF

Info

Publication number
CN108762911A
CN108762911A CN201810607794.6A CN201810607794A CN108762911A CN 108762911 A CN108762911 A CN 108762911A CN 201810607794 A CN201810607794 A CN 201810607794A CN 108762911 A CN108762911 A CN 108762911A
Authority
CN
China
Prior art keywords
task
timed task
timed
timing
host
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
CN201810607794.6A
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 CN201810607794.6A priority Critical patent/CN108762911A/en
Priority to PCT/CN2018/109381 priority patent/WO2019237586A1/en
Publication of CN108762911A publication Critical patent/CN108762911A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application discloses a kind of timing task management method, apparatus, computer equipment and storage mediums.Wherein method includes:If detecting the trigger action of addition timed task, the corresponding addition page of display addition timed task;The timed task that user's addition is obtained by the addition page, wherein the timed task includes at least one host identification;The timed task got is preserved to presetting database;Interval preset time traverses the timed task in the presetting database to obtain the timed task for meeting timing and executing condition;And the host is made to execute the timed task in the corresponding host of host identification that the timed task for meeting the timing execution condition is sent in the timed task.This method can realize the centralized management of timed task, avoid repeating for timed task, while improve the experience of user.

Description

Timing task management method, apparatus, computer equipment and storage medium
Technical field
This application involves field of computer technology more particularly to a kind of timing task management method, apparatus, computer equipments And storage medium.
Background technology
Currently, with the development of Internet technology, it is more next to the operation management of the corresponding server cluster of various Web platforms More important, which generally comprises multiple main frames and the host groups etc. of multiple main frames composition, and the wherein host needs The timed task of execution also becomes more and more.However, existing timed task is all distributed across isolated operation on each host Task, this timed task, which is be easy to cause, to be repeated, and exception is caused, therefore is not easy to manage.
Invention content
This application provides a kind of timing task management method, apparatus, computer equipment and storage mediums, to facilitate management Multiple timed tasks.
In a first aspect, this application provides a kind of timing task management methods comprising:
If detecting the trigger action of addition timed task, the corresponding addition page of display addition timed task;
The timed task that user's addition is obtained by the addition page, wherein the timed task includes at least one master Machine identifies;
The timed task got is preserved to presetting database;
Interval preset time traverses the timed task in the presetting database and meets determining for timing execution condition to obtain When task;And
The host identification that the timed task for meeting the timing execution condition is sent in the timed task is corresponding Host makes the host execute the timed task.
Second aspect, this application provides a kind of timing task management devices comprising:
Page display unit, if the trigger action for detecting addition timed task, display addition timed task corresponds to The addition page;
First acquisition unit, the timed task for obtaining user's addition by the addition page, wherein the timing Task includes at least one host identification;
Task storage unit, for preserving the timed task got to presetting database;
Second acquisition unit traverses the timed task in the presetting database to obtain satisfaction for being spaced preset time Timing executes the timed task of condition;And
Task executing units, for the timed task for meeting the timing execution condition to be sent in the timed task The corresponding host of host identification make the host execute the timed task.
The third aspect, present invention also provides a kind of computer equipments comprising memory, processor and is stored in described On memory and the computer program that can run on the processor, the processor realize the application when executing described program The step of timing task management method described in any one of offer.
Fourth aspect, present invention also provides a kind of storage mediums, wherein the storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute the application when being executed by a processor The step of timing task management method described in any one of offer.
The embodiment of the present application is by the way that when detecting the trigger action of addition timed task, display addition timed task corresponds to The addition page;The timed task of user's addition is obtained by the addition page;The timed task got is preserved to pre- If database;Interval preset time traverses the timed task in the presetting database and meets determining for timing execution condition to obtain When task;And execute the corresponding master of host identification that the timed task of condition is sent in the timed task by timing is met Machine is so that the host executes the timed task.The method achieve the centralized management of timed task, can be in either objective Wishing to carry out for task is periodically executed on host, avoids repeating for timed task, while improving the experience of user.
Description of the drawings
It, below will be to needed in embodiment description in order to illustrate more clearly of the embodiment of the present application technical solution Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is some embodiments of the present application, general for this field For logical technical staff, without creative efforts, other drawings may also be obtained based on these drawings.
Fig. 1 is a kind of schematic flow diagram for timing task management method that one embodiment of the application provides;
Fig. 2 is the sub-step schematic flow diagram of timing task management method in Fig. 1;
Fig. 3 is a kind of schematic flow diagram for timing task management method that another embodiment of the application provides;
Fig. 4 is a kind of schematic flow diagram for timing task management method that the another embodiment of the application provides;
Fig. 5 is a kind of schematic block diagram for timing task management device that one embodiment of the application provides;
Fig. 6 is a kind of schematic block diagram for timing task management device that another embodiment of the application provides;
Fig. 7 is a kind of schematic block diagram for timing task management device that the another embodiment of the application provides;
Fig. 8 is a kind of schematic block diagram for computer equipment that one embodiment of the application provides.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiment is some embodiments of the present application, instead of all the embodiments.Based on this Shen Please in embodiment, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall in the protection scope of this application.
It should be appreciated that ought use in this specification and in the appended claims, term " comprising " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
Referring to Fig. 1, Fig. 1 is a kind of schematic flow diagram for timing task management method that one embodiment of the application provides. As shown in Figure 1, the timing task management method includes step S101~S105.
If S101, the trigger action for detecting addition timed task, the corresponding addition page of display addition timed task.
In the present embodiment, the trigger action of the addition timed task can be a preset control or predetermined registration operation etc., For example detect and generate triggering command when user clicks the preset control, the addition page is shown according to the triggering command, it is described The addition page is a web interface, which includes multiple tasks parameter input frame, multiple task parameters inputs Frame inputs corresponding task parameters for user, wherein the task parameters are the relevant parameter of the timed task.
S102, the timed task that user's addition is obtained by the addition page, wherein the timed task includes at least One host identification.
In the present embodiment, corresponding task is obtained particular by the task parameters input field on the addition page to join Number;And generate timed task according to the task parameters.Wherein the timed task includes at least one host identification, the host mark Knowledge may include host name or IP address etc., for example host is entitled:CNSH231162, IP address are:10.31.64.12.Certainly Can also include that a host groups identify, the host groups mark includes multiple main frames mark.
Wherein, the task parameters are based on and generate timed task, specifically as shown in Fig. 2, i.e. step S102 includes sub-step S102a and S102b.Wherein, S102a, corresponding task parameters are obtained by the task parameters column on the addition page, it is described Task parameters include:Script name, host identification, task type, interval time and execution time;S102b, according to the task Parameter generates timed task.
In one embodiment, the management in order to facilitate the operation of user and in the future, it is described to be obtained by the addition page The timed task of family addition is taken, including:Preserve user multiple by the task parameters column input on the addition page Business parameter;If detect the trigger action that addition task confirms, timed task group is generated according to the multiple task parameters, Described in timed task group include multiple timed tasks.
S103, the timed task got is preserved to presetting database.
In the present embodiment, which is that Celery tools specifically may be used for preserving timed task, The Celery tools are added in Web platforms, the Celery asynchronous messages queue is set as the presetting database.It is described The timed task got is preserved to presetting database, including:It is asynchronous that the timed task got is maintained in Celery In message queue.Thus it can facilitate and the timed task is managed.
S104, interval preset time traverse the timed task in the presetting database and meet timing execution condition to obtain Timed task.
In the present embodiment, the preset time can be set according to the time, such as 1 second or 2 seconds etc..Meet Periodically executing the timed task of condition can be:The timed task of execution time phase difference setting time apart from timed task.When When the execution time of timed task reaches setting time, which is the timing times for meeting the timing and executing condition Business.
S105, the host identification pair being sent to the timed task for meeting the timing execution condition in the timed task The host answered makes the host execute the timed task.
In the present embodiment, the timed task for meeting timing execution condition is sent to the host mark in the timed task Know corresponding host, to trigger the particular content that the host executes the timed task, for example executes echo.sh scripts.Thus Periodically executing and wishing to carry out on arbitrary target host for task is may be implemented in, while also achieving the centralized management of timed task.
Above-described embodiment is by the way that when detecting the trigger action of addition timed task, display addition timed task is corresponding Add the page;The timed task of user's addition is obtained by the addition page;The timed task got is preserved to default Database;Interval preset time traverses the timed task in the presetting database to obtain the timing for meeting timing and executing condition Task;And execute the corresponding host of host identification that the timed task of condition is sent in the timed task by timing is met So that the host executes the timed task.The method achieve the centralized management of timed task, can be in arbitrary target master Wishing to carry out for task is periodically executed on machine, avoids repeating for timed task, while improving the experience of user.
Referring to Fig. 3, Fig. 3 is a kind of exemplary flow for timing task management method that another embodiment of the application provides Figure.As shown in figure 3, the timing task management method includes step S201~S209.
If S201, the trigger action for detecting addition timed task, the corresponding addition page of display addition timed task.
Wherein, the addition page is a web interface, which includes multiple tasks parameter input frame, multiple The task parameters input frame inputs corresponding task parameters for user, and the task parameters are the correlation of the timed task Parameter.
S202, the timed task that user's addition is obtained by the addition page, wherein the timed task includes at least One host identification.
Specifically, corresponding task parameters are obtained by the task parameters input field on the addition page;And according to institute It states task parameters and generates timed task, the task parameters include:Script name, host identification, task type, interval time and Execute time etc..
S203, the timed task got is preserved to presetting database.
Specifically, the presetting database can be Celery asynchronous message queues;The timed task that will be got It preserves to presetting database, including:The timed task got is maintained in Celery asynchronous message queues.
S204, timed task table is generated according to the timed task.
Specifically, described that timed task table is generated according to the timed task, including:According to the timed task according to institute The host identification stated in timed task generates timed task table;Alternatively, according to the timed task according to the timed task Execute time generation timed task table.As a result, in order to which user carries out checking management, understand which host performs those timings Task.
In one embodiment, the timed task table includes that task restarts control;If detecting, user clicks the task Restart control, display task restarts input frame, and the task restarts input frame for inputting host identification;According to input by user Host identification shows the corresponding timed task of the host identification in the timed task table with default display mode;It obtains and uses The timed task of family selection simultaneously activates the timed task.The wherein described default display mode is such as the side by red font Formula is shown.Not only can be avoided user as a result, and add timed task is repetitive operation, can also quickly and accurately add timing Task.
If S205, detecting the trigger action for checking timed task, the timed task table is shown.
Specifically, the trigger action of timed task is checked, such as:User clicks and checks timed task.When the user clicks It checks timed task, that is, shows the timed task table.It can specifically be shown in such a way that host identification sorts, it also can be according to execution The display of time.To facilitate user to check and manage.
S206, interval preset time traverse the timed task in the presetting database and meet timing execution condition to obtain Timed task.
Specifically, when the execution time of timed task reaching setting time, which is to meet the timing The timed task of execution condition.
S207, the host identification pair being sent to the timed task for meeting the timing execution condition in the timed task The host answered makes the host execute the timed task.
Specifically, the timed task for meeting timing execution condition the host identification in the timed task is sent to correspond to Host, to trigger the particular content that the host executes the timed task, for example execute echo.sh scripts.Thus it can realize Wishing to carry out for task is periodically executed on arbitrary destination host, while also achieving the centralized management of timed task.
S208, the reception host have executed the result information fed back after the timed task.
Specifically, the result information includes execution state, for example timed task is run succeeded or execute unsuccessfully etc., certainly The result information may also include other information.
S209, the result information is corresponded in preservation to the timed task table.
It is preserved into the timed task of the timed task table specifically the result information is corresponded to, so as to user Subsequently check.
The method of above-described embodiment realizes the centralized management of timed task, can periodically execute and think on arbitrary destination host Being executed for task, while the implementing result letter of all timed tasks and timed task can be also shown by timed task table Breath, thus further increases the experience of user.
Referring to Fig. 4, Fig. 4 is a kind of schematic flow diagram for timing task management method that one embodiment of the application provides. As shown in figure 4, the timing task management method includes step S301~S309.
If S301, the trigger action for detecting addition timed task, the corresponding addition page of display addition timed task.
Specifically, the addition page is a Web page, which includes multiple tasks parameter input frame, multiple The task parameters input frame inputs corresponding task parameters for user, and the task parameters are the correlation of the timed task Parameter.
S302, the timed task that user's addition is obtained by the addition page, wherein the timed task includes task Parameter.
Specifically, the task parameters include:When script name, host identification, task type, interval time and execution Between.
S303, judge that the presetting database whether there is corresponding timed task according to the task parameters.
Specifically, described to judge that the presetting database whether there is corresponding timed task according to the task parameters; For example, judging that the presetting database is appointed with the presence or absence of similar timing according to script name, execution time and host identification Business;If there are corresponding timed tasks for the presetting database, step S304 is executed;If the presetting database does not exist corresponding Timed task, then follow the steps S305.It is possible thereby to avoid repeating identical timed task.
S304, it exports prompt message and jumps to timed task table, wherein the timed task table is according to described default The table that timed task in database generates.
Specifically, if there are corresponding timed tasks for the presetting database, output prompt message is to prompt user to exist Corresponding timed task, and jump to the timed task table and show corresponding timed task and correspondence in timed task table Task parameters.
Specifically, the prompt message can be information of voice prompt or text prompt information etc..In output prompt message Afterwards and the timed task table is jumped to, while showing corresponding timed task and corresponding task ginseng in the timed task table Number, is conducive to user and further confirms that whether really there is identical timed task.It is possible thereby to avoid repeating phase Same timed task.
S305, the timed task got is preserved to presetting database.
Specifically, if the presetting database does not have corresponding timed task, by the timed task got preserve to Presetting database.The presetting database is Celery asynchronous message queues, specifically preserves the timed task got In Celery asynchronous message queues.
S306, the timed task table is updated according to the timed task of the presetting database.
Specifically, the timed task in the timed task table is updated according to the timed task of the presetting database, with Ensure synchronization between the two.
If S307, detecting the trigger action for checking timed task, the timed task table is shown.
Specifically, if detecting the trigger action for checking timed task, the timed task is shown in a manner of being particularly shown Table.For example, shown in such a way that host identification sorts, it also can be according to the display for executing the time.With facilitate user check and Management.
S308, interval preset time traverse the timed task in the presetting database and meet timing execution condition to obtain Timed task.
Specifically, when the execution time of timed task reaching setting time, which is to meet the timing The timed task of execution condition.
S309, the host identification pair being sent to the timed task for meeting the timing execution condition in the timed task The host answered makes the host execute the timed task.
Specifically, the timed task for meeting timing execution condition the host identification in the timed task is sent to correspond to Host, to trigger the particular content that the host executes the timed task, for example execute echo.sh scripts.Thus it can realize Wishing to carry out for task is periodically executed on arbitrary destination host, while also achieving the centralized management of timed task.
The method of above-described embodiment realizes the centralized management of timed task, can periodically execute and think on arbitrary destination host Being executed for task, while going back automatic decision and whether there is similar timed task, avoid repeating for timed task. Thus the experience of user is further increased.
Referring to Fig. 5, Fig. 5 is a kind of schematic block diagram of timing task management device provided by the embodiments of the present application.Such as Shown in Fig. 5, timing task management device 400 includes:Page display unit 401, first acquisition unit 402, task storage unit 403, second acquisition unit 404 and task executing units 405.
Page display unit 401, if the trigger action for detecting addition timed task, display addition timed task pair The addition page answered.
First acquisition unit 402, the timed task for obtaining user's addition by the addition page, wherein described fixed When task include at least one host identification.
In one embodiment, first acquisition unit 402 includes:Parameter acquiring subelement 4021 and task generate subelement 4022.Wherein, parameter acquiring subelement 4021 is joined for obtaining corresponding task by task parameter column on the addition page Number, the task parameters include:Script name, host identification, task type, interval time and execution time;Task generates son Unit 4022, for generating timed task according to the task parameters.
Task storage unit 403, for preserving the timed task got to presetting database.
Wherein, task storage unit 403, is specifically used for:The timed task got is preserved to Celery asynchronous messages In queue, the Celery asynchronous messages queue preserves in the preset database.
Second acquisition unit 404 traverses the timed task in the presetting database to obtain for being spaced preset time Meet the timed task that timing executes condition.
Task executing units 405 are appointed for the timed task for meeting the timing execution condition to be sent to the timing The corresponding host of host identification in business makes the host execute the timed task.
Referring to Fig. 6, Fig. 6 is the schematic block diagram of another timing task management device provided by the embodiments of the present application. As shown in fig. 6, timing task management device 500 includes:Page display unit 501, first acquisition unit 502, task preserve single Member 503, task list generation unit 504, task list display unit 505, second acquisition unit 506, task executing units 507, knot Fruit receiving unit 508 and result storage unit 509.
Page display unit 501, if the trigger action for detecting addition timed task, display addition timed task pair The addition page answered.
First acquisition unit 502, the timed task for obtaining user's addition by the addition page, wherein described fixed When task include at least one host identification.
Task storage unit 503, for preserving the timed task got to presetting database.
Task list generation unit 504, for generating timed task table according to the timed task.
If task list display unit 507 shows the timed task for detecting the trigger action for checking timed task Table.
Second acquisition unit 506 traverses the timed task in the presetting database to obtain for being spaced preset time Meet the timed task that timing executes condition.
Task executing units 507 are appointed for the timed task for meeting the timing execution condition to be sent to the timing The corresponding host of host identification in business makes the host execute the timed task.
As a result receiving unit 508 have executed the result information fed back after the timed task for receiving the host.
As a result storage unit 509 are preserved for corresponding to the result information into the timed task table.
Referring to Fig. 7, Fig. 7 is the schematic block diagram of another timing task management device provided by the embodiments of the present application. As shown in fig. 7, timing task management device 600 includes:Page display unit 601, first acquisition unit 602, task judge single Member 603, output jump-transfer unit 604, task storage unit 605, task list updating unit 606, task list display unit 607, the Two acquiring units 608 and task executing units 609.
Page display unit 601, if the trigger action for detecting addition timed task, display addition timed task pair The addition page answered.
First acquisition unit 602, the timed task for obtaining user's addition by the addition page, wherein described fixed When task include task parameters, the task parameters include:Script name, host identification, task type, interval time and execution Time.
Task judging unit 603, for judging the presetting database with the presence or absence of corresponding according to the task parameters Timed task.
Export jump-transfer unit 604, if for the presetting database there are corresponding timed task, output prompt message with Prompting user, there are corresponding timed tasks, and jump to the timed task table and shown in timed task table and determined accordingly When task and corresponding task parameters.
Task storage unit 605 is determined if there is no corresponding timed task for the presetting database by what is got When task preserve to presetting database.
Task list updating unit 606, for updating the timed task table according to the timed task of the presetting database.
If task list display unit 607 shows the timed task for detecting the trigger action for checking timed task Table.
Second acquisition unit 608 traverses the timed task in the presetting database to obtain for being spaced preset time Meet the timed task that timing executes condition.
Task executing units 609 are appointed for the timed task for meeting the timing execution condition to be sent to the timing The corresponding host of host identification in business makes the host execute the timed task.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is determined When task management device and unit specific work process, can refer to corresponding processes in the foregoing method embodiment, herein not It repeats again.
Above-mentioned apparatus can be implemented as a kind of form of computer program, and computer program can be in meter as shown in Figure 8 It calculates and is run on machine equipment.
Referring to Fig. 8, Fig. 8 is a kind of schematic block diagram of computer equipment provided by the embodiments of the present application.The computer 700 equipment of equipment can be terminal or server.
With reference to Fig. 8, which includes processor 720, memory and the net connected by system bus 710 Network interface 750, wherein memory may include non-volatile memory medium 730 and built-in storage 740.
The non-volatile memory medium 730 can storage program area 731 and computer program 732.The computer program 732 It is performed, processor 720 may make to execute any one timing task management method.
The processor 720 supports the operation of entire computer equipment 700 for providing calculating and control ability.
The built-in storage 740 provides environment for the operation of the computer program 732 in non-volatile memory medium 730, should When computer program 732 is executed by processor 720, processor 720 may make to execute any one timing task management method.
The network interface 750 such as sends the task dispatching of distribution for carrying out network communication.Those skilled in the art can manage It solves, structure is not constituted only with the block diagram of the relevant part-structure of application scheme to the application side shown in Fig. 8 The restriction for the computer equipment 700 that case is applied thereon, specific computer equipment 700 may include more than as shown in the figure Or less component, it either combines certain components or is arranged with different components.Wherein, the processor 720 is for transporting Row program code stored in memory, to realize following steps:
If detecting the trigger action of addition timed task, the corresponding addition page of display addition timed task;
The timed task that user's addition is obtained by the addition page, wherein the timed task includes at least one master Machine identifies;
The timed task got is preserved to presetting database;
Interval preset time traverses the timed task in the presetting database and meets determining for timing execution condition to obtain When task;And
The host identification that the timed task for meeting the timing execution condition is sent in the timed task is corresponding Host makes the host execute the timed task.
In one embodiment, the processor 720 is realized described for running program code stored in memory The timed task got is preserved to preset data, also realizes following steps:
Timed task table is generated according to the timed task;
If detecting the trigger action for checking timed task, the timed task table is shown.
In one embodiment, the processor 720 is realized described for running program code stored in memory When obtaining the timed task of addition by the addition page, it is implemented as follows step:
Pass through task parameter column on the addition page and obtain corresponding task parameters, wherein the task parameters include: Script name, host identification, task type, interval time and execution time;And
Timed task is generated according to the task parameters.
In one embodiment, the processor 720 is realized described for running program code stored in memory The timed task got is preserved to before presetting database, also realizes following steps:
Judge that the presetting database whether there is corresponding timed task according to the task parameters;
If the presetting database does not have corresponding timed task, the timed task got is preserved to preset data Library.
In one embodiment, the processor 720 is realized described for running program code stored in memory Judge that the presetting database with the presence or absence of after corresponding timed task, also realizes following steps according to the task parameters:
If the presetting database, there are corresponding timed task, output prompt message is corresponding fixed to prompt user to exist When task, and jump to the timed task table and show corresponding timed task and corresponding task in the timed task table Parameter.
In one embodiment, the processor 720 is realized described for running program code stored in memory The corresponding host of host identification that the timed task for meeting the timing execution condition is sent in the timed task is made After the host executes the timed task, following steps are also realized:
It receives the host and has executed the result information fed back after the timed task;And
The result information is corresponded to and is preserved into the timed task table.
In one embodiment, the processor 720 is realized described for running program code stored in memory When the timed task got is preserved to presetting database, it is implemented as follows step:
The timed task got is preserved into Celery asynchronous message queues, the Celery asynchronous messages queue is protected It deposits in the preset database.
It should be appreciated that in the embodiment of the present application, processor 720 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor can also be any conventional processor etc..
It will be understood by those skilled in the art that 700 structure of computer equipment shown in Fig. 8 is not constituted and is set to computer Standby 700 restriction may include either combining certain components or different component cloth than illustrating more or fewer components It sets.
One of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of flow, be Relevant hardware can be instructed to complete by computer program, computer program can be stored in a storage medium, this is deposited Storage media is computer readable storage medium.In the embodiment of the present invention, which can be stored in computer system It in storage medium, and is executed by least one of computer system processor, includes the reality such as above-mentioned each method with realization Apply the process step of example.
The computer readable storage medium can be magnetic disc, CD, USB flash disk, mobile hard disk, read-only memory (ROM, Read- Only Memory), the various media that can store program code such as magnetic disc or CD.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, depend on the specific application and design constraint of technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as exceeding scope of the present application.
In several embodiments provided herein, it should be understood that disclosed timing task management device and side Method may be implemented in other ways.For example, timing task management device embodiment described above is only schematic 's.For example, the division of each unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner. Such as multiple units or component can be combined or can be integrated into another system, or some features can be ignored, or do not hold Row.
Step in the embodiment of the present application method can be sequentially adjusted, merged and deleted according to actual needs.
Unit in the embodiment of the present application device can be combined, divided and deleted according to actual needs.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, can also be during two or more units are integrated in one unit.It is above-mentioned integrated The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a storage medium, including some instructions are with so that a computer is set Standby (can be personal computer, terminal or the network equipment etc.) execute each embodiment the method for the application whole or Part steps.
The above, the only specific implementation mode of the application, but the protection domain of the application is not limited thereto, it is any Those familiar with the art can readily occur in various equivalent modifications or replace in the technical scope that the application discloses It changes, these modifications or substitutions should all cover within the protection domain of the application.Therefore, the protection domain of the application should be with right It is required that protection domain subject to.

Claims (10)

1. a kind of timing task management method, which is characterized in that including:
If detecting the trigger action of addition timed task, the corresponding addition page of display addition timed task;
The timed task that user's addition is obtained by the addition page, wherein the timed task includes at least one host mark Know;
The timed task got is preserved to presetting database;
Interval preset time traverses the timed task in the presetting database to obtain the timing times for meeting timing and executing condition Business;And
The timing will be met and execute the corresponding host of host identification that the timed task of condition is sent in the timed task So that the host executes the timed task.
2. timing task management method according to claim 1, which is characterized in that described to protect the timed task got It deposits to preset data, further includes:
Timed task table is generated according to the timed task;
If detecting the trigger action for checking timed task, the timed task table is shown.
3. timing task management method according to claim 1, which is characterized in that described to be obtained by the addition page The timed task of addition, including:
Pass through task parameter column on the addition page and obtain corresponding task parameters, wherein the task parameters include:Script Title, host identification, task type, interval time and execution time;And
Timed task is generated according to the task parameters.
4. timing task management method according to claim 3, which is characterized in that described to protect the timed task got It deposits to before presetting database, further includes:
Judge that the presetting database whether there is corresponding timed task according to the task parameters;
If the presetting database does not have corresponding timed task, the timed task got is preserved to presetting database.
5. timing task management method according to claim 4, which is characterized in that described to be judged according to the task parameters After the presetting database whether there is corresponding timed task, further include:
If there are corresponding timed task, output prompt messages to be appointed with prompting user to there is corresponding timing for the presetting database Business, and jump to the timed task table and show corresponding timed task and corresponding task ginseng in the timed task table Number.
6. timing task management method according to claim 1, which is characterized in that described to meet the timing execution item The corresponding host of host identification that the timed task of part is sent in the timed task makes the host execute the timing After task, further include:
It receives the host and has executed the result information fed back after the timed task;And
The result information is corresponded to and is preserved into the timed task table.
7. timing task management method according to claim 1, which is characterized in that described to protect the timed task got It deposits to presetting database, including:
The timed task got is preserved into Celery asynchronous message queues.
8. a kind of timing task management device, which is characterized in that including:
Page display unit, if the trigger action for detecting addition timed task, timed task is corresponding adds for display addition Add the page;
First acquisition unit, the timed task for obtaining user's addition by the addition page, wherein the timed task Including at least one host identification;
Task storage unit, for preserving the timed task got to presetting database;
Second acquisition unit traverses the timed task in the presetting database to obtain satisfaction timing for being spaced preset time The timed task of execution condition;And
Task executing units, the master for being sent to the timed task for meeting the timing execution condition in the timed task Machine identifies corresponding host and the host is made to execute the timed task.
9. a kind of computer equipment, which is characterized in that including memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, the processor is realized when executing the computer program as in claim 1 to 7 The step of any one the method.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program packet Program instruction is included, described program instruction makes the processor execute such as claim 1 to 7 any one when being executed by a processor The step of the method.
CN201810607794.6A 2018-06-13 2018-06-13 Timing task management method, apparatus, computer equipment and storage medium Pending CN108762911A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810607794.6A CN108762911A (en) 2018-06-13 2018-06-13 Timing task management method, apparatus, computer equipment and storage medium
PCT/CN2018/109381 WO2019237586A1 (en) 2018-06-13 2018-10-09 Method and apparatus for managing scheduled tasks, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810607794.6A CN108762911A (en) 2018-06-13 2018-06-13 Timing task management method, apparatus, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN108762911A true CN108762911A (en) 2018-11-06

Family

ID=64021573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810607794.6A Pending CN108762911A (en) 2018-06-13 2018-06-13 Timing task management method, apparatus, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108762911A (en)
WO (1) WO2019237586A1 (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359211A (en) * 2018-11-13 2019-02-19 平安科技(深圳)有限公司 Data-updating method, device, computer equipment and the storage medium of interactive voice
CN109542598A (en) * 2018-11-08 2019-03-29 泰康保险集团股份有限公司 Timing task management method and device
CN109598427A (en) * 2018-11-23 2019-04-09 泰康保险集团股份有限公司 Management method, device and the electronic equipment of robot
CN110069329A (en) * 2019-04-15 2019-07-30 北京达佳互联信息技术有限公司 A kind of task processing method, device, server and storage medium
CN110196765A (en) * 2019-05-30 2019-09-03 苏州浪潮智能科技有限公司 Timed task processing method, device, equipment and computer readable storage medium
CN111026531A (en) * 2019-12-04 2020-04-17 深圳前海环融联易信息科技服务有限公司 Task repeated sending processing method and device, computer equipment and storage medium
CN111078525A (en) * 2019-10-11 2020-04-28 中国平安财产保险股份有限公司 Method and device for adjusting system running time, computer equipment and storage medium
CN111414153A (en) * 2020-03-27 2020-07-14 四川虹美智能科技有限公司 Configurable planned task processing method and device
CN111708625A (en) * 2020-06-16 2020-09-25 中国建设银行股份有限公司 Multi-user task execution method, device, equipment and storage medium
CN111815200A (en) * 2020-07-31 2020-10-23 深圳壹账通智能科技有限公司 Task scheduling method and device, computer equipment and storage medium
WO2020228036A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Task processing method and apparatus, system, electronic device, and storage medium
CN112463348A (en) * 2021-01-27 2021-03-09 北京搜狐新媒体信息技术有限公司 Timed task processing method and device
CN112559158A (en) * 2020-12-29 2021-03-26 中国人民银行清算总中心 Micro-service timing task scheduling method and device
CN112862123A (en) * 2021-03-02 2021-05-28 岭东核电有限公司 Execution work order generation method and device, computer equipment and storage medium
CN112862452A (en) * 2021-03-02 2021-05-28 岭东核电有限公司 Method and device for executing work order equivalence, computer equipment and storage medium
CN112925622A (en) * 2021-02-26 2021-06-08 北信源系统集成有限公司 System timing task processing method and device, electronic equipment and storage medium
CN113076186A (en) * 2021-05-07 2021-07-06 泰康保险集团股份有限公司 Task processing method and device, electronic equipment and storage medium
CN113448749A (en) * 2021-06-04 2021-09-28 山东英信计算机技术有限公司 Method, system, device and medium for optimizing execution of expected timing task
CN113590216A (en) * 2021-07-19 2021-11-02 上海淇玥信息技术有限公司 Timing task centralized management method and device and electronic equipment
CN113722057A (en) * 2021-03-12 2021-11-30 京东数字科技控股股份有限公司 Big data cluster processing method and system, electronic device and storage medium
WO2022012127A1 (en) * 2020-07-16 2022-01-20 浙江三维通信科技有限公司 Task execution method and device, storage medium and electronic device
CN115081419A (en) * 2022-06-21 2022-09-20 京东方科技集团股份有限公司 Information processing method, information processing system, electronic device, and storage medium
CN115357350A (en) * 2022-07-28 2022-11-18 海南泽山软件科技有限责任公司 Task configuration method and device, electronic equipment and computer readable medium
CN116010426A (en) * 2023-02-16 2023-04-25 平安壹钱包电子商务有限公司 A database switching method, device, storage medium and electronic equipment
CN116166392A (en) * 2022-12-06 2023-05-26 贵州新致普惠信息技术有限公司 Timing task setting method, device, electronic equipment and storage medium
CN116450317A (en) * 2023-04-17 2023-07-18 中电云数智科技有限公司 Timing task management method and system based on data statistics and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406993A (en) * 2016-09-06 2017-02-15 努比亚技术有限公司 Timed task management method and system
CN107329820A (en) * 2016-04-28 2017-11-07 杭州海康威视数字技术股份有限公司 A kind of task processing method and device for group system
CN107608774A (en) * 2017-09-08 2018-01-19 新智云数据服务有限公司 A kind of method for scheduling task, device, equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510163B (en) * 2009-04-07 2011-11-30 金蝶软件(中国)有限公司 Processing method and system for planning task
CN103645909A (en) * 2013-12-30 2014-03-19 中国烟草总公司湖南省公司 Handling method and device for timed task
CN105677331A (en) * 2015-12-30 2016-06-15 浙江大华系统工程有限公司 Task execution method and device
CN107748695B (en) * 2017-10-24 2020-11-24 平安科技(深圳)有限公司 Timed task processing method and device, storage medium and computer equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107329820A (en) * 2016-04-28 2017-11-07 杭州海康威视数字技术股份有限公司 A kind of task processing method and device for group system
CN106406993A (en) * 2016-09-06 2017-02-15 努比亚技术有限公司 Timed task management method and system
CN107608774A (en) * 2017-09-08 2018-01-19 新智云数据服务有限公司 A kind of method for scheduling task, device, equipment and storage medium

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542598A (en) * 2018-11-08 2019-03-29 泰康保险集团股份有限公司 Timing task management method and device
CN109359211A (en) * 2018-11-13 2019-02-19 平安科技(深圳)有限公司 Data-updating method, device, computer equipment and the storage medium of interactive voice
CN109359211B (en) * 2018-11-13 2024-05-07 平安科技(深圳)有限公司 Voice interaction data updating method, device, computer equipment and storage medium
CN109598427A (en) * 2018-11-23 2019-04-09 泰康保险集团股份有限公司 Management method, device and the electronic equipment of robot
CN110069329A (en) * 2019-04-15 2019-07-30 北京达佳互联信息技术有限公司 A kind of task processing method, device, server and storage medium
CN113302593A (en) * 2019-05-16 2021-08-24 深圳市欢太科技有限公司 Task processing method, device and system, electronic equipment and storage medium
WO2020228036A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Task processing method and apparatus, system, electronic device, and storage medium
CN113302593B (en) * 2019-05-16 2025-03-21 深圳市欢太科技有限公司 Task processing method, device, system, electronic device and storage medium
CN110196765A (en) * 2019-05-30 2019-09-03 苏州浪潮智能科技有限公司 Timed task processing method, device, equipment and computer readable storage medium
CN111078525A (en) * 2019-10-11 2020-04-28 中国平安财产保险股份有限公司 Method and device for adjusting system running time, computer equipment and storage medium
CN111026531A (en) * 2019-12-04 2020-04-17 深圳前海环融联易信息科技服务有限公司 Task repeated sending processing method and device, computer equipment and storage medium
CN111026531B (en) * 2019-12-04 2024-02-27 深圳前海环融联易信息科技服务有限公司 Task repeated transmission processing method and device, computer equipment and storage medium
CN111414153A (en) * 2020-03-27 2020-07-14 四川虹美智能科技有限公司 Configurable planned task processing method and device
CN111708625A (en) * 2020-06-16 2020-09-25 中国建设银行股份有限公司 Multi-user task execution method, device, equipment and storage medium
WO2022012127A1 (en) * 2020-07-16 2022-01-20 浙江三维通信科技有限公司 Task execution method and device, storage medium and electronic device
CN111815200A (en) * 2020-07-31 2020-10-23 深圳壹账通智能科技有限公司 Task scheduling method and device, computer equipment and storage medium
CN112559158A (en) * 2020-12-29 2021-03-26 中国人民银行清算总中心 Micro-service timing task scheduling method and device
CN112463348B (en) * 2021-01-27 2021-06-15 北京搜狐新媒体信息技术有限公司 Timed task processing method and device
CN112463348A (en) * 2021-01-27 2021-03-09 北京搜狐新媒体信息技术有限公司 Timed task processing method and device
CN112925622A (en) * 2021-02-26 2021-06-08 北信源系统集成有限公司 System timing task processing method and device, electronic equipment and storage medium
CN112862452B (en) * 2021-03-02 2024-07-19 岭东核电有限公司 Method, device, computer equipment and storage medium for executing work order equivalent
CN112862123A (en) * 2021-03-02 2021-05-28 岭东核电有限公司 Execution work order generation method and device, computer equipment and storage medium
CN112862452A (en) * 2021-03-02 2021-05-28 岭东核电有限公司 Method and device for executing work order equivalence, computer equipment and storage medium
CN113722057A (en) * 2021-03-12 2021-11-30 京东数字科技控股股份有限公司 Big data cluster processing method and system, electronic device and storage medium
CN113076186B (en) * 2021-05-07 2023-07-28 泰康保险集团股份有限公司 Task processing method, device, electronic equipment and storage medium
CN113076186A (en) * 2021-05-07 2021-07-06 泰康保险集团股份有限公司 Task processing method and device, electronic equipment and storage medium
CN113448749A (en) * 2021-06-04 2021-09-28 山东英信计算机技术有限公司 Method, system, device and medium for optimizing execution of expected timing task
CN113590216B (en) * 2021-07-19 2024-03-19 上海淇玥信息技术有限公司 A centralized management method, device and electronic equipment for scheduled tasks
CN113590216A (en) * 2021-07-19 2021-11-02 上海淇玥信息技术有限公司 Timing task centralized management method and device and electronic equipment
CN115081419A (en) * 2022-06-21 2022-09-20 京东方科技集团股份有限公司 Information processing method, information processing system, electronic device, and storage medium
CN115357350A (en) * 2022-07-28 2022-11-18 海南泽山软件科技有限责任公司 Task configuration method and device, electronic equipment and computer readable medium
CN115357350B (en) * 2022-07-28 2026-04-24 海南泽山软件科技有限责任公司 Task configuration methods, devices, electronic devices, and computer-readable media
CN116166392A (en) * 2022-12-06 2023-05-26 贵州新致普惠信息技术有限公司 Timing task setting method, device, electronic equipment and storage medium
CN116010426A (en) * 2023-02-16 2023-04-25 平安壹钱包电子商务有限公司 A database switching method, device, storage medium and electronic equipment
CN116450317A (en) * 2023-04-17 2023-07-18 中电云数智科技有限公司 Timing task management method and system based on data statistics and electronic equipment

Also Published As

Publication number Publication date
WO2019237586A1 (en) 2019-12-19

Similar Documents

Publication Publication Date Title
CN108762911A (en) Timing task management method, apparatus, computer equipment and storage medium
US20200050981A1 (en) Designer tool for managing cloud computing services
KR101781339B1 (en) Method and device for updating client
CN107562556B (en) Failure recovery method, recovery device and storage medium
US9009539B1 (en) Identifying and grouping program run time errors
CN107733708B (en) Equipment parameter configuration method and device, computer equipment and storage medium
US10142170B2 (en) Log processing method and client
CN105045602B (en) Method and device for constructing Hadoop application development framework and electronic device
CN109189758B (en) Operation and maintenance flow design method, device and equipment, operation method, device and host
CN112306471A (en) Task scheduling method and device
US10019344B1 (en) Computer implemented system and method and computer program product for a test framework for orchestration workflows
US20200371903A1 (en) Automatic generation of unit tests while running an application
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN109739527A (en) A kind of method, apparatus, server and the storage medium of the publication of client gray scale
CN106941418B (en) SSL VPN configuration information synchronization method and device
CN109120794A (en) A kind of message display method and device and electronic equipment
US8495592B2 (en) Presenting completion progress status of an installer via join points
CN107222618A (en) Terminal screenshotss method and device
US12353494B2 (en) Building and deploying a tag library for web site analytics and testing
CN110308954A (en) Click event interception method, device and mobile terminal
US20190332932A1 (en) Learning Machine Behavior Related to Install Base Information and Determining Event Sequences Based Thereon
CN105975295A (en) Application updating method and apparatus used for host cluster and server device
US8103998B2 (en) Verifying non-deterministic behavior of a design under test
CN108234615B (en) Table item processing method, mainboard and main network equipment
US8965826B2 (en) Dynamic backjumping in constraint satisfaction problem solving

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106