CN110764894A - Timed task management method, device, equipment and storage medium - Google Patents

Timed task management method, device, equipment and storage medium Download PDF

Info

Publication number
CN110764894A
CN110764894A CN201911018416.5A CN201911018416A CN110764894A CN 110764894 A CN110764894 A CN 110764894A CN 201911018416 A CN201911018416 A CN 201911018416A CN 110764894 A CN110764894 A CN 110764894A
Authority
CN
China
Prior art keywords
timing task
information
task
attribute information
timing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911018416.5A
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.)
Beijing Ruian Technology Co Ltd
Original Assignee
Beijing Ruian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Ruian Technology Co Ltd filed Critical Beijing Ruian Technology Co Ltd
Priority to CN201911018416.5A priority Critical patent/CN110764894A/en
Publication of CN110764894A publication Critical patent/CN110764894A/en
Pending legal-status Critical Current

Links

Images

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/321Display for diagnostics, e.g. diagnostic result display, self-test user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for managing a timed task. The method comprises the following steps: acquiring trigger information and attribute information of a timing task, and updating the configuration information into the attribute information if the timing task corresponding to the trigger information exists and the attribute information is not matched with the configuration information of the existing timing task; and if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information, and executing the timing task according to the execution method corresponding to the attribute information. Compared with the prior art, the method and the device have the advantages that when the attribute information of the timing task is not matched with the existing configuration information, the configuration information of the timing task can be dynamically adjusted, when the timing task does not exist, a new timing task can be added according to the corresponding attribute information, the dynamic adjustment of the timing task can be realized without restarting services, and the flexibility is improved.

Description

