Task execution method, device and server
A task execution and task configuration technology, applied in the computer field, can solve problems such as oversized projects, inconvenient task management, and duplication of cleaning task codes, and achieve the effects of simple tasks, reduced code duplication, and concise and convenient code maintenance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Such as figure 1 As shown, an embodiment of the present invention provides a task execution method, including:
[0031] Step S110, read the task description file corresponding to the task. The task description file records the path of the database public package used to execute the task, the path of the database script file used to represent the entity of the task, and the first parameter corresponding to the task. A parameter is used to replace variables in the database script file. In this embodiment, the task description file may be in xml format, the database script file may be in sql format, the tasks performed include but not limited to data cleaning tasks, and the database public package may be a public jar package.
[0032] Step S120, pushing the database script file to the computing node, where the computing node has the database public package.
[0033] Step S130, call the database public package according to the path of the database public package, obtain t...
Embodiment 2
[0036] Such as figure 2 As shown, an embodiment of the present invention provides a task execution method, including:
[0037]Step S210, read the task description file corresponding to the task. The task description file records the path of the database public package used to execute the task, the path of the database script file used to represent the entity of the task, and the first parameter corresponding to the task. One parameter is used to replace the variables in the database script file. The path of the task configuration file is also recorded in the task description file. The second parameter used to replace the threshold value of the database script file is recorded in the task configuration file. The task description file includes the task The information of the corresponding input table and the information of the output table.
[0038] In this embodiment, an original task consists of three parts: a task.xml file, a task.sql file, and a task.conf file (can be omit...
Embodiment 3
[0045] Such as image 3 As shown, an embodiment of the present invention provides a task performance device, including:
[0046] The reading module 310 reads the task description file corresponding to the task, the path of the database public package used to execute the task, the path of the database script file used to represent the entity of the task, and the first parameter corresponding to the task are recorded in the task description file , the first parameter is used to replace variables in the database script file. In this embodiment, the task description file may be in xml format, the database script file may be in sql format, the tasks performed include but not limited to data cleaning tasks, and the database public package may be a public jar package.
[0047] The push module 320 pushes the database script file to the computing node, and the computing node has the database public package.
[0048] The execution module 330 calls the database public package according...
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