TW201604787A - Task scheduling system capable of being dynamically adjusted and scheduling method therefor - Google Patents
Task scheduling system capable of being dynamically adjusted and scheduling method therefor Download PDFInfo
- Publication number
- TW201604787A TW201604787A TW104122553A TW104122553A TW201604787A TW 201604787 A TW201604787 A TW 201604787A TW 104122553 A TW104122553 A TW 104122553A TW 104122553 A TW104122553 A TW 104122553A TW 201604787 A TW201604787 A TW 201604787A
- Authority
- TW
- Taiwan
- Prior art keywords
- task scheduling
- business
- task
- scheduling
- plan
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
本發明涉及電腦應用領域,具體涉及一種任務調度系統以及任務調度方法。 The present invention relates to the field of computer applications, and in particular, to a task scheduling system and a task scheduling method.
傳統電腦應用業務系統的業務任務自動調度是在應用設計階段預定義業務任務執行的時間規則,在實現時通過定時調度元件按照預定義的時間規則進行調度。採用這種方式的應用系統有如下缺點:業務系統部署後,業務任務調度計畫不能動態調整;多個業務系統之間的業務任務存在依賴時,不同業務系統之間需要進行交互獲取相關資訊,增加了業務系統間的耦合性;每個業務系統都有各自的業務任務調度邏輯以及業務任務調度日誌資訊,很難提供統一的業務任務調度管理;業務系統同時包含調度邏輯和應用業務邏輯,耦合性強,擴展性差。 The automatic scheduling of business tasks of the traditional computer application business system is a time rule for pre-define the execution of the business tasks in the application design phase, and is scheduled by the scheduled scheduling component according to the predefined time rules. The application system adopting this method has the following disadvantages: after the service system is deployed, the business task scheduling plan cannot be dynamically adjusted; when the business tasks between multiple service systems are dependent, different business systems need to exchange relevant information. The coupling between business systems is increased; each business system has its own business task scheduling logic and business task scheduling log information, which is difficult to provide unified business task scheduling management; the business system contains scheduling logic and application business logic, coupling Strong and poorly expandable.
鑒於上述問題,本發明旨在提供一種能夠支持業務任務調度計畫的動態調整的任務調度系統以及任務調度方法。 In view of the above problems, the present invention is directed to a task scheduling system and a task scheduling method capable of supporting dynamic adjustment of a business task scheduling plan.
進一步,本發明旨在提供一種能夠支援不同應用系統之間的業務任務存在關聯並且能夠降低業務系統間的耦合性並能夠提高業務系統任務調度的擴展性的任務調度系統以及任務調度方法。 Further, the present invention is directed to a task scheduling system and a task scheduling method capable of supporting association of business tasks between different application systems and capable of reducing coupling between business systems and improving scalability of business system task scheduling.
本發明的任務調度系統,用於在多個業務系統之間進行業務任務調度,其特徵在於,具備:業務任務管理模組,用於對業務系統資料模型、業務任務資料模型、業務任務關聯資料模型進行管理;業務任務調度計畫管理模組,用於對業務任務調度計畫資料模型進行管理,並且在業務任務調度計畫改變時觸發下述的業務任務調度規劃模組重新進行規劃;以及業務任務調度規劃模組,用於根據業務任務調度計畫規劃規定時間內的任務調度,並且在業務任務調度計畫改變時重新進行規劃;業務任務調度執行模組,用於週期性實例化業務任務調度。 The task scheduling system of the present invention is configured to perform business task scheduling among a plurality of business systems, and is characterized in that: a business task management module is used for a business system data model, a business task data model, and a business task related data. The model is managed; the business task scheduling plan management module is configured to manage the business task scheduling plan data model, and triggers the following business task scheduling planning module to re-plan when the business task scheduling plan changes; The service task scheduling planning module is configured to schedule a task according to a business task scheduling plan within a specified time period, and re-plan when the business task scheduling plan changes; the business task scheduling execution module is used to periodically instantiate the service. Task scheduling.
優選地,所述業務任務規劃模組用於產生和管理與業務任務調度日誌資料模型對應的資料。 Preferably, the business task planning module is configured to generate and manage data corresponding to the business task scheduling log data model.
優選地,所述業務任務調度執行模組用於執行與業務任務調度日誌資料模型對應的任務並且用於更新業務任務調度日誌的狀態。 Preferably, the service task scheduling execution module is configured to execute a task corresponding to the business task scheduling log data model and is used to update the status of the business task scheduling log.
優選地,所述業務任務調度規劃模組用於根據業務任務調度計畫規劃在規定時間內的任務調度並且將規劃後的資訊記錄在業務任務調度日誌中並且在業務任務調度計畫改變時重新進行規劃。 Preferably, the service task scheduling planning module is configured to schedule a task scheduled within a specified time according to the business task scheduling plan and record the planned information in the business task scheduling log and re-create the business task scheduling plan when the business task scheduling plan changes. Plan.
優選地,所述業務任務管理模組、所述業務任務調度計畫管理模組、所述業務任務調度規劃模組、所述業務任務調度執行模組相互之間通過更新資料模型中的資料進行通信。 Preferably, the business task management module, the business task scheduling plan management module, the business task scheduling planning module, and the business task scheduling execution module are mutually updated by updating data in a data model. Communication.
本發明的任務調度方法,其特徵在於,包括下述步驟:業務任務調度計畫步驟,對業務任務調度創建業務任務調度計畫;業務任務調度規劃步驟,根據業務任務調度計畫規劃規定時間內的業務任務調度,並且在業務任務調度計畫改變時重新進行規劃;業務任務調度執行步驟,週期性實例化業務任務調度。 The task scheduling method of the present invention is characterized in that it comprises the following steps: a business task scheduling step, a business task scheduling plan for business task scheduling, a business task scheduling step, and a planning time according to a business task scheduling plan. The business task scheduling, and re-planning when the business task scheduling plan changes; the business task scheduling execution step, periodically instantiating the business task scheduling.
優選地,在所述業務任務調度執行步驟中,在還未週期性實例化業務任務的情況下,在創建新任務調度日誌後,任務狀態為“未執行”時,運維人員能夠調整任務計畫執行時間。 Preferably, in the business task scheduling execution step, in the case that the business task has not been periodically instantiated, the operation and maintenance personnel can adjust the task meter when the task status is “not executed” after the new task scheduling log is created. Draw execution time.
優選地,在所述業務任務調度執行步驟中,任務調度執行後,任務狀態為“取消”、“錯誤”、“失敗”、“超時”的狀態下,通過運維人員強制任務成功, 能夠使得任務狀態為“強制成功”。 Preferably, in the business task scheduling execution step, after the task scheduling is executed, the task status is "cancel", "error", "failure", and "timeout", and the operation and maintenance personnel force the task to succeed. Can make the task status "forced success".
優選地,在所述業務任務調度執行步驟中,任務調度執行後,在任務狀態為“取消”、“錯誤”、“失敗”、“超時”的狀態下,通過運維人員重做任務或運維人員強制執行任務,能夠重新創建新任務調度日誌。 Preferably, in the business task scheduling execution step, after the task scheduling is executed, in the state that the task status is “cancel”, “error”, “failure”, “timeout”, the operation and maintenance personnel redo the task or The operation and maintenance personnel enforce the task and can recreate the new task schedule log.
根據本發明,相對於以往的業務任務調度方案而言具有以下顯著優點:能夠支援業務任務調度計畫的動態調整;能夠支援不同應用系統之間的業務任務存在關聯;能夠降低業務系統間的耦合性;能夠提高業務系統任務調度的擴展性。 According to the present invention, it has the following significant advantages over the conventional business task scheduling scheme: it can support the dynamic adjustment of the business task scheduling plan; can support the association of business tasks between different application systems; and can reduce the coupling between business systems. Sex; can improve the scalability of business system task scheduling.
1‧‧‧業務系統 1‧‧‧Business System
2‧‧‧伺服器 2‧‧‧Server
3‧‧‧網路 3‧‧‧Network
100‧‧‧調度系統 100‧‧‧ dispatching system
101‧‧‧業務任務管理模組 101‧‧‧Business Task Management Module
102‧‧‧業務任務調度計畫管理模組 102‧‧‧Business Task Scheduling Management Module
103‧‧‧業務任務調度規劃模組 103‧‧‧Business Task Scheduling Planning Module
104‧‧‧業務任務調度執行模組 104‧‧‧Business Task Scheduling Execution Module
圖1是表示調度系統和業務系統的關係的示意圖。 1 is a schematic diagram showing the relationship between a scheduling system and a service system.
圖2是表示本發明的調度系統的構造示意圖。 Fig. 2 is a block diagram showing the construction of the dispatching system of the present invention.
圖3是表示本發明的任務調度方法中運維人員通過修改任務調度日誌狀態對任務調度進行動態調整的過程。 FIG. 3 is a flowchart showing the process of dynamically adjusting task scheduling by the operation and maintenance personnel in the task scheduling method of the present invention by modifying the task scheduling log state.
下面介紹的是本發明的多個實施例中的一些,旨在提供對本發明的基本瞭解。並不旨在確認本發明的關鍵或決定性的要素或限定所要保護的範圍。 The following are some of the various embodiments of the invention, which are intended to provide a basic understanding of the invention. It is not intended to identify key or critical elements of the invention or the scope of the invention.
圖1是表示調度系統和業務系統的關係的示意圖。本發明的技術思想是,將業務任務調度的邏輯從業務系統1、業務系統2、業務系統3(這裏作為示例僅列舉了3個業務系統,而實際上對業務系統的數量不作限定)中剝離出來,由調度系統100進行統一管理。 1 is a schematic diagram showing the relationship between a scheduling system and a service system. The technical idea of the present invention is to strip the logic of the business task scheduling from the business system 1, the business system 2, and the business system 3 (here, only three business systems are enumerated as examples, but the number of business systems is not limited). Come out, unified management by the dispatching system 100.
業務系統1、業務系統2、業務系統3負責業務任務的具體執行,並提供服務供調度系統進行調用。調度系統100負責按照規則調用業務系統1、業務系統2、業務系統3提供的服務進行業務任務調度。通過在調度系統100中維護業務任務之間的關聯關係,從而消除了業務系統1、業務系統2、業務系統3之間因為任務調度產生的耦合性。 The business system 1, the business system 2, and the business system 3 are responsible for the specific execution of the business tasks, and provide services for the scheduling system to call. The scheduling system 100 is responsible for invoking the service provided by the business system 1, the business system 2, and the business system 3 according to the rules to perform business task scheduling. By maintaining the association relationship between the business tasks in the scheduling system 100, the coupling between the business system 1, the business system 2, and the business system 3 due to task scheduling is eliminated.
在本發明中,調度系統100如下所述主要包括5個資料模型:業務系統,業務任務,業務任務關聯,業務任務調度計畫,和業務任務調度日誌。 In the present invention, the scheduling system 100 mainly includes five data models as follows: a business system, a business task, a business task association, a business task scheduling plan, and a business task scheduling log.
(1)業務系統資料模型 (1) Business system data model
需要使用調度系統進行調度的業務系統。關鍵字段有系統ID、業務系統介面服務位址。調度系統通過業務系統介面的服務位址向業務系統發送調用請求。 A business system that needs to be scheduled using a scheduling system. The key field has a system ID and a service system interface service address. The scheduling system sends a call request to the service system through the service address of the service system interface.
(2)業務任務資料模型 (2) Business task data model
需要調度的業務任務。關鍵字段有業務任務ID、系統ID。業務任務ID可以唯一標識業務任務。 Business tasks that need to be scheduled. The key field has a business task ID and a system ID. The business task ID can uniquely identify the business task.
(3)業務任務關聯資料模型 (3) Business task related data model
定義業務任務之間的關聯關係,如依賴,互斥,成功後立即執行,異常後立即執行等。關鍵字段有業務任務ID、關聯業務任務ID、關聯類型。 Define the relationship between business tasks, such as dependencies, mutual exclusions, immediate execution after success, and immediate execution after an exception. The key field has a business task ID, an associated business task ID, and an association type.
(4)業務任務調度計畫資料模型 (4) Business task scheduling project data model
定義業務任務的週期調度計畫。可以為同一業務任務定義多條調度計畫,業務任務調度計畫可以被刪除和修改。 Define a periodic scheduling plan for business tasks. Multiple scheduling items can be defined for the same business task, and the business task scheduling plan can be deleted and modified.
1關鍵字段 1 key field
n系統ID:用於標識系統的ID。 n System ID: The ID used to identify the system.
n業務任務ID:用於標識業務任務的ID。 n Service task ID: ID used to identify the business task.
n計畫執行時間:計畫執行的具體時間,例如21:00:00。 n Project execution time: The specific time the project is executed, for example, 21:00:00.
n計畫執行間隔:計畫執行的間隔,例如每幾小時,每幾天每幾周,每幾季度等。 n Plan execution interval: The interval at which the plan is executed, for example, every few hours, every few days, every few weeks, every few quarters, etc.
n強制執行時間:業務任務在強制執行時間由於所依賴的業務任務還沒有執行,則忽略依賴業務任務的狀態,直接執行業務任務。 n Enforcement time: When the business task is not executed due to the business task it depends on, the business task is directly executed.
(5)任務調度日誌資料模型 (5) Task scheduling log data model
用於記錄業務任務調度的日誌資訊。調度系統根據業務任務調度計畫動態規劃一段時間內的調度業務任務並將 資訊記錄在業務任務調度日誌中。調度系統根據業務任務調度日誌中的記錄,進行業務任務調度並記錄任務調度的結果。 Log information used to record business task scheduling. The scheduling system dynamically plans the scheduled business tasks over a period of time according to the business task scheduling plan and Information is recorded in the business task schedule log. The scheduling system schedules the business tasks according to the records in the business task scheduling log and records the results of the task scheduling.
1關鍵字段: 1 key field:
n業務任務日誌ID:用於標識業務日誌的ID。 n Service task log ID: ID used to identify the service log.
n業務任務ID:用於標識業務任務的ID。 n Service task ID: ID used to identify the business task.
n原計劃執行時間:原計劃中業務任務的執行時間。 n Original plan execution time: The execution time of the business task in the original plan.
n計畫執行時間:默認為原計劃執行時間,實際調度時間。 n Plan execution time: The default is the original planned execution time and the actual scheduled time.
n請求時間:調度系統向業務系統發送請求的時間。 n Request time: The time at which the scheduling system sends a request to the business system.
n業務任務開始時間:業務系統開始執行業務任務時間。 n Business task start time: The time when the business system starts to execute the business task.
n業務任務完成時間:業務系統完成執行業務任務時間。 n Business task completion time: The time when the business system completes the execution of the business task.
n業務任務狀態:業務任務執行狀態資訊(如後述圖3所示包括未執行,已計畫、準備中、進行中、完成、失敗、取消) n business task status: business task execution status information (as shown in Figure 3 below, including not executed, planned, preparing, in progress, completing, failing, canceling)
n業務任務回應資訊:業務系統返回的其他說明資訊。 n Business task response information: other description information returned by the business system.
圖2是表示本發明的調度系統的構造示意圖。如圖2所示,本發明的任務調度系統100用於在多個業務系統(例如圖1所示的業務系統1、業務系統2、業 務系統3)之間進行業務任務調度。 Fig. 2 is a block diagram showing the construction of the dispatching system of the present invention. As shown in FIG. 2, the task scheduling system 100 of the present invention is used in a plurality of service systems (for example, the business system 1, the business system 2, and the industry shown in FIG. 1). Business task scheduling between service systems 3).
本發明的任務調度系統100具備:用於對業務系統、業務任務、業務任務關聯進行管理的業務任務管理模組101;用於對業務任務調度計畫進行管理並且在業務任務調度計畫改變時觸發下述的業務任務調度規劃模組重新進行規劃的業務任務調度計畫管理模組102;用於根據業務任務調度計畫規劃規定時間內的任務調度並且在業務任務調度計畫改變時重新進行規劃的業務任務調度規劃模組103;用於週期性實例化任務的業務任務調度執行模組104。 The task scheduling system 100 of the present invention is provided with a business task management module 101 for managing a business system, a business task, and a business task association; for managing a business task scheduling plan and when the business task scheduling plan is changed The business task scheduling plan management module 102 that triggers the re-planning of the business task scheduling planning module described below; is used for scheduling the task scheduling within a specified time according to the business task scheduling plan and re-executing when the business task scheduling plan is changed The planned business task scheduling planning module 103; the business task scheduling execution module 104 for periodically instantiating tasks.
具體地,業務任務管理模組104負責調度系統中業務系統、業務任務、業務任務關聯的管理。也就是對需要使用調度系統進行調度的業務系統、需要調度的業務任務以及業務任務之間的關聯關係進行管理(即對上述的資料模型(1)~(3)進行管理)。 Specifically, the business task management module 104 is responsible for scheduling the management of the business system, business tasks, and business tasks associated with the system. That is, the business system that needs to be scheduled using the scheduling system, the business tasks that need to be scheduled, and the relationship between the business tasks are managed (that is, the above data models (1) to (3) are managed).
業務任務調度計畫管理模組102負責調度系統中業務任務調度計畫的管理,當業務任務調度計畫改變時,觸發業務任務調度規劃模組重新進行規劃。業務任務調度計畫管理模組102負責產生和管理上述的5個資料模型中“業務任務調度計畫”資料模組對應的資料。 The business task scheduling plan management module 102 is responsible for scheduling the management of the business task scheduling plan in the system. When the business task scheduling plan is changed, the business task scheduling planning module is triggered to be re-planned. The business task scheduling plan management module 102 is responsible for generating and managing data corresponding to the "business task scheduling plan" data module of the above five data models.
業務任務調度規劃模組103負責根據業務任務調度計畫規劃一段時間內的業務任務調度並將資訊記錄在業務任務調度日誌中,並且在業務任務調度計畫改變時,重新進行規劃。例如,業務任務調度每23小時運行 一次,每次創建預計在“24小時”內將執行的業務任務調度日誌資訊。而當業務任務調度計畫改變時,立即創建預計在“24小時”內將執行的業務任務調度日誌資訊。通過業務任務、原計劃執行時間、以及任務狀態來區分業務任務調度日誌是否已經創建。業務任務調度規劃模組103負責產生和管理上述的5個資料模型中的“業務任務調度日誌”資料模組對應的資料。 The business task scheduling planning module 103 is responsible for planning the business task scheduling for a period of time according to the business task scheduling plan and recording the information in the business task scheduling log, and re-planning when the business task scheduling plan changes. For example, business task scheduling runs every 23 hours. Once, each time you create a business task schedule log information that is expected to be executed within "24 hours." When the business task scheduling plan changes, the business task scheduling log information expected to be executed within "24 hours" is immediately created. Whether the business task scheduling log has been created is determined by the business task, the original planned execution time, and the task status. The business task scheduling planning module 103 is responsible for generating and managing data corresponding to the "business task scheduling log" data module in the above five data models.
業務任務調度執行模組104以很短的週期週期性的實例化業務任務調度。例如,業務任務調度執行模組每5秒運行一次,根據業務任務調度日誌資訊(狀態為未執行)實例化預計開始執行時間在10秒內的業務任務調度,通過單次定時調度,在計畫執行時間執行業務系統的調用請求。通過業務任務狀態和計畫執行時間判斷是否需要實例化該業務任務調度。實例化業務任務調度是指將在記憶體中創建任務物件並計畫該任務物件運行時間。業務任務調度執行模組105負責上述的5個資料模型中“業務任務調度日誌”資料模組對應任務的執行以及更新業務任務調度日誌的狀態。 The business task scheduling execution module 104 periodically instantiates the business task scheduling in a short period of time. For example, the business task scheduling execution module runs every 5 seconds, and according to the business task scheduling log information (the status is not executed), the business task scheduling that is expected to start executing within 10 seconds is instantiated, and the scheduling is performed by a single timing scheduling. The execution time executes the call request of the business system. Determine whether the business task scheduling needs to be instantiated through the business task status and the project execution time. Instantiating a business task schedule means that a task object will be created in memory and the task object runtime will be scheduled. The business task scheduling execution module 105 is responsible for executing the task corresponding to the "business task scheduling log" data module and updating the status of the business task scheduling log in the above five data models.
所述業務任務管理模組101、所述業務任務調度計畫管理模組102、所述業務任務調度規劃模組103、所述業務任務調度執行模組104相互之間通過更新資料模型中的資料進行通信,相互之間不直接通信。 The business task management module 101, the business task scheduling project management module 102, the business task scheduling planning module 103, and the business task scheduling execution module 104 update data in the data model with each other. Communicate and not communicate directly with each other.
下面對於本發明的任務調度方法進行說明。本發明的任務調度方法大致可以分為三個步驟: 業務任務調度計畫步驟:對業務任務調度設置業務任務調度計畫;業務任務調度規劃步驟:根據業務任務調度計畫規劃規定時間內的業務任務調度,並且在業務任務調度計畫改變時重新進行規劃;以及業務任務調度執行步驟:週期性實例化業務任務調度。 The task scheduling method of the present invention will be described below. The task scheduling method of the present invention can be roughly divided into three steps: Business task scheduling step: setting a business task scheduling plan for business task scheduling; business task scheduling planning step: scheduling business tasks according to a business task scheduling plan within a specified time, and re-running when the business task scheduling plan changes Planning; and business task scheduling execution steps: periodic instantiation of business task scheduling.
圖3是表示本發明的任務調度方法中運維人員通過修改任務調度日誌狀態對任務調度進行動態調整的過程。 FIG. 3 is a flowchart showing the process of dynamically adjusting task scheduling by the operation and maintenance personnel in the task scheduling method of the present invention by modifying the task scheduling log state.
圖3的運行背景為上述“業務任務調度執行步驟”即業務任務執行模組104週期性實例化物任務調度。具體地,業務任務執行模組104以很短的週期,週期性的實例化業務任務調度。 The running background of FIG. 3 is the above-mentioned “business task scheduling execution step”, that is, the business task execution module 104 periodically instantiates the task scheduling. Specifically, the business task execution module 104 periodically instantiates the business task scheduling in a short period of time.
圖3中主要狀態包括:(任務)未執行、(任務)已計畫、(任務)準備中、(任務)進行中、(任務)成功。這些都是指的資料模型中“業務任務調度日誌”的狀態。其中,“未執行”表示業務任務規劃模組已經創建該單次任務調度日誌記錄。“已計畫”表示業務任務調度執行模組已經實例化該任務調度日誌。“準備中”表示記憶體中的定時調度任務開始執行。“進行中”表示業務任務進行中。“成功”表示業務系統回饋業務任務已成功執行。 The main states in Figure 3 include: (task) not executed, (task) planned, (task) preparation, (task) ongoing, (task) successful. These are all the states of the "business task scheduling log" in the data model. The “not executed” indicates that the single task scheduling log record has been created by the business task planning module. "Projected" indicates that the business task scheduling execution module has instantiated the task scheduling log. "Preparing" means that the scheduled scheduling task in the memory begins execution. "In progress" indicates that the business task is in progress. "Success" indicates that the business system feedback business task has been successfully executed.
圖3:可以中狀態主要可分為下述幾個階段: (1)實例化之前:包括狀態“未執行”;(2)實例化之後:定時任務觸發之前:包括狀態“已計畫”,“暫停”;(3)定時任務已觸發,尚未調用業務任務:包括狀態“準備中”;(4)業務任務已調用,尚未結束:包括狀態“進行中”;(5)業務任務達到最終狀態,取消,錯誤,成功,失敗,超時,強制成功。 Figure 3: The status in the middle can be divided into the following stages: (1) Before instantiation: including the state "not executed"; (2) after instantiation: before the timing task is triggered: including the state "planned", "pause"; (3) the scheduled task has been triggered, the business task has not been called yet : Include the status "preparing"; (4) the business task has been called, not yet finished: including the status "in progress"; (5) the business task reaches the final state, cancel, error, success, failure, timeout, forced success.
具體地,如圖3所示,在開始之後,創建新任務調度日誌後,“未執行”表示業務任務規劃模組已經創建該單次任務調度日誌記錄但還未執行,運維人員能夠調整任務計畫執行時間。 Specifically, as shown in FIG. 3, after the start, after creating a new task scheduling log, “not executed” indicates that the business task planning module has created the single task scheduling log record but has not executed yet, and the operation and maintenance personnel can adjust the task. Plan execution time.
接著,在“未執行”之後,系統實例化狀態為“未執行”並且“計畫執行時間”在很短時間內(例如30s內)的任務。之後,任務狀態變為“已計畫”,在“已計畫”的狀態下,根據運維人員暫停任務的操作,能夠轉變為“暫停”狀態。 Then, after "not executed", the system instantiates the status as "not executed" and "plan execution time" for a short period of time (eg, within 30s). After that, the task status changes to "planned", and in the "planned" state, it can be changed to the "suspended" state according to the operation of the operation and maintenance personnel to suspend the task.
另一方面,當任務狀態為“未執行”的情況下,通過運維人員調整任務計畫執行時間,能夠回到“創建新任務調度日誌”的狀態。 On the other hand, when the task status is "not executed", the operation and maintenance personnel can adjust the execution time of the task plan to return to the state of "create a new task schedule log".
在任務為“暫停”的狀態下,運維人員通過繼續執行任務能夠回到“創建新任務調度日誌”的狀態。 In the state where the task is "paused", the operation and maintenance personnel can return to the state of "create a new task scheduling log" by continuing to perform the task.
在任務為“已計畫”的狀態下,如果系統達 到“計畫執行時間”,則進入任務“準備中”狀態。之後,根據需要進行報警,如果執行條件滿足的話,則調用業務系統執行任務,否則判斷是否繼續等待。 In the state where the task is "planned", if the system reaches Go to the "plan execution time" and enter the task "preparing" status. After that, the alarm is performed as needed. If the execution condition is satisfied, the business system is called to perform the task, otherwise it is determined whether to continue waiting.
當調用業務系統執行任務的情況下,如果調用業務系統成功的話,則根據回應更新任務調度日誌並且顯示任務狀態為“進行中”,而如果調用業務系統未成功的話,則業務任務狀態顯示為“錯誤”。 When the business system is called to execute the task, if the calling service system is successful, the task scheduling log is updated according to the response and the task status is displayed as "in progress", and if the calling service system is unsuccessful, the business task status is displayed as " error".
當任務狀態為“進行中”則表示任務已調用但尚未結束。在任務為“進行中”的狀態下,如果業務系統完成更新狀態的話,則任務狀態則顯示為“成功”。 When the task status is "in progress", the task has been called but not yet finished. In the state where the task is "in progress", if the business system completes the update status, the task status is displayed as "successful".
並且,在任務為“進行中”的狀態下,如果業務系統一直沒有完成更新狀態的話,則任務狀態變為“超時”。 Moreover, in the state where the task is "in progress", if the business system has not completed the update state, the task status changes to "timeout".
並且,在任務為“進行中”的狀態下,如果業務系統完成更新狀態失敗的話,任務狀態則顯示為“失敗”。 Moreover, in the state where the task is "in progress", if the business system fails to complete the update state, the task status is displayed as "failed".
另一方面,在任務狀態為“已計畫”的狀態下,通過運維人員取消任務能夠使得任務狀態為“取消”。 On the other hand, in the state where the task status is "planned", the task status can be "cancelled" by the operation and maintenance personnel canceling the task.
另外,在任務狀態為“取消”、“錯誤”、“失敗”、“超時”的狀態下,通過運維人員強制任務成功,能夠使得任務狀態為“強制成功”。或者,在任務狀態為“取消”、“錯誤”、“失敗”、“超時”的狀態下,通過運維人員重做任務或運維人員強制執行任務,能 夠回到“創建新任務調度日誌”的狀態。 In addition, in the state where the task status is "cancel", "error", "failure", and "timeout", the task status is "forced success" by the operation and maintenance personnel forcing the task to succeed. Or, in the state where the task status is "cancel", "error", "failure", and "timeout", the operation and maintenance personnel can redo the task or the operation and maintenance personnel can enforce the task. Go back to the state of "Create a new task schedule log."
本發明提出了一種可動態調整的業務任務調度系統模型設計及其實現方法。所述的解決方案對於以往的業務任務調度方案而言具有以下顯著優點:在本發明中,通過業務任務調度模組103通過創建單次的“業務任務調度日誌”和更改“業務任務調度日誌”的狀態,配合業務任務調度執行模組104的邏輯實現動態調整,由此,利用本發明能夠支持業務任務調度計畫的動態調整;而且,在本發明中,通過業務任務管理模組101對業務系統、業務任務、業務任務關聯資料進行創建和管理。而且,業務任務調度執行模組104在執行任務前會檢查關聯任務的狀態(圖3中“準備中”至“進行中”之間內容。因此,本發明能夠支援不同應用系統之間的業務任務存在關聯;在本發明中,由於調度系統各業務任務關聯關係通過調度系統的配置實現,各個業務任務之間不需要直接相關聯,因此能夠減少業務系統間因為調度任務而產生的關聯,能夠降低業務系統間的耦合性;在本發明中,由於調度系統各業務任務關聯關係通過調度中心的配置實現,各個業務任務之間不需要直接相關聯。當增加新系統或者業務時,只需要增加相應配置即可,因此能夠提高業務系統任務調度的擴展性。 The invention provides a dynamically adjustable business task scheduling system model design and implementation method thereof. The solution has the following significant advantages for the prior service task scheduling scheme: in the present invention, the business task scheduling module 103 creates a single "business task scheduling log" and changes the "business task scheduling log". The state is coordinated with the logic of the business task scheduling execution module 104, thereby enabling the dynamic adjustment of the business task scheduling plan to be supported by the present invention; and, in the present invention, the business is managed by the business task management module 101. System, business tasks, and business task related materials are created and managed. Moreover, the business task scheduling execution module 104 checks the state of the associated task (the content between "preparing" to "in progress" in FIG. 3 before executing the task. Therefore, the present invention can support business tasks between different application systems. In the present invention, since the association relationship of each service task of the scheduling system is implemented by the configuration of the scheduling system, each business task does not need to be directly associated with each other, so that the association between the business systems due to the scheduling task can be reduced, and the association can be reduced. Coupling between business systems; in the present invention, since the business process association relationship of the scheduling system is implemented through the configuration of the scheduling center, there is no need to directly associate each business task. When adding a new system or service, only need to increase the corresponding Configuration is OK, so it can improve the scalability of business system task scheduling.
以上例子主要說明j本發明的任務調度系統 以及任務調度方法。儘管只對其中一些本發明的具體實施方式進行了描述,但是本領域普通技術人員應當瞭解,本發明可以在不偏離其主旨與範圍內以許多其他的形式實施。因此,所展示的例子與實施方式被視為示意性的而非限制性的,在不脫離如所附各權利要求所定義的本發明精神及範圍的情況下,本發明可能涵蓋各種的修改與替換。 The above examples mainly illustrate the task scheduling system of the present invention. And task scheduling methods. Although only a few of the specific embodiments of the present invention have been described, it is understood that the invention may be embodied in many other forms without departing from the spirit and scope of the invention. The present examples and embodiments are to be construed as illustrative and not restricting replace.
100‧‧‧調度系統 100‧‧‧ dispatching system
101‧‧‧業務任務管理模組 101‧‧‧Business Task Management Module
102‧‧‧業務任務調度計畫管理模組 102‧‧‧Business Task Scheduling Management Module
103‧‧‧業務任務調度規劃模組 103‧‧‧Business Task Scheduling Planning Module
104‧‧‧業務任務調度執行模組 104‧‧‧Business Task Scheduling Execution Module
Claims (9)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410334495.1A CN105260248B (en) | 2014-07-15 | 2014-07-15 | A kind of task scheduling system and dispatching method being dynamically adapted |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201604787A true TW201604787A (en) | 2016-02-01 |
TWI564805B TWI564805B (en) | 2017-01-01 |
Family
ID=55077906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW104122553A TWI564805B (en) | 2014-07-15 | 2015-07-13 | Can filter adjust the task scheduling system and scheduling methods |
Country Status (4)
Country | Link |
---|---|
CN (1) | CN105260248B (en) |
HK (1) | HK1220270A1 (en) |
TW (1) | TWI564805B (en) |
WO (1) | WO2016008376A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI772685B (en) * | 2019-09-26 | 2022-08-01 | 兆豐國際商業銀行股份有限公司 | Business message monitoring system |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106775979B (en) * | 2016-12-13 | 2020-08-21 | 苏州浪潮智能科技有限公司 | Scheduler calling method and system |
CN107168770B (en) * | 2017-04-14 | 2020-03-27 | 中国人民解放军国防科学技术大学 | Low-energy-consumption cloud data center workflow scheduling and resource supply method |
CN109597678B (en) * | 2018-10-09 | 2023-07-21 | 创新先进技术有限公司 | Task processing method and device |
CN109783211A (en) * | 2018-12-14 | 2019-05-21 | 成都四方伟业软件股份有限公司 | A kind of batch task scheduling system and dispatching method based on business diary |
CN112231078A (en) * | 2020-09-21 | 2021-01-15 | 上海容易网电子商务股份有限公司 | Method for realizing distributed task scheduling of automatic marketing system |
CN112418615A (en) * | 2020-11-04 | 2021-02-26 | 北京中电飞华通信有限公司 | Timing strategy execution method and device |
CN112685161B (en) * | 2020-12-31 | 2024-04-23 | 杭州当虹科技股份有限公司 | Unified task scheduling system |
CN113852406B (en) * | 2021-08-24 | 2024-04-30 | 合肥工业大学 | Multi-beam relay satellite task scheduling method and device |
CN113762639A (en) * | 2021-09-22 | 2021-12-07 | 南方电网数字电网研究院有限公司 | Middle station service design method based on business scene |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW541484B (en) * | 2000-12-18 | 2003-07-11 | Manugistics Inc | System and method for enabling a configurable electronic business exchange platform |
JP4177280B2 (en) * | 2004-03-25 | 2008-11-05 | 東芝ソリューション株式会社 | Planning work management support system and planning work management support program |
CN100499462C (en) * | 2006-12-22 | 2009-06-10 | 中国建设银行股份有限公司 | Integrated processing system and method for the data exchange between different application systems |
CN100525211C (en) * | 2006-12-31 | 2009-08-05 | 华为技术有限公司 | Method and system for implementing integral dispatching in network element management system |
US20080184241A1 (en) * | 2007-01-30 | 2008-07-31 | Microsoft Corporation | Techniques for automated balancing of tasks across multiple computers |
US20090199192A1 (en) * | 2008-02-05 | 2009-08-06 | Robert Laithwaite | Resource scheduling apparatus and method |
CN102262753B (en) * | 2011-07-18 | 2014-03-12 | 华侨大学 | Control scheduling method of multi-Agent regional logistics distribution system |
CN102340689B (en) * | 2011-09-20 | 2014-04-30 | 成都索贝数码科技股份有限公司 | Method and device for configuring business subsystem in television station production system |
CN103345664A (en) * | 2013-05-31 | 2013-10-09 | 华为技术有限公司 | Method and system for adaptation between workflow and task scheduling |
CN103677973A (en) * | 2013-09-01 | 2014-03-26 | 西安重装渭南光电科技有限公司 | Distributed multi-task scheduling management system |
-
2014
- 2014-07-15 CN CN201410334495.1A patent/CN105260248B/en active Active
-
2015
- 2015-07-08 WO PCT/CN2015/083550 patent/WO2016008376A1/en active Application Filing
- 2015-07-13 TW TW104122553A patent/TWI564805B/en active
-
2016
- 2016-07-14 HK HK16108261.7A patent/HK1220270A1/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI772685B (en) * | 2019-09-26 | 2022-08-01 | 兆豐國際商業銀行股份有限公司 | Business message monitoring system |
Also Published As
Publication number | Publication date |
---|---|
CN105260248B (en) | 2019-02-19 |
CN105260248A (en) | 2016-01-20 |
TWI564805B (en) | 2017-01-01 |
HK1220270A1 (en) | 2017-04-28 |
WO2016008376A1 (en) | 2016-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI564805B (en) | Can filter adjust the task scheduling system and scheduling methods | |
US20220278899A1 (en) | System and method for database access using a history walker | |
US10778548B2 (en) | Method and system for determining workload availability in a multi-tenant environment | |
US10453010B2 (en) | Computer device, method, and apparatus for scheduling business flow | |
US10956013B2 (en) | User interface for automated flows within a cloud based developmental platform | |
US9588822B1 (en) | Scheduler for data pipeline | |
US8677315B1 (en) | Continuous deployment system for software development | |
US8291038B2 (en) | Remote automation of manual tasks | |
US20180324051A1 (en) | User interface for automated flows within a cloud based developmental platform | |
US11294711B2 (en) | Wait a duration timer action and flow engine for building automated flows within a cloud based development platform | |
US10147066B2 (en) | Business process framework | |
US10101972B1 (en) | Data modelling and flow engine for building automated flows within a cloud based developmental platform | |
US20160294921A1 (en) | Command processing in distributed computing systems | |
AU2017236024B2 (en) | Flow engine for building automated flows within a cloud based development platform | |
US10719485B2 (en) | System and method for database access using a history walker | |
US10824642B2 (en) | Data synchronization architecture | |
US11868829B2 (en) | System and method for the remote execution of one or more arbitrarily defined workflows | |
CN114756357A (en) | Non-blocking distributed planned task scheduling method based on JVM (Java virtual machine) | |
US20190205110A1 (en) | Compilation optimization via dynamic server cloning | |
CN113313353A (en) | Continuous delivery pipeline management method and device | |
CN110276153A (en) | The non-uniform non-critical time management method of time remaining of parallel discrete time emulation | |
Schäfer et al. | Hawks: A system for highly available executions of workflows | |
JP2017102694A (en) | Gantt chart generation program, gantt chart generation apparatus and gantt charge generation method | |
US20130144590A1 (en) | Configuration management | |
Jamieson et al. | Agile Quality Management Techniques. |