Task execution method and device based on database
A technology of task execution and database, applied in the field of communication, can solve the problems that cannot be adjusted dynamically, cannot be realized, etc., and achieve the effect of dynamically controlling the degree of concurrency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] image 3 It is a detailed structural block diagram of a device for implementing a database-based task execution method according to Embodiment 1 of the present invention. The device includes three parts: an input module, an execution module and an output module, wherein:
[0049] (1) The input module is used to accept the operations of inputting execution task data into the task table, inputting task dependency data into the task relationship table, and inputting locking purpose data into the task lock table. Preferably, the input module can also be used to generate a task group, specify a task group label, and use the task group label as a group identifier to realize data isolation for mixed execution.
[0050] Specifically, the execution task data includes the sequence number, task group, task name, task execution instruction, execution result status, etc.; task dependency data includes the sequence number, predecessor task name, follow-up task name, task group inform...
Embodiment 2
[0057] The following describes the database-based task execution method in conjunction with the structure of the database-based task execution device provided in Embodiment 1. The method includes the following steps:
[0058] Step 1, a database connection execution input module, the input module generates a task group, accepts the input of execution tasks and task relationship data, and generates four rows of records for locking for each task group.
[0059] Step 2, a database connection executes the execution module, specifically, such as Figure 4 As shown, each submodule in the execution module is executed in the following order:
[0060] 1) A database connection locks the entire record row of the query operation type of the task group;
[0061] 2) A database connection obtains an unexecuted task from the execution task data of the task group. The task meets the requirements that the operation error code is equal to -1, the number of errors is less than 5 times (configurab...
Embodiment 3
[0071] This embodiment describes a process in which a user implements a mixed relational operation through the database-based task execution device in a specific implementation process:
[0072] Step 1. Use the database client tool or application to connect to the database, execute the input module, input the execution task data, input task relationship data, or, the task data and task relationship data have been entered into the temporary table in advance, and only update the content of the temporary table to the task table and the task relationship table.
[0073] Step 2, use the database client tool or application to connect to the database, execute the interface function sp_set_loop of the execution module, the parameter is the name of the task group, and start an execution database connection.
[0074] In step 3, use the same method as step 2 to start other database connections to realize multi-task mixed execution.
[0075] It should be noted that in the above method, t...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com