CN112527478B - Method and system for realizing automatic registration and asynchronous scheduling of tasks based on distribution - Google Patents

Method and system for realizing automatic registration and asynchronous scheduling of tasks based on distribution Download PDF

Info

Publication number
CN112527478B
CN112527478B CN202011373610.8A CN202011373610A CN112527478B CN 112527478 B CN112527478 B CN 112527478B CN 202011373610 A CN202011373610 A CN 202011373610A CN 112527478 B CN112527478 B CN 112527478B
Authority
CN
China
Prior art keywords
task
execution
trigger
item
managers
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.)
Active
Application number
CN202011373610.8A
Other languages
Chinese (zh)
Other versions
CN112527478A (en
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.)
Chengdu Zhongke Daqi Software Co ltd
Original Assignee
Chengdu Zhongke Daqi Software 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 Chengdu Zhongke Daqi Software Co ltd filed Critical Chengdu Zhongke Daqi Software Co ltd
Priority to CN202011373610.8A priority Critical patent/CN112527478B/en
Publication of CN112527478A publication Critical patent/CN112527478A/en
Application granted granted Critical
Publication of CN112527478B publication Critical patent/CN112527478B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multi Processors (AREA)

Abstract

The invention relates to a method and a system for realizing automatic registration and asynchronous scheduling of tasks based on a distributed mode, which adopt the idea of distributed design, and a trigger module, an execution element and a task manager are distributed on a plurality of different devices or platforms, and each trigger module and each task manager can communicate with each other and are used for uploading whether the task reaches preset execution conditions or not to the task manager; the task managers and the execution elements can communicate with each other, and are used for issuing control instructions to the execution elements, so that the final execution result is not affected even if one of the devices or the platform is damaged, and the reliability of task execution is improved.

Description

Method and system for realizing automatic registration and asynchronous scheduling of tasks based on distribution
Technical Field
The invention relates to task management, in particular to a method and a system for realizing automatic task registration and asynchronous scheduling based on distribution.
Background
In a task system, generally, at least one trigger module, an execution element and a task manager are included, where the task manager is configured to set a condition of a task, and the trigger module is configured to detect whether the condition is met, and once the condition is met, is configured to trigger the execution element to perform a corresponding action. In general, these three modules are usually located on one device, such as a mobile phone, an alarm clock, a computer, etc. which are commonly used by us, if a corresponding reminding task or a memo is set, the task is executed or not by the device, and if the task is executed, the task is executed or not by the device, or if the hardware device or the platform is able to work or run normally, for example, if the device is damaged, the device is powered off, or the platform server crashes, it is obvious that even if the triggering condition is reached, the executing element still cannot execute the corresponding action.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method and a system for realizing automatic registration and asynchronous scheduling of tasks based on a distributed mode.
The aim of the invention is realized by the following technical scheme:
a method for realizing automatic registration and asynchronous scheduling of tasks based on a distributed mode comprises two parts, namely automatic registration and asynchronous scheduling of tasks;
firstly, arranging a plurality of trigger modules, execution elements and task managers in a distributed structure;
the task automatic registration includes:
11 The user side initiates task setting and generates corresponding task items;
12 Any task manager receives the task item, then identifies the task item, judges whether the task item is newly added, automatically registers the task item as an effective task item if the task item is newly added, and automatically distributes the task item to a corresponding executive component;
13 Synchronizing the registered task items to all task managers;
14 Automatic cancellation of task item after completion of task execution
The asynchronous scheduling includes:
21 Each trigger module judges whether the execution condition of the task item arrives in real time, and when any trigger module judges that the execution condition of the item arrives, an execution instruction is sent to all execution elements;
22 When any one of the execution elements executes the corresponding instruction, the other execution elements stop executing the instruction.
Further, when the task items are multiple, each trigger module, each executing element and each task manager have corresponding permission to process the task items.
Further, in general, each trigger module, execution element and task manager divide each task item equally, where dividing equally refers to dividing each task item equally by at least two or more trigger modules, execution elements and task managers in all trigger modules, execution elements and task managers, that is, ensuring that each task item at least corresponds to two or more trigger modules, execution elements and task managers.
Further, the trigger modules, the execution elements and the task manager are arranged in different platforms or servers and are not mutually influenced.
Further, any task manager can receive the trigger instructions uploaded by all the trigger modules and has authority to send execution instructions to all the execution elements;
each trigger module may upload trigger instructions to all task managers.
Further, the trigger module, the executing element and the task manager are arranged on different devices or platforms by adopting a distributed structure;
each trigger module is arranged on different equipment or platforms, each execution element is arranged on different equipment or platforms, and each task manager is arranged on different equipment or platforms.
A system for implementing a method for implementing automatic registration and asynchronous scheduling of tasks based on a distributed architecture, characterized in that the system comprises a plurality of trigger modules, execution elements and task managers arranged in a distributed architecture;
the trigger modules and the task managers can be communicated with each other and are used for uploading whether the task reaches a preset execution condition or not to the task manager;
the task managers and the execution elements can communicate with each other and are used for issuing control instructions to the execution elements.
The beneficial effects of the invention are as follows: the scheme adopts a distributed structure to deploy a plurality of trigger modules, executing elements and task managers, so that the triggering, executing and managing of the tasks can be completed on a plurality of different platforms or devices, and the final executing result is not influenced even if one device is damaged, thereby ensuring the reliability of the tasks.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention.
Detailed Description
The technical scheme of the present invention is described in further detail below with reference to specific embodiments, but the scope of the present invention is not limited to the following description.
A method for realizing automatic registration and asynchronous scheduling of tasks based on a distributed mode comprises two parts, namely automatic registration and asynchronous scheduling of tasks;
firstly, arranging a plurality of trigger modules, execution elements and task managers in a distributed structure;
the automatic registration of tasks includes:
11 The user side initiates task setting and generates corresponding task items;
12 Any task manager receives the task item, then identifies the task item, judges whether the task item is newly added, automatically registers the task item as an effective task item if the task item is newly added, and automatically distributes the task item to a corresponding executive component;
13 Synchronizing the registered task items to all task managers;
14 Automatic cancellation of task item after completion of task execution
Asynchronous scheduling includes:
21 Each trigger module judges whether the execution condition of the task item arrives in real time, and when any trigger module judges that the execution condition of the item arrives, an execution instruction is sent to all execution elements;
22 When any one of the execution elements executes the corresponding instruction, the other execution elements stop executing the instruction.
Optionally, in the method for realizing automatic task registration and asynchronous scheduling based on the distributed mode, when the task items are multiple, each trigger module, each executing element and each task manager have corresponding authority to process the task items.
Optionally, in a method for implementing automatic task registration and asynchronous scheduling based on a distributed manner, in general, each trigger module, execution element and task manager divide each task item equally, where the average division refers to that at least two or more trigger modules, execution elements and task managers in all trigger modules, execution elements and task managers divide each task item equally, that is, each task item is guaranteed to at least correspond to at least two or more trigger modules, execution elements and task managers.
Optionally, in the method for realizing automatic task registration and asynchronous scheduling based on distributed mode, each trigger module, each execution element and each task manager are arranged in different platforms or servers and are not mutually influenced.
Optionally, in the method for realizing automatic task registration and asynchronous scheduling based on the distributed mode, any task manager can receive the trigger instructions uploaded by all the trigger modules and has authority to send execution instructions to all the execution elements;
each trigger module may upload trigger instructions to all task managers.
Optionally, a method for realizing automatic registration and asynchronous scheduling of tasks based on a distributed mode is provided, wherein the trigger module, the execution element and the task manager are arranged on different devices or platforms by adopting a distributed structure;
each trigger module is arranged on different equipment or platforms, each execution element is arranged on different equipment or platforms, and each task manager is arranged on different equipment or platforms.
Referring to fig. 1, a system for implementing a method for implementing automatic registration and asynchronous scheduling of tasks based on a distributed implementation is characterized in that the system includes a plurality of trigger modules, execution elements and task managers arranged in a distributed structure;
the trigger modules and the task managers can be communicated with each other and are used for uploading whether the task reaches a preset execution condition or not to the task manager;
the task managers and the execution elements can communicate with each other and are used for issuing control instructions to the execution elements.
The foregoing is merely a preferred embodiment of the invention, and it is to be understood that the invention is not limited to the form disclosed herein but is not to be construed as excluding other embodiments, but is capable of numerous other combinations, modifications and environments and is capable of modifications within the scope of the inventive concept, either as taught or as a matter of routine skill or knowledge in the relevant art. And that modifications and variations which do not depart from the spirit and scope of the invention are intended to be within the scope of the appended claims.

Claims (5)

1. A method for realizing automatic registration and asynchronous scheduling of tasks based on a distributed mode is characterized by comprising two parts, namely automatic registration and asynchronous scheduling of tasks;
firstly, arranging a plurality of trigger modules, execution elements and task managers in a distributed structure;
the task automatic registration includes:
11 The user side initiates task setting and generates corresponding task items;
12 Any task manager receives the task item, then identifies the task item, judges whether the task item is newly added, automatically registers the task item as an effective task item if the task item is newly added, and automatically distributes the task item to a corresponding executive component;
13 Synchronizing the registered task items to all task managers;
14 Automatically logging out the task item after the task is executed;
the asynchronous scheduling includes:
21 Each trigger module judges whether the execution condition of the task item arrives in real time, and when any trigger module judges that the execution condition of the item arrives, an execution instruction is sent to all execution elements;
22 After any executive component executes the corresponding instruction, the other executive components stop executing the instruction;
the trigger modules, the executing elements and the task manager are arranged in different platforms or servers and are not mutually influenced;
the trigger module, the execution element and the task manager are arranged on different devices or platforms by adopting a distributed structure; each trigger module is arranged on different equipment or platforms, each execution element is arranged on different equipment or platforms, and each task manager is arranged on different equipment or platforms.
2. The method for automatically registering and asynchronously scheduling tasks based on a distributed manner according to claim 1, wherein when the task items are plural, each trigger module, each execution element and each task manager have a corresponding authority to process them.
3. The method for automatically registering and asynchronously scheduling tasks based on a distributed manner according to claim 2, wherein each trigger module, each execution element and each task manager are equally divided into each task item, wherein equal division means that at least two or more trigger modules, execution elements and task managers among all trigger modules, execution elements and task managers are equally divided into each task item, i.e. each task item is guaranteed to correspond to at least two or more trigger modules, execution elements and task managers.
4. The method for automatically registering and asynchronously scheduling tasks based on the distributed mode according to claim 3, wherein any of the task managers can receive the trigger instructions uploaded by all the trigger modules and has authority to send execution instructions to all the execution elements;
each trigger module may upload trigger instructions to all task managers.
5. A system for implementing the method for implementing automatic registration and asynchronous scheduling of tasks based on a distributed architecture according to any of claims 1-4, characterized in that it comprises a plurality of trigger modules, execution elements and task manager arranged in a distributed architecture;
the trigger modules are communicated with the task managers and are used for uploading whether the task reaches a preset execution condition or not to the task manager;
the task managers and the execution elements can communicate with each other and are used for issuing control instructions to the execution elements.
CN202011373610.8A 2020-11-30 2020-11-30 Method and system for realizing automatic registration and asynchronous scheduling of tasks based on distribution Active CN112527478B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011373610.8A CN112527478B (en) 2020-11-30 2020-11-30 Method and system for realizing automatic registration and asynchronous scheduling of tasks based on distribution

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011373610.8A CN112527478B (en) 2020-11-30 2020-11-30 Method and system for realizing automatic registration and asynchronous scheduling of tasks based on distribution

Publications (2)

Publication Number Publication Date
CN112527478A CN112527478A (en) 2021-03-19
CN112527478B true CN112527478B (en) 2023-11-07

Family

ID=74995111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011373610.8A Active CN112527478B (en) 2020-11-30 2020-11-30 Method and system for realizing automatic registration and asynchronous scheduling of tasks based on distribution

Country Status (1)

