Task scheduling method and system
A technology of task scheduling and tasks, which is applied in the field of task scheduling and systems, can solve problems such as inability to guarantee high reliability and scalability, and achieve the effect of guaranteeing execution effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] figure 2 A flowchart of the method according to Embodiment 1 of the present application is schematically shown. It can be understood that this method embodiment can be executed in the mobile terminal 11, and the flowchart of this method embodiment is not used to limit the sequence of execution steps.
[0048] Such as figure 2 As shown, the task scheduling method may include steps S200-S208, wherein:
[0049] Step S200, start the target process and register the target process in the server.
[0050] example, such as image 3 As shown, step S200 includes S300-S302. Wherein, step S300, start the target process; step S302, if start the target process successfully, register the target process with the server according to the registration name of the target process, the registration name includes: host name and process number. Specifically, the mobile terminal 11 starts successfully, registers the node to zookeeper 12, and the registration name needs to be globally un...
Embodiment 2
[0071] Figure 7 A flowchart of task scheduling according to Embodiment 2 of the present application is schematically shown. It can be understood that the flowchart in this method embodiment is not used to limit the sequence of execution steps. The following takes worker11 as the execution subject for an exemplary description.
[0072] Among them, such as Figure 7 As shown, the screen projection method may include steps S700-S728, wherein:
[0073] Step S700, the worker starts and registers the node with zookeeper;
[0074] Step S702, judging whether the registration of zookeeper is successful;
[0075] Step S704, if zookeeper fails to register successfully, exit;
[0076] Step S706, if the zookeeper registration is successful, execute the task in this period;
[0077] Step S708, obtaining a full list of workers and sorting them by name;
[0078] Step S710, obtaining the task list and sorting it according to the ID;
[0079] Step S712, calculate the task list that nee...
Embodiment 3
[0103] Figure 8 Schematically shows a block diagram of a task scheduling system according to Embodiment 3 of the present application, the task scheduling system can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are composed of Executed by one or more processors to complete the embodiments of the present application. The program modules referred to in the embodiments of this application refer to a series of computer program instruction segments capable of accomplishing specific functions. The following description will specifically introduce the functions of each program module in this embodiment.
[0104] Such as Figure 8 As shown, the task scheduling apparatus 800 may include a registration module 800 , a first acquisition module 802 , a second acquisition module 804 , an allocation module 806 , and an execution module 808 . in,
[0105] A registration module 800, configured to start a target process and regi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap