CN114201279A - Timed task management method, device, system, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN114201279A
CN114201279A CN202111488791.3A CN202111488791A CN114201279A CN 114201279 A CN114201279 A CN 114201279A CN 202111488791 A CN202111488791 A CN 202111488791A CN 114201279 A CN114201279 A CN 114201279A
Authority
CN
China
Prior art keywords
task
timing
module
timed
component
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
CN202111488791.3A
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202111488791.3A priority Critical patent/CN114201279A/en
Publication of CN114201279A publication Critical patent/CN114201279A/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
    • G06F9/4887Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues involving deadlines, e.g. rate based, periodic
    • 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/465Distributed object oriented systems

Landscapes

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

Abstract

The invention provides a method, a device, a system, electronic equipment and a storage medium for managing a timing task, wherein the method comprises the following steps: receiving at least one timed task request sent by at least one functional component; each timing task request carries a unique operation identifier; establishing a timing task component according to the timing task request and an operation identifier carried by the timing task request; and sending the timing task component to the functional component. According to the scheme provided by the invention, the unique timing task component is created for the functional component according to the timing task request and the operation identifier sent by the functional component, so that the efficient scheduling of the timing task and the centralized management of the timing task can be realized, and the problem of service overlapping or service conflict easily caused when a large number of timing tasks exist is avoided.

Description

Timed task management method, device, system, electronic equipment and storage medium
Technical Field
The invention relates to the field of internet, in particular to a timed task management method, a timed task management device, a timed task management system, electronic equipment and a timed task management storage medium.
Background
In daily software development, a timing module is often required to be used to execute some periodic service logics, but basically, independent timing modules are written through programs, the timing modules among the programs are not shared and opaque, generality cannot be realized, and when a large number of timing modules exist, service overlapping or conflict is difficult to avoid, and server performance is reduced.
Aiming at the technical problems that the management efficiency of the timing task is low and the overlapping of services or service conflict is easily caused in the prior art, an effective solution is not provided at present.
Disclosure of Invention
In view of the above problems, the present invention provides a method, an apparatus, a system, an electronic device, and a storage medium for managing a timing task, so as to at least solve the technical problems in the related art that the efficiency of managing the timing task is low, and overlapping or conflict of services is easily caused.
To solve the above technical problem, according to a first aspect of the present invention, there is provided a timed task management method, including: receiving at least one timed task request sent by at least one functional component; each timing task request carries a unique operation identifier; establishing a timing task component according to the timing task request and an operation identifier carried by the timing task request; and sending the timing task component to the functional component.
Optionally, the creating a timed task component according to the timed task request and the operation identifier carried by the timed task request includes: analyzing an operation task type corresponding to the timing task based on the operation identification; acquiring a timing module corresponding to the operation task type; and creating a timing task component corresponding to the operation identifier through the timing module.
Optionally, at least one timing module is stored in the distributed storage system, and the obtaining of the timing module corresponding to the operation task type includes: judging whether a timing module corresponding to the operation task type exists in the distributed storage system or not; if a timing module corresponding to the operation task type exists in the distributed storage system, requesting the timing module by sending the timing task request to the distributed storage system; otherwise, the timing task request and the operation identifier are sent to the distributed storage system to request the distributed storage system to create the timing module.
Optionally, the operation identifier includes operation task content corresponding to the operation task type, and creating, by the timing module, a timing task component corresponding to the operation identifier includes: and according to the operation task content corresponding to the operation task type, creating a timing task component corresponding to the operation identifier by the timing module.
Optionally, the operation task type includes at least one of the following: inquiring the task type, modifying the task type, creating the task type and deleting the task type.
Optionally, the operation identifier includes a unique identifier of the functional component, and the sending the timed task component to the functional component includes: and sending the timed task component to the functional component according to the unique identification code.
According to a second aspect of the present invention, there is also provided a timed task management apparatus, the apparatus comprising: the receiving module is used for receiving at least one timed task request sent by at least one functional component; each timing task request carries a unique operation identifier; the creating module is used for creating a timing task component according to the timing task request and the operation identifier carried by the timing task request; and the sending module is used for sending the timing task component to the functional component.
Optionally, the creating module includes: the analysis unit is used for analyzing the operation task type corresponding to the timing task based on the operation identification; the acquisition unit is used for acquiring a timing module corresponding to the operation task type; and the creating unit is used for creating a timing task component corresponding to the operation identifier through the timing module.
Optionally, at least one timing module is stored in the distributed storage system, and the obtaining unit includes: the judging subunit is used for judging whether a timing module corresponding to the operation task type exists in the distributed storage system or not; an obtaining subunit, configured to, when a timing module corresponding to the operation task type exists in the distributed storage system, request the timing module by sending the timing task request to the distributed storage system; otherwise, the timing task request and the operation identifier are sent to the distributed storage system to request the distributed storage system to create the timing module.
Optionally, the operation identifier includes operation task content corresponding to the operation task type, and the creating unit is configured to: and according to the operation task content corresponding to the operation task type, creating a timing task component corresponding to the operation identifier by the timing module.
Optionally, the operation task type includes at least one of the following: inquiring the task type, modifying the task type, creating the task type and deleting the task type.
Optionally, the operation identifier includes a unique identifier of the functional component, and the sending module includes: and the sending unit is used for sending the timed task component to the functional component according to the unique identification code.
According to a third aspect of the present invention, there is further provided a timed task management system, where the system includes at least one functional component, a timed task management platform, and a distributed storage subsystem, where the at least one functional component is configured to send at least one timed task request to the timed task management platform; each timing task request carries a unique operation identifier; the timing task management platform comprises: the receiving module is used for receiving the timing task request sent by the functional component; the creating module is used for creating a timing task component according to the timing task request and the operation identifier carried by the timing task request; the sending module is used for sending the timing task component to the functional component; the distributed storage subsystem is associated with the timed task management platform, is used for storing a timed module and sending the timed module to the timed task management platform after receiving the timed task request; wherein the timing module is configured to create the timed task component.
According to a fourth aspect of the present invention, there is also provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
According to a fifth aspect of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps in any of the apparatus embodiments described above when executed.
According to the timing task management method provided by the embodiment of the invention, the timing task management platform creates the unique timing task component for each functional component according to at least one timing task request sent by at least one functional component and the operation identifier corresponding to each timing task request, so that the efficient scheduling of the timing task and the centralized management of the timing task can be realized, the problems of service overlapping or service conflict and the like easily caused when a large number of timing tasks exist are avoided, the technical problems of low timing task management efficiency, easy service overlapping or service conflict and the like in the related technology are solved, and the performance of the server is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below.
FIG. 1 is a flow chart of a method of timed task management according to an embodiment of the present invention;
FIG. 2 is a block diagram of a timed task management system according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a conventional timing module provided in accordance with one embodiment of the present invention;
FIG. 4 is a flow chart of a timing module scheduling system according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating a scheduling process for a single module according to an embodiment of the present invention;
FIG. 6 is a block diagram of a timed task management apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that such uses are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the term "include" and its variants are to be read as open-ended terms meaning "including, but not limited to".
In order to solve the technical problems in the related art, a method for managing a timed task is provided in the present embodiment. The following describes the technical solution of the present invention and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for managing a timed task according to an embodiment of the present invention, as shown in fig. 1, applied to a timed task management platform, where the timed task management platform may be implemented by multiple programming languages, and the flowchart includes the following steps:
step S102, receiving at least one timed task request sent by at least one functional component; each timing task request carries a unique operation identifier;
preferably, the operation identifier at least comprises a unique identification code of the functional component, a timing task operation type and task operation content corresponding to each timing task operation type; a unique timed task component is created for each functional component based on the operation identification.
Optionally, the operation task type includes at least one of the following: inquiring the task type, modifying the task type, creating the task type and deleting the task type. The operation identifiers carried by the program system (namely, the functional components) at least comprise identifiers of inquiry, creation, modification, deletion and the like.
Step S104, a timing task component is established according to the timing task request and an operation identifier carried by the timing task request;
in a possible implementation manner of the present disclosure, the step S104 specifically includes: analyzing the operation task type corresponding to the timing task based on the operation identification; acquiring a timing module corresponding to the type of the operation task; and creating a timed task component corresponding to the operation identifier through the timing module.
In this embodiment, it is assumed that there are 4 operation task types, at least 4 timing modules may be set for the 4 operation task types, and optionally, a plurality of timing modules may be set for each operation task type; the plurality of timing modules may be stored in a distributed storage system.
Further, at least one timing module is stored in the distributed storage system, and acquiring the timing module corresponding to the operation task type includes: judging whether a timing module corresponding to the operation task type exists in the distributed storage system or not; if a timing module corresponding to the operation task type exists in the distributed storage system, requesting the timing module by sending a timing task request to the distributed storage system; otherwise, sending a timing task request and an operation identifier to the distributed storage system to request the distributed storage system to create a timing module.
Alternatively, the distributed nature may employ micro-services and nginx for high availability and load balancing, primarily for the distribution of services.
In this embodiment, assuming that the operation task type is the creation task type and the corresponding timing module exists in the distributed storage system, the timing module is directly called, and a unique timing task component of the functional component is created for the timing module according to the specific content of the creation task corresponding to the creation task type; and if the corresponding timing module does not exist, creating the corresponding timing module, and creating the corresponding timing task component by the timing module.
In another possible implementation, if there is no corresponding timing module in the distributed storage system, the required timing module may be generated by modifying other types of timing modules.
Furthermore, the operation identifier comprises operation task content corresponding to the operation task type, and the timing module creates a timing task component corresponding to the operation identifier according to the operation task content corresponding to the operation task type.
According to the embodiment, the timing module is stored in the distributed storage system, and the data synchronism is ensured while multi-party calling is carried out by utilizing the distributed principle, so that network accidents such as service downtime and the like caused by competition of the same data are avoided.
And step S106, sending the timing task component to the functional component.
Optionally, the operation identifier includes a unique identification code of the functional component, and sending the timed task component to the functional component includes: and sending the timed task component to the functional component according to the unique identification code. In this embodiment, after the timed task component is created, the requirement of which functional component the timed task request is can be identified according to the unique identification code in the operation identifier, and after the functional component is determined, the timed task component is sent to the functional component.
According to the timed task management method provided by the embodiment, the timed task management platform creates a unique timed task component for each functional component according to at least one timed task request sent by at least one functional component and an operation identifier corresponding to each timed task request, so that efficient scheduling of the timed tasks and centralized management of the timed tasks can be realized, and the problems of service overlapping or service conflict and the like easily caused when a large number of timed tasks exist are avoided, thereby solving the problems of low timed task management efficiency and easy service overlapping or service conflict caused in the related art, and further improving the performance of the server.
Based on the timing task management method provided in the foregoing embodiments, based on the same inventive concept, the present embodiment further provides a timing task management system, which is used to implement the foregoing embodiments and preferred embodiments, and which has already been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 2 is a block diagram of a timing task management system according to an embodiment of the present invention, as shown in fig. 2, the system includes at least one functional component 10, a timing task management platform 20 and a distributed storage subsystem 30, wherein,
at least one functional component 10, configured to send at least one timed task request to the timed task management platform; each timing task request carries a unique operation identifier;
the functional component 10 in this embodiment may be a program system, such as a program system corresponding to various functions, for example, a data reporting system, a data processing system, a data storage system, and a data analysis system; the operation identifier in this embodiment may create a unique timed task component for the functional component 10.
The timed task management platform 20 includes: a receiving module, configured to receive a timing task request sent by the functional component 10; the creating module is used for creating a timing task component according to the timing task request and the operation identifier carried by the timing task request; a sending module, configured to send the timed task component to the functional component 10;
the timed task management platform 20 in this embodiment may be implemented by multiple programming languages, and may be used to invoke the timing module and perform various operations such as creation, deletion, modification, query, and the like by using the timing module, thereby generating a unique timed task component as a functional component.
The distributed storage subsystem 30 is associated with the timed task management platform 20, is used for storing the timed module, and sends the timed module to the timed task management platform 20 after receiving the timed task request; the timing module is used for creating a timing task component.
Preferably, the distributed nature can employ micro-services and nginx for high availability and load balancing, primarily for the distribution of services.
By using the timing task management system, distributed central control management is performed on the timing module, all programs can perform management such as creation and calling on the timing module, and generate a timing component, so that the transparency and consistency of the timing module are realized, the problems of service overlapping and conflict are reduced, and the performance of a server can be improved.
The invention is further illustrated below with reference to a specific embodiment:
a conventional timing module is programmed in a program in a single independent manner, and becomes effective with the start of the program and only exists in a specific program, fig. 3 is a flowchart of the conventional timing module provided according to an embodiment of the present invention, as shown in fig. 3, each program system (i.e., a data reporting system, a data processing system, a data storage system, etc.) has its own timing module (corresponding to the timing module 1, the timing module 2, the timing module 3, etc. in fig. 3, respectively), but the timing modules between each program cannot be shared, which directly causes data competition and causes low server performance, for example, a plurality of timing modules modify the same data.
Based on the method for managing the timing task provided by the embodiment of the present invention, the method is applied to a distributed timing scheduling system (i.e., the timing task management platform 20), as shown in fig. 4, fig. 4 is a flowchart of a timing module scheduling system provided according to an embodiment of the present invention, as shown in fig. 4, a timing module is extracted from a program monomer, and the program monomer is used as a microsystem, and exists in an independent server (i.e., the distributed storage subsystem 30) to provide a scheduling service for a program (i.e., the functional component) having a timing requirement; meanwhile, by utilizing a distributed principle, the data synchronism is ensured while the data are called by multiple parties, and network accidents such as service downtime and the like caused by competition of the same data are avoided.
The timing module scheduling system (i.e., the timing task management platform 20) is equivalent to a management platform and provides a basic template of the timing module, and each program system can carry a corresponding operation identifier to perform operations such as creation, modification, deletion and the like on the timing module through the timing module scheduling system.
Fig. 5 is a flowchart illustrating a single module scheduling process according to an embodiment of the present invention, wherein,
a program system (namely a data reporting system) carries operation identifiers (identifiers such as inquiry, creation, modification, deletion and the like) and initiates a request (namely the timing task request) to a timing module scheduling system;
the timing module scheduling system receives the identification and the request of the program, analyzes the program and sends the timing module scheduling system to a distributed storage subsystem 30 in the scheduling system;
the distributed storage subsystem 30 stores the created timing module, and after receiving the data request, the distributed storage subsystem returns the requested timing module to the given-time task management platform 20;
while the program retrieves the timing module from the timing module scheduler system, the scheduler system assigns a key (i.e., the above-mentioned timing task component) to the program for matching the unique timing component.
The above is the process of acquiring the timing component from the timing module scheduling system by the program; and similarly, the method also comprises the operations of creating, modifying, deleting and the like. When a program requests to add a timing module, the created identifier is carried, a timing template is filled in a timing module scheduling system, and a timing task component (a generated key) is generated by the timing module scheduling system and stored in the distributed storage subsystem 30; the generated timed task component is unique to the program, but the timed module is sharable, that is, when other programs request the timed module with the same operation task type, whether the timed module exists or not is firstly inquired from the timed module scheduling system, and if the timed module exists, the timed module is used for creating the unique timed task component (generating a key); if not, a timing module is newly established and a unique timing task component (a key is generated) is formulated; and carrying a unique key by the program in the modifying and deleting operations, and modifying and deleting the respective timing components.
The distributed scheduling management of the program is realized through the universality of the modules and the uniqueness of the secret key, the action can be identified, the distributed timing scheduling system not only carries out unified management on the timing modules, but also avoids the problems of data occupation and the like, and the program operation efficiency and the server performance are improved.
Based on the timing task management method provided in the foregoing embodiments, based on the same inventive concept, the present embodiment further provides a timing task management apparatus, which is used to implement the foregoing embodiments and preferred embodiments, and which has already been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a timed task management apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: a receiving module 60, configured to receive at least one scheduled task request sent by at least one functional component; each timing task request carries a unique operation identifier; a creating module 62, connected to the receiving module 60, for creating a timed task component according to the timed task request and the operation identifier carried by the timed task request; a sending module 64 connected to the creating module 62 for sending the timed task component to the functional component.
Optionally, the creating module 62 includes: the analysis unit is used for analyzing the operation task type corresponding to the timing task based on the operation identification; the acquisition unit is used for acquiring a timing module corresponding to the operation task type; and the creating unit is used for creating the timing task component corresponding to the operation identifier through the timing module.
Optionally, at least one timing module is stored in the distributed storage system, and the obtaining unit includes: the judging subunit is used for judging whether a timing module corresponding to the operation task type exists in the distributed storage system; the acquisition subunit is used for requesting the timing module by sending the timing task request to the distributed storage system when the timing module corresponding to the operation task type exists in the distributed storage system; otherwise, sending a timing task request and an operation identifier to the distributed storage system to request the distributed storage system to create a timing module.
Optionally, the operation identifier includes operation task content corresponding to the operation task type, and the creating unit is configured to: and according to the operation task content corresponding to the operation task type, a timing task component corresponding to the operation identifier is created by the timing module.
Optionally, the operation task type includes at least one of the following: inquiring the task type, modifying the task type, creating the task type and deleting the task type.
Optionally, the operation identifier includes a unique identifier of the functional component, and the sending module 64 includes: and the sending unit is used for sending the timing task component to the functional component according to the unique identification code.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving at least one timed task request sent by at least one functional component; each timing task request carries a unique operation identifier;
s2, creating a timing task component according to the timing task request and the operation identifier carried by the timing task request;
and S3, sending the timing task component to the functional component.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Based on the above embodiments of the method shown in fig. 1 and the apparatus shown in fig. 6, in order to achieve the above object, an embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a memory 72 and a processor 71, where the memory 72 and the processor 71 are both disposed on a bus 73, the memory 72 stores a computer program, and the processor 71 implements the timed task management method shown in fig. 1 when executing the computer program.
Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a memory (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present invention.
Optionally, the device may also be connected to a user interface, a network interface, a camera, Radio Frequency (RF) circuitry, sensors, audio circuitry, a WI-FI module, and so forth. The user interface may include a Display screen (Display), an input unit such as a keypad (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., a bluetooth interface, WI-FI interface), etc.
It will be understood by those skilled in the art that the structure of an electronic device provided in the present embodiment does not constitute a limitation of the physical device, and may include more or less components, or some components in combination, or a different arrangement of components.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A timed task management method is applied to a timed task management platform and comprises the following steps:
receiving at least one timed task request sent by at least one functional component; each timing task request carries a unique operation identifier;
establishing a timing task component according to the timing task request and an operation identifier carried by the timing task request;
and sending the timing task component to the functional component.
2. The method of claim 1, wherein the creating a timed task component according to the timed task request and the operation identifier carried by the timed task request comprises:
analyzing an operation task type corresponding to the timing task based on the operation identification;
acquiring a timing module corresponding to the operation task type;
and creating a timing task component corresponding to the operation identifier through the timing module.
3. The method of claim 2, wherein at least one timing module is stored in the distributed storage system, and wherein obtaining the timing module corresponding to the operation task type comprises:
judging whether a timing module corresponding to the operation task type exists in the distributed storage system or not;
if a timing module corresponding to the operation task type exists in the distributed storage system, requesting the timing module by sending the timing task request to the distributed storage system; otherwise, the timing task request and the operation identifier are sent to the distributed storage system to request the distributed storage system to create the timing module.
4. The method of claim 2, wherein the operation identifier comprises operation task content corresponding to the operation task type, and wherein creating, by the timing module, a timing task component corresponding to the operation identifier comprises:
and according to the operation task content corresponding to the operation task type, creating a timing task component corresponding to the operation identifier by the timing module.
5. The method according to any of claims 2-4, wherein the operational task type includes at least one of: inquiring the task type, modifying the task type, creating the task type and deleting the task type.
6. The method of claim 1, wherein the operational identification comprises a unique identification code of the functional component, and wherein sending the timed task component to the functional component comprises:
and sending the timed task component to the functional component according to the unique identification code.
7. A timing task management device is applied to a timing task management platform, and comprises the following components:
the receiving module is used for receiving at least one timed task request sent by at least one functional component; each timing task request carries a unique operation identifier;
the creating module is used for creating a timing task component according to the timing task request and the operation identifier carried by the timing task request;
and the sending module is used for sending the timing task component to the functional component.
8. A timed task management system is characterized in that the system comprises at least one functional component, a timed task management platform and a distributed storage subsystem, wherein,
the at least one functional component is used for sending at least one timed task request to the timed task management platform; each timing task request carries a unique operation identifier;
the timing task management platform comprises: the receiving module is used for receiving the timing task request sent by the functional component; the creating module is used for creating a timing task component according to the timing task request and the operation identifier carried by the timing task request; the sending module is used for sending the timing task component to the functional component;
the distributed storage subsystem is associated with the timed task management platform, is used for storing a timed module and sending the timed module to the timed task management platform after receiving the timed task request; wherein the timing module is configured to create the timed task component.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method of any one of claims 1 to 6.
CN202111488791.3A 2021-12-07 2021-12-07 Timed task management method, device, system, electronic equipment and storage medium Pending CN114201279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111488791.3A CN114201279A (en) 2021-12-07 2021-12-07 Timed task management method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111488791.3A CN114201279A (en) 2021-12-07 2021-12-07 Timed task management method, device, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114201279A true CN114201279A (en) 2022-03-18

Family

ID=80651161

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111488791.3A Pending CN114201279A (en) 2021-12-07 2021-12-07 Timed task management method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114201279A (en)

Similar Documents

Publication Publication Date Title
US20200328984A1 (en) Method and apparatus for allocating resource
CN107515878B (en) Data index management method and device
CN109388626B (en) Method and apparatus for assigning numbers to services
CN109829287A (en) Api interface permission access method, equipment, storage medium and device
CN109992406A (en) The method and client that picture requesting method, response picture are requested
CN114610499A (en) Task scheduling method and device, computer readable storage medium and electronic equipment
CN111784318A (en) Data processing method and device, electronic equipment and storage medium
CN108564345B (en) Insurance platform data processing method, electronic device and computer readable storage medium
CN109587997A (en) Method, electronic equipment and the computer readable storage medium of distribution server position
CN108520401B (en) User list management method, device, platform and storage medium
CN111988429A (en) Algorithm scheduling method and system
CN1783121A (en) Method and system for executing design automation
CN110287070B (en) ESB special protocol interface test method, server and computer readable storage medium
CN111291045A (en) Service isolation data transmission method and device, computer equipment and storage medium
CN114201279A (en) Timed task management method, device, system, electronic equipment and storage medium
CN116028696A (en) Resource information acquisition method and device, electronic equipment and storage medium
CN114675954A (en) Task scheduling method and device
CN114661523A (en) Data backup method, device, program product, medium and electronic equipment
CN114924783A (en) Interface calling method, device, equipment and storage medium of application program
US8904369B2 (en) Method and system for automated process distribution
CN114301970A (en) Service calling method and device, electronic equipment and storage medium
CN113296913A (en) Data processing method, device and equipment based on single cluster and storage medium
CN112073554A (en) Global unique identifier generation method, device and computer readable storage medium
CN116861455B (en) Event data processing method, system, electronic device and storage medium
CN112559001A (en) Method and device for updating application

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