Country Link
CN (1) CN112527478B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010191536A (en) * 2009-02-16 2010-09-02 Autonetworks Technologies Ltd Apparatus, method and system for processing information
CN110490416A (en) * 2019-07-16 2019-11-22 平安科技(深圳)有限公司 Task management method and terminal device
CN110533358A (en) * 2019-07-17 2019-12-03 天津五八到家科技有限公司 Transport task distribution method, device and electronic equipment
CN111338808A (en) * 2020-05-22 2020-06-26 支付宝(杭州)信息技术有限公司 Collaborative computing method and system
CN111414246A (en) * 2020-04-01 2020-07-14 中国人民解放军国防科技大学 Cross-secure-world real-time function calling method and device on computing platform with TEE extension
CN111459639A (en) * 2020-04-03 2020-07-28 杭州趣维科技有限公司 Distributed task management platform and method supporting global multi-machine-room deployment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160103708A1 (en) * 2014-10-09 2016-04-14 Profoundis Labs Pvt Ltd System and method for task execution in data processing
US9462427B2 (en) * 2015-01-14 2016-10-04 Kodiak Networks, Inc. System and method for elastic scaling using a container-based platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010191536A (en) * 2009-02-16 2010-09-02 Autonetworks Technologies Ltd Apparatus, method and system for processing information
CN110490416A (en) * 2019-07-16 2019-11-22 平安科技(深圳)有限公司 Task management method and terminal device
CN110533358A (en) * 2019-07-17 2019-12-03 天津五八到家科技有限公司 Transport task distribution method, device and electronic equipment
CN111414246A (en) * 2020-04-01 2020-07-14 中国人民解放军国防科技大学 Cross-secure-world real-time function calling method and device on computing platform with TEE extension
CN111459639A (en) * 2020-04-03 2020-07-28 杭州趣维科技有限公司 Distributed task management platform and method supporting global multi-machine-room deployment
CN111338808A (en) * 2020-05-22 2020-06-26 支付宝(杭州)信息技术有限公司 Collaborative computing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"A survey on recent advances in distributed sampled-data cooperative control of multi-agent systems";Xiaohua Ge;《Neurocomputing》;第275卷;第1684-1701页 *
"某电子公司软件项目管理信息系统设计与实现";蔡一超;《中国优秀硕士学位论文全文数据库 信息科技辑》(2019年第03期);第I138-398页 *

Also Published As

Publication number Publication date
CN112527478A (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN110457197B (en) Service testing method, device, computer equipment and storage medium
CN113569987A (en) Model training method and device
CN109048996B (en) Robot abnormal state processing method and device
CN111459763B (en) Cross-kubernetes cluster monitoring system and method
CN109862101B (en) Cross-platform application starting method and device, computer equipment and storage medium
Chen et al. Reliability analysis of a retrial machine repair problem with warm standbys and a single server with N-policy
CN111526049B (en) Operation and maintenance system, operation and maintenance method, electronic device and storage medium
RU2010128545A (en) MOBILE MANAGEMENT PLANNING
CN104601668B (en) Data push method, device and system based on condition managing
CN104657150A (en) Automatic operation and maintenance method in cluster environment
CN108268305A (en) For the system and method for virtual machine scalable appearance automatically
CN112506624A (en) Timing task scheduling system, method and corresponding computer equipment and storage medium
CN112527478B (en) Method and system for realizing automatic registration and asynchronous scheduling of tasks based on distribution
CN106094738B (en) For running the method and automation equipment of automation equipment
EP2784676A1 (en) DIMA extension health monitor supervisor
US20230123350A1 (en) Containerized workload management in container computing environment
CN105849699B (en) Method for controlling data center architecture equipment
US10761520B1 (en) Cluster-based work cell orchestrator
Alonso et al. Safety Concept for a Mixed Criticality On-Board Software System∗
CN110362362A (en) Method for scheduling task and device, storage medium, electronic device
CN108154343B (en) Emergency processing method and system for enterprise-level information system
Yadav et al. Generalized reliability model for cloud computing
JP5387083B2 (en) Job management system and method
US20180011734A1 (en) Job scheduler test program, job scheduler test method, and information processing apparatus
CN103326897A (en) Distributed computing environment general monitoring device and failure detection method

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
GR01 Patent grant
GR01 Patent grant