Timed task management method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a timed task management method, a timed task management device, timed task management equipment and a storage medium.
Background
Quartz is a timing task scheduling framework with rich functions and open sources in the task scheduling field of OpenSymphony, and is widely applied in the task scheduling field. Quartz can be used to create hundreds or thousands of Jobs, simple or complex, in conjunction with or independent of J2EE or J2SE applications, and can also allow program developers to perform timed tasks based on fixed time intervals or Cron expressions.
Taking the execution of the timing task as an example, in a conventional execution mode, when parameters such as a period or an execution time of the timing task need to be modified or the timing task needs to be added, deleted or modified, a service needs to be restarted to change relevant configuration parameters or codes, and flexibility is poor.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for managing a timing task, which are used for improving the flexibility of the management of the timing task.
In a first aspect, an embodiment of the present invention provides a method for managing a timed task, including:
acquiring trigger information and attribute information of a timing task;
if the timing task corresponding to the trigger information exists and the attribute information is not matched with the configuration information of the existing timing task, updating the configuration information into the attribute information; if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information;
and executing the timing task according to the execution method corresponding to the attribute information.
In a second aspect, an embodiment of the present invention further provides a device for managing a timed task, where the device includes:
the information acquisition module is used for acquiring trigger information and attribute information of the timing task;
the updating module is used for updating the configuration information into the attribute information if the timing task corresponding to the trigger information exists and the attribute information is not matched with the configuration information of the existing timing task; if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information;
and the task execution module is used for executing the timing task according to the execution method corresponding to the attribute information.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the timed task management method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the timed task management method according to the first aspect.
The embodiment of the invention provides a method, a device, equipment and a storage medium for managing a timing task, wherein by acquiring trigger information and attribute information of the timing task, if the timing task corresponding to the trigger information exists and the attribute information is not matched with configuration information of the existing timing task, the configuration information is updated to the attribute information; and if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information, and executing the timing task according to the execution method corresponding to the attribute information. Compared with the prior art, the method and the device have the advantages that when the attribute information of the timing task is not matched with the existing configuration information, the configuration information of the timing task can be dynamically adjusted, when the timing task does not exist, a new timing task can be added according to the corresponding attribute information, the dynamic adjustment of the timing task can be realized without restarting services, and the flexibility is improved.
Drawings
Fig. 1 is a flowchart of a timed task management method according to an embodiment of the present invention;
fig. 2 is a flowchart of a timing task management method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of an interface for adding a timing task according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating an implementation of timed task management according to a second embodiment of the present invention;
fig. 5 is a structural diagram of a timing task management device according to a third embodiment of the present invention;
fig. 6 is a structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
Fig. 1 is a flowchart of a timing task management method according to an embodiment of the present invention, where the present embodiment is applicable to a case of managing a timing task, and the method may be executed by a timing task management device, and the timing task management device may be implemented in a software and/or hardware manner and may be configured in a device such as a mobile phone or a computer. Referring to fig. 1, the method may include the steps of:
and S110, acquiring trigger information and attribute information of the timing task.
The triggering information is information for triggering corresponding operation by a user logging in a management system on a designated page, the management system of the embodiment takes an operation and maintenance platform management system as an example, the designated page is a page which is entered by the user according to needs after logging in the operation and maintenance platform management system, and for example, when the user needs to dynamically manage a timing task, the user can enter the timing task management page. Taking the timed task management page as an example, the page includes different management menus, the management menus include but are not limited to modification, deletion, addition, start or stop, and the dynamic management of the timed task can be realized by triggering different management menus, for example, when the modification menu is triggered, the configuration information of the timed task can be modified, and when the addition menu is triggered, a new timed task can be added. Specifically, the trigger information of the user may be determined according to the trigger operation of the user, for example, when the modification menu is triggered, the trigger information is modified, and when the deletion menu is triggered, the trigger information is deleted.
The attribute information may be information such as a task type of the timing task, a task name, an execution period, an execution frequency, and a time when execution starts and ends. Taking modifying the timing task as an example, optionally, when the trigger information of the timing task is obtained as modification, the system enters an information configuration page, and attribute information of the timing task, which is parameter information of the timing task desired by the user, such as an execution period, an execution frequency, and execution start and end times, may be obtained through the information configuration page. The information configuration page is configured with parameters of different dimensions, and when the information configuration page is actually applied, a user can select corresponding dimensions and set specific parameter values of the corresponding dimensions according to needs.
In order to ensure the safety of the timing task, the identity of the user can be verified to determine whether the user has the authority to dynamically manage the timing task. For example, the login authority and the management authority of a user can be verified, wherein the login authority is the authority of the user to log in a management system, the identity of the user can be preliminarily screened according to information such as a user name and a password of the user, the management authority is the management authority of the user to the timing task, after the user is confirmed to have the login authority, whether the user has the authority to manage the timing task or not can be further verified before the user enters a timing task management page, and only if the user has the management authority, the user can enter a timing task management interface to dynamically manage the timing task, so that the safe operation of the timing task is guaranteed.
Optionally, before acquiring the trigger information and the attribute information of the timing task, the timing task may be created. Specifically, the timed task may be created according to a timed task template table and a task creation request, where the timed task template table is used to store information such as template IDs, template names, task types and task names of different timed task templates, and a method name of an execution method for executing the timed task, and the task creation request includes information such as a task type, a task name and a method name of a task to be created, and the corresponding timed task may be created according to the task creation request in combination with the timed task template table. The task state of the timing task can be limited in the creating process, the task state comprises a starting state and a stopping state, the starting state is that the timing task starts and starts timing after the management system is started, and the stopping state is that the timing task does not start after the management system is started. After the timed task is created, the task states of the timed task can be stored in a timed task table in a classified manner, the timed task table is used for storing information of each timed task, the information mainly comprises timed task template IDs, task states and the like, and the timed task template IDs correspond to task types, task names, task states and the like one to one. The timed task table and the timed task template table are stored in a database.
S120, if the timing task corresponding to the trigger information exists and the attribute information is not matched with the configuration information of the existing timing task, updating the configuration information into the attribute information; and if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information.
The configuration information is specific information of the corresponding parameter configured or stored in advance. Specifically, whether the timing task to be managed exists or not is determined according to the acquired trigger information, if yes, whether the configuration information is matched with the attribute information or not is compared, and if not, the configuration information is updated. Optionally, when the trigger information is increased, it indicates that the timing task to be managed does not exist, and when the trigger information is modified, deleted, started or stopped, it indicates that the timing task to be managed exists. If the attribute information does not exist, the timing task is generated according to the acquired attribute information, optionally, the timing task can be generated according to the timing task template table and the attribute information and stored, the attribute information is similar to the information contained in the task creation request, and the generation process of the timing task is described above and is not described again here.
And S130, executing the timing task according to the execution method corresponding to the attribute information.
The execution Method is a Method adopted for executing the timing task, and can determine a corresponding Method object, also called a Method object, according to the Method name of the timing task, call the Method corresponding to the Method object, serve as the execution Method of the timing task, and execute the timing task. In actual application, the timing task can be executed directly according to the called method, and corresponding parameters in the called method can be modified according to needs to meet the execution requirement. The whole execution process is realized on the basis of Quartz and Spring frameworks.
The embodiment of the invention provides a timed task management method, which comprises the steps of acquiring trigger information and attribute information of a timed task, and updating the configuration information into the attribute information if the timed task corresponding to the trigger information exists and the attribute information is not matched with the configuration information of the existing timed task; and if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information, and executing the timing task according to the execution method corresponding to the attribute information. Compared with the prior art, the method and the device have the advantages that when the attribute information of the timing task is not matched with the existing configuration information, the configuration information of the timing task can be dynamically adjusted, when the timing task does not exist, a new timing task can be added according to the corresponding attribute information, the dynamic adjustment of the timing task can be realized without restarting services, and the flexibility is improved.
On the basis of the above embodiment, optionally, the trigger information includes at least one of addition, modification, deletion, activation and deactivation information.
The trigger information of the embodiment is, for example, information of adding, modifying, deleting, starting and stopping, so as to realize adding, modifying, deleting, starting or stopping of the timing task, and further realize dynamic management of the timing task.
Example two
Fig. 2 is a flowchart of a timing task management method according to a second embodiment of the present invention, where the present embodiment is optimized based on the foregoing embodiment, and referring to fig. 2, the method may include the following steps:
and S210, acquiring trigger information and attribute information of the timing task.
And S220, judging whether a timing task corresponding to the trigger information exists or not, if so, executing S230, otherwise, executing S250.
Optionally, whether the corresponding timing task exists may be determined according to the trigger information, for example, when the trigger information is modification, deletion, start, or stop information, the corresponding timing task exists, and when the trigger information is addition information, the corresponding timing task does not exist. Specifically, the trigger information may be obtained according to a trigger operation selected by a user, the timed task management page includes corresponding management menus of addition, modification, deletion, activation, deactivation, and the like, when the user triggers an added management menu, the obtained trigger information is added information, and the others are similar. In the embodiment, when the trigger information is set to be the added information, the corresponding timing task does not exist, and when the trigger information is the modified, deleted, started or stopped information, the corresponding timing task does not exist.
And S230, judging whether the attribute information is matched with the configuration information of the timing task, if not, executing S240, otherwise, executing S260.
If the timing task to be managed exists, whether the attribute information of the timing task is matched with the configuration information is further determined, if so, the execution task is directly executed according to the execution method corresponding to the configuration information, and if not, the configuration information needs to be updated.
And S240, updating the configuration information into the attribute information.
And S250, generating a timing task according to the attribute information.
Optionally, the timed task may be generated according to the timed task template table and the attribute information. Exemplarily, referring to fig. 3, fig. 3 is a schematic diagram of an interface for adding a timing task according to a second embodiment of the present invention. Fig. 3 illustrates an example of adding an alarm timing task, an alarm source is a server, an attribute is a memory, that is, monitoring the memory of the server, where a detection period, a detection number, and detection start and end times can be set according to actual needs, fig. 3 illustrates an example where the detection number is 1, the detection period is 10min, the detection start time is 00:00, and the detection end time is 23:59, it can be seen from fig. 3 that the timing task is a usage rate of a server that circularly traverses detection conforming conditions, when it is determined that the memory usage rate of a certain server exceeds a memory alarm threshold, alarm information is generated, and a user is notified in a page, mail, or short message manner, where the memory alarm threshold can be set according to needs, and embodiments are not limited. Fig. 3 only illustrates several dimensions of the server memory, for example, the usage rates of the CPU and the hard disk of the server may be monitored.
And S260, executing the timing task according to the execution method corresponding to the attribute information.
Optionally, the attribute information includes: the task type, the task name and the method name of the timing task; accordingly, the timing task may be performed as follows:
determining a storage object corresponding to the timing task according to the task type, wherein the storage object is used for storing a method object corresponding to at least one method name;
searching the storage object, and determining a target method object corresponding to the method name;
and calling a method corresponding to the target method object to serve as an execution method of the timing task, and executing the timing task.
The storage object may also be referred to as a class object, where the class object is used to store at least one Method object, that is, a Method object, and specifically, a Java reflection mechanism may be used to obtain the class object according to a class name of a job corresponding to the timing task, where the class name of the job corresponding to the timing task may be determined according to a task type of the timing task, for example, if the task type of the timing task is a timing type, the corresponding job class is a timing task class. After the class object is determined, a corresponding method object can be determined according to a method name corresponding to the timed task to be used as a target method object, and then a method corresponding to the target method object is called through invoke to obtain an execution method of the timed task. invoke may implement dynamic invocation, e.g., incoming parameters that may be dynamic. After the execution method is determined, the timing task can be executed based on a Cron expression, wherein the Cron expression is generated by analyzing the detection period, the detection start time and the detection end time, and is similar to a time rule, for example, the timing task is executed 3 points in the morning every day.
And S270, recording the execution information of the timing task.
The execution information includes the execution time of the timing task, the execution result, exception information, the execution ending time, and the like, and the execution result includes success and failure.
And S280, generating a log according to the execution information, and displaying the log to a user in a preset display form.
The log is used for recording the execution process of the timing task, including the execution time consumption, the execution result, the abnormal information, the execution ending time and the like, so that the later-stage user can conveniently check the execution result, and especially when the abnormal condition occurs, the abnormal reason can be searched according to the log. The log generated according to the execution information can be stored in a timing task table, the timing task table is stored in a database, and the preset display form can be a form or characters and the like.
Exemplarily, referring to fig. 4, fig. 4 is a flowchart for implementing a timing task management provided by the second embodiment of the present invention, where a user logs in an operation and maintenance platform management system and enters a timing task management page, and determines trigger information of a timing task according to an operation of the user on the timing task management page, if the trigger information is increased and indicates that the timing task does not exist, the timing task is generated according to the acquired attribute information and stored, and a job class is updated, if the trigger information is deleted or edited and indicates that the timing task exists, and the editing can be start, stop, or modify of the timing task, it is further determined whether the attribute information and the configuration information of the timing task match, if so, an execution method corresponding to the attribute information is directly invoked, the timing task is executed based on a Cron expression, and if not, the configuration information of the timing task is updated, and calling an execution method corresponding to the updated configuration information, executing the timing task based on the updated Cron expression, recording information such as execution time consumption, execution results and abnormal sounds of the timing task, generating a log based on the information, and displaying the log to a user in a preset display form. The method for managing the timing task provided by the embodiment can not only dynamically transmit parameters to the method for executing the timing task, thereby improving the expandability, but also dynamically manage the timing task without restarting the service, thereby increasing the flexibility.
On the basis of the above embodiment, when it is determined that the timing task to be managed does not exist, the timing task may be generated according to the acquired attribute information, and when it is determined that the timing task to be managed exists, operations such as dynamic modification, deletion, start-stop and the like may be performed on the timing task, and parameters may be dynamically transmitted to an execution method of the timing task, thereby increasing expandability and flexibility.
EXAMPLE III
Fig. 5 is a structural diagram of a timed task management apparatus according to a third embodiment of the present invention, where the apparatus may execute the timed task management method described in the foregoing embodiment, and referring to fig. 5, the apparatus may include:
an information obtaining module 310, configured to obtain trigger information and attribute information of a timing task;
an updating module 320, configured to update the configuration information to the attribute information if the timing task corresponding to the trigger information exists and the attribute information does not match configuration information of the existing timing task; if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information;
and the task execution module 330 is configured to execute the timing task according to an execution method corresponding to the attribute information.
The third embodiment of the present invention provides a timed task management device, which acquires trigger information and attribute information of a timed task, and if the timed task corresponding to the trigger information exists and the attribute information does not match with configuration information of the existing timed task, updates the configuration information to the attribute information; and if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information, and executing the timing task according to the execution method corresponding to the attribute information. Compared with the prior art, the method and the device have the advantages that when the attribute information of the timing task is not matched with the existing configuration information, the configuration information of the timing task can be dynamically adjusted, when the timing task does not exist, a new timing task can be added according to the corresponding attribute information, the dynamic adjustment of the timing task can be realized without restarting services, and the flexibility is improved.
On the basis of the above embodiment, the trigger information includes at least one of addition, modification, deletion, activation, and deactivation information.
On the basis of the above embodiment, the existence of the timing task corresponding to the trigger information includes:
the trigger information is modification, deletion, starting or stopping information, and a corresponding timing task exists;
the absence of the timing task corresponding to the trigger information includes:
the trigger information is added information, and the corresponding timing task does not exist.
On the basis of the above embodiment, the attribute information includes: the task type, task name and method name of the timed task.
On the basis of the foregoing embodiment, the task execution module 330 is specifically configured to:
the executing the timing task according to the executing method corresponding to the attribute information includes:
determining a storage object corresponding to the timing task according to the task type, wherein the storage object is used for storing a method object corresponding to at least one method name;
searching the storage object, and determining a target method object corresponding to the method name;
and calling a method corresponding to the target method object to serve as an execution method of the timing task, and executing the timing task.
On the basis of the above embodiment, the generating a timing task according to the attribute information includes:
and generating a timing task according to the timing task template table and the attribute information.
On the basis of the above embodiment, the apparatus further includes:
the information recording module is used for recording the execution information of the timing task after the timing task is executed according to the execution method corresponding to the attribute information;
and the log generation module is used for generating a log according to the execution information and displaying the log to a user in a preset display form.
The timed task management device provided by the third embodiment of the invention can execute the timed task management method provided by the above embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 6 is a structural diagram of an apparatus according to a fourth embodiment of the present invention, and referring to fig. 6, the apparatus includes: the number of the processors 410 in the device may be one or more, one processor 410 is taken as an example in fig. 6, the processors 410, the memories 420, the input devices 430 and the output devices 440 in the device may be connected by a bus or in other manners, and the processor 410, the memories 420, the input devices 430 and the output devices 440 in the device are taken as an example in fig. 6.
The memory 420 serves as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the timed task management method in the embodiments of the present invention. The processor 410 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 420, that is, implements the timed task management method of the above-described embodiment.
The memory 420 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 430 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the apparatus. The output device 440 may include a display device such as a display screen, and an audio device such as a speaker and a buzzer.
The device provided by the fourth embodiment of the present invention is the same as the timed task management method provided by the foregoing embodiment, and the technical details that are not described in detail in this embodiment can be referred to the foregoing embodiment.
EXAMPLE five
Fifth, an embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for managing timed tasks according to the fifth embodiment of the present invention.
Of course, the storage medium provided by the embodiment of the present invention includes computer-executable instructions, and the computer-executable instructions are not limited to the operations in the timed task management method described above, and may also perform related operations in the timed task management method provided by any embodiment of the present invention, and have corresponding functions and advantages.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, and the computer software product may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions to enable a computer device (which may be a robot, a personal computer, a server, or a network device) to execute the method for managing timed tasks according to the embodiments of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A timed task management method is characterized by comprising the following steps:
acquiring trigger information and attribute information of a timing task;
if the timing task corresponding to the trigger information exists and the attribute information is not matched with the configuration information of the existing timing task, updating the configuration information into the attribute information; if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information;
and executing the timing task according to the execution method corresponding to the attribute information.
2. The method of claim 1, wherein the triggering information comprises at least one of addition, modification, deletion, activation, and deactivation information.
3. The method of claim 2, wherein the timing task corresponding to the trigger information exists and comprises:
the trigger information is modification, deletion, starting or stopping information, and a corresponding timing task exists;
the absence of the timing task corresponding to the trigger information includes:
the trigger information is added information, and the corresponding timing task does not exist.
4. The method of claim 1, wherein the attribute information comprises: the task type, the task name and the method name of the timing task;
the executing the timing task according to the executing method corresponding to the attribute information includes:
determining a storage object corresponding to the timing task according to the task type, wherein the storage object is used for storing a method object corresponding to at least one method name;
searching the storage object, and determining a target method object corresponding to the method name;
and calling a method corresponding to the target method object to serve as an execution method of the timing task, and executing the timing task.
5. The method according to any of claims 1-4, wherein the generating a timed task according to the attribute information comprises:
and generating a timing task according to the timing task template table and the attribute information.
6. The method according to any one of claims 1-4, further comprising, after executing the timing task according to the execution method corresponding to the attribute information:
recording the execution information of the timing task;
and generating a log according to the execution information, and displaying the log to a user in a preset display form.
7. A timed task management apparatus, comprising:
the information acquisition module is used for acquiring trigger information and attribute information of the timing task;
the updating module is used for updating the configuration information into the attribute information if the timing task corresponding to the trigger information exists and the attribute information is not matched with the configuration information of the existing timing task; if the timing task corresponding to the trigger information does not exist, generating the timing task according to the attribute information;
and the task execution module is used for executing the timing task according to the execution method corresponding to the attribute information.
8. The method of claim 7, wherein the triggering information includes at least one of addition, modification, deletion, activation, and deactivation information.
9. An apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the timed task management method of any of claims 1-6.
10. A storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the timed task management method according to any one of claims 1 to 6.
CN201911018416.5A 2019-10-24 2019-10-24 Timed task management method, device, equipment and storage medium Pending CN110764894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911018416.5A CN110764894A (en) 2019-10-24 2019-10-24 Timed task management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911018416.5A CN110764894A (en) 2019-10-24 2019-10-24 Timed task management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110764894A true CN110764894A (en) 2020-02-07

Family

ID=69333357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911018416.5A Pending CN110764894A (en) 2019-10-24 2019-10-24 Timed task management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110764894A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966474A (en) * 2020-08-11 2020-11-20 武汉遂意语联网络科技有限公司 Method and device for controlling timing task
CN112025711A (en) * 2020-09-09 2020-12-04 上海有个机器人有限公司 Timed task execution method and device for robot and robot
CN112416563A (en) * 2020-12-28 2021-02-26 中科院计算技术研究所大数据研究院 Distributed dynamic timing task scheduling method
CN113176935A (en) * 2021-05-07 2021-07-27 深圳市欧瑞博科技股份有限公司 Intelligent updating method and device for timed task, electronic equipment and storage medium
CN114443246A (en) * 2021-12-28 2022-05-06 广州市玄武无线科技股份有限公司 Intelligent scheduling method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN106095540A (en) * 2016-05-31 2016-11-09 上海萌果信息科技有限公司 A kind of flow of task processing method based on Quartz framework
CN106126332A (en) * 2016-06-27 2016-11-16 北京京东尚科信息技术有限公司 Distributed timing task scheduling system and method
CN108733468A (en) * 2017-04-20 2018-11-02 北京京东尚科信息技术有限公司 Timed task Dynamic Configuration and device, storage medium and server cluster
WO2019196250A1 (en) * 2018-04-09 2019-10-17 平安科技(深圳)有限公司 Task handling method, storage medium, server, and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887381A (en) * 2010-06-22 2010-11-17 北京伟库电子商务科技有限公司 Method and device for configuring timing tasks based on Quartz frame
CN106095540A (en) * 2016-05-31 2016-11-09 上海萌果信息科技有限公司 A kind of flow of task processing method based on Quartz framework
CN106126332A (en) * 2016-06-27 2016-11-16 北京京东尚科信息技术有限公司 Distributed timing task scheduling system and method
CN108733468A (en) * 2017-04-20 2018-11-02 北京京东尚科信息技术有限公司 Timed task Dynamic Configuration and device, storage medium and server cluster
WO2019196250A1 (en) * 2018-04-09 2019-10-17 平安科技(深圳)有限公司 Task handling method, storage medium, server, and device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111966474A (en) * 2020-08-11 2020-11-20 武汉遂意语联网络科技有限公司 Method and device for controlling timing task
CN111966474B (en) * 2020-08-11 2024-04-02 武汉遂意语联网络科技有限公司 Method and device for controlling timing task
CN112025711A (en) * 2020-09-09 2020-12-04 上海有个机器人有限公司 Timed task execution method and device for robot and robot
CN112025711B (en) * 2020-09-09 2021-12-10 上海有个机器人有限公司 Timed task execution method and device for robot and robot
CN112416563A (en) * 2020-12-28 2021-02-26 中科院计算技术研究所大数据研究院 Distributed dynamic timing task scheduling method
CN113176935A (en) * 2021-05-07 2021-07-27 深圳市欧瑞博科技股份有限公司 Intelligent updating method and device for timed task, electronic equipment and storage medium
CN114443246A (en) * 2021-12-28 2022-05-06 广州市玄武无线科技股份有限公司 Intelligent scheduling method, device, equipment and computer readable storage medium
CN114443246B (en) * 2021-12-28 2022-12-09 广州市玄武无线科技股份有限公司 Intelligent scheduling method, device, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN110764894A (en) Timed task management method, device, equipment and storage medium
CN108108297B (en) Method and device for automatic testing
US9253265B2 (en) Hot pluggable extensions for access management system
WO2018126964A1 (en) Task execution method and apparatus and server
CN111258565B (en) Method, system, server and storage medium for generating applet
US12135731B2 (en) Monitoring and alerting platform for extract, transform, and load jobs
WO2021022714A1 (en) Message processing method for cross-block chain node, device, apparatus and medium
US11659021B2 (en) Asynchronous distributed modular function calling
US20220308949A1 (en) Publishing system, pushing method, application device, receiving device and service management device
JP2024508452A (en) Hosting event-based applications
CN113238815A (en) Interface access control method, device, equipment and storage medium
CN110574006B (en) System and method for automatically synchronizing responses and conditions on a device
CN110928630A (en) Activation control method, device and equipment for application program window and storage medium
CN105447384B (en) A kind of anti-method monitored, system and mobile terminal
CN113687882A (en) Process rollback method, device and storage medium based on activiti
CN111078418B (en) Operation synchronization method, device, electronic equipment and computer readable storage medium
CN111367934A (en) Data consistency checking method, device, server and medium
CN114721740B (en) Message triggering method, device, equipment and storage medium
CN111400060B (en) Equipment linkage method, device, server and medium
CN111080250B (en) Flow backspacing compensation method and device, storage medium and electronic equipment
CN114610413A (en) Method, device, equipment and storage medium for executing synchronous and asynchronous tasks based on Java
CN113110901B (en) Desktop locking control method and device
CN113886215A (en) Interface test method, device and storage medium
CN113268401A (en) Log information output method and device and computer readable storage medium
CN113296832A (en) Data processing method and device and electronic equipment

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

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication