Job development method, device, electronic device and storage medium
By receiving and parsing target job files, generating and storing job flow objects and node objects, it solves the problem of developers being unable to develop due to geographical location and network environment restrictions, realizes offline job development and batch development, and improves efficiency.
Patent Information
- Application Number
- CN202110045675.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-01-13
AI Technical Summary
In scenarios with high safety regulations, developers are unable to carry out work development off-site due to environmental conditions or emergencies, resulting in delays in work progress and reduced efficiency.
By receiving and parsing target job files, job flow objects and job node objects are generated, and stored in preset tables to achieve offline job development, independent of geographical location and network environment.
It enables job development at any location, improves the efficiency of job development, and supports batch job development.
Smart Images

Figure CN114764561B
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular to a job development method, device, electronic device and storage medium. Background Art
[0002] At present, in some scenarios with high security requirements, it is usually stipulated that developers can only log in to the big data platform through the bastion host in the computer room inside the scenario to carry out operation development.
[0003] However, in actual applications, developers may need to work outside the scene due to environmental or unexpected events, such as on business trips or working from home. This prevents developers from developing their work, thereby delaying work progress and reducing work efficiency. Summary of the invention
[0004] In view of this, in order to solve the technical problem in the prior art that job development is restricted by the network environment, an embodiment of the present invention provides a job development method, device, electronic device and storage medium.
[0005] In a first aspect, an embodiment of the present invention provides a job development method, the method comprising:
[0006] receiving a target job file, wherein the target job file includes job flow data of at least one job flow and job data of a plurality of job nodes included in the job flow;
[0007] Parsing the target job file to obtain at least one job flow object and each job node object corresponding to at least one job flow object;
[0008] At least one of the job flow objects is stored in a preset job flow table, and each job node object corresponding to at least one of the job flow objects is stored in a preset job table to complete job development.
[0009] In a possible implementation manner, before the method, the method further includes:
[0010] receiving a job development template download request from a terminal device;
[0011] Based on the job development template download request, a preset job development template is sent to the terminal device, so that the user can input the job flow data and the job data in the job development template to generate the target job file.
[0012] In a possible implementation, the job development template is an EXCLE file, which at least includes a job flow information registration worksheet, a job flow dependency information registration worksheet, a job information registration worksheet, a job dependency information registration worksheet, and a job parameter registration worksheet;
[0013] Each row in the job flow information registration worksheet corresponds to a job flow and is used to record the job flow information of the job flow;
[0014] Each row in the job flow dependency information registration work table corresponds to a job flow and is used to record the job flow dependency information of the job flow;
[0015] Each row in the job information registration worksheet corresponds to a job node and is used to record the job information of the job node;
[0016] Each row in the job dependency information registration worksheet corresponds to a job node and is used to record the job dependency information of the job node;
[0017] Each row in the job parameter registration worksheet corresponds to a job node and is used to record the job parameters of the job node.
[0018] In a possible implementation, parsing the target job file to obtain at least one job flow object includes:
[0019] For each row of the job flow information registration work table in the target job file, create a job flow object, and initialize the attribute information of the job flow object according to the job flow information recorded in the row;
[0020] For each row in the workflow dependency information registration work table in the target job file, the workflow dependency information recorded in the row is set as the workflow dependency information of the workflow object corresponding to the row.
[0021] In a possible implementation manner, initializing the attribute information of the workflow object according to the workflow information recorded in the row includes:
[0022] For each item of the workflow information recorded in the row, if the value of the workflow information is empty, setting the attribute information of the workflow object by using a first preset value;
[0023] If the value of the workflow information is not empty, the attribute information of the workflow object is set using the value of the workflow information.
[0024] In a possible implementation, parsing the target job file to obtain each job node object corresponding to at least one job flow object includes:
[0025] For each row of the job information registration work table in the target job file, create a job object, and initialize the attribute information of the job node object according to the job information recorded in the row;
[0026] For each row in the job dependency information registration work table in the target job file, setting the job dependency information recorded in the row as the job dependency information of the job node object corresponding to the row;
[0027] For each row in the job parameter registration work table in the target job file, the job parameters recorded in the row are set as the job parameters of the job node object corresponding to the row.
[0028] In a possible implementation, initializing the attribute information of the job node object according to the job information recorded in the row includes:
[0029] For each item of the job information recorded in the row, if the value of the job information is empty, setting the attribute information of the job node object by using a second preset value;
[0030] If the value of the job information is not empty, the attribute information of the job node object is set using the value of the job information.
[0031] In a second aspect, an embodiment of the present invention provides a job development device, the device comprising:
[0032] A file receiving module, used for receiving a target job file, wherein the target job file includes job flow data of at least one job flow and job data of a plurality of job nodes included in the job flow;
[0033] An object determination module, used for parsing the target job file to obtain at least one job flow object and each job node object corresponding to at least one of the job flow objects;
[0034] The object storage module is used to store at least one of the job flow objects in a preset job flow table, and store each job node object corresponding to at least one of the job flow objects in a preset job table to complete job development.
[0035] In a possible implementation, it further includes:
[0036] A request receiving module, used for receiving a job development template download request from a terminal device;
[0037] The template sending module is used to send the preset job development template to the terminal device based on the job development template download request, so that the user can input the job flow data and job data in the job development template to generate the target job file.
[0038] In a possible implementation, the job development template is an EXCLE file, which at least includes a job flow information registration worksheet, a job flow dependency information registration worksheet, a job information registration worksheet, a job dependency information registration worksheet, and a job parameter registration worksheet;
[0039] Each row in the job flow information registration worksheet corresponds to a job flow and is used to record the job flow information of the job flow;
[0040] Each row in the job flow dependency information registration work table corresponds to a job flow and is used to record the job flow dependency information of the job flow;
[0041] Each row in the job information registration worksheet corresponds to a job node and is used to record the job information of the job node;
[0042] Each row in the job dependency information registration worksheet corresponds to a job node and is used to record the job dependency information of the job node;
[0043] Each row in the job parameter registration worksheet corresponds to a job node and is used to record the job parameters of the job node.
[0044] In a possible implementation, the object determination module includes:
[0045] A first creation submodule is used to create a job flow object for each row of the job flow information registration work table in the target job file;
[0046] A first initialization submodule, configured to initialize the attribute information of the workflow object according to the workflow information recorded in the row;
[0047] The first setting submodule is used for setting the workflow dependency information recorded in each row in the workflow dependency information registration work table of the target job file as the workflow dependency information of the workflow object corresponding to the row.
[0048] In a possible implementation manner, the first initialization submodule is specifically used to:
[0049] For each item of the workflow information recorded in the row, if the value of the workflow information is empty, the attribute information of the workflow object is set using a first preset value; if the value of the workflow information is not empty, the attribute information of the workflow object is set using the value of the workflow information.
[0050] In a possible implementation, the object determination module includes:
[0051] A second creation submodule is used to create a job object for each row of the job information registration worksheet in the target job file;
[0052] A second initialization submodule, configured to initialize attribute information of the job node object according to the job information recorded in the row;
[0053] A second setting submodule is used for setting, for each row in the job dependency information registration work table in the target job file, the job dependency information recorded in the row as the job dependency information of the job node object corresponding to the row;
[0054] The third setting submodule is used to set, for each row in the job parameter registration worksheet in the target job file, the job parameters recorded in the row as the job parameters of the job node object corresponding to the row.
[0055] In a possible implementation manner, the second initialization submodule is specifically used to:
[0056] For each item of the job information recorded in the row, if the value of the job information is empty, setting the attribute information of the job node object by using a second preset value;
[0057] If the value of the job information is not empty, the attribute information of the job node object is set using the value of the job information.
[0058] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a job development program stored in the memory to implement the job development method described in any one of the first aspects.
[0059] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the job development method described in any one of the first aspects.
[0060] The technical solution provided by the embodiment of the present invention receives a target job file, parses the target job file, obtains at least one job flow object and each job node object corresponding to the at least one job flow object, stores the at least one job flow object in a preset job flow table, and stores each job node object corresponding to the at least one job flow object in a preset job table to complete job development, thereby realizing offline job development, so that job development is not affected by factors such as geographical location and network environment. At the same time, since the target job file may include at least one job flow and each business node of at least one job flow, batch job development can be realized based on the target job file, thereby improving job development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 A schematic diagram of an application scenario involved in an embodiment of the present invention;
[0062] Figure 2 A flowchart of an implementation example of a job development method provided by an embodiment of the present invention;
[0063] Figure 3 An example of a worksheet for registering job flow information;
[0064] Figure 4 An example of a worksheet for registering job flow dependency information;
[0065] Figure 5 An example of a worksheet for registering job information;
[0066] Figure 6 An example of a worksheet for registering job dependency information;
[0067] Figure 7 An example of a worksheet for registering job parameters;
[0068] Figure 8 is an example of a dictionary table;
[0069] Fig. 9 A flowchart of another operation development method provided by an embodiment of the present invention;
[0070] Fig.10 A block diagram of an embodiment of a job development device provided by an embodiment of the present invention;
[0071] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0073] For ease of understanding, the following first explains the terms involved in the embodiments of the present invention:
[0074] 1. Job Node
[0075] A job node is a user-defined logical unit that completes a task.
[0076] 2. Workflow
[0077] A job flow is a graph consisting of multiple job nodes. The job nodes in a job flow can be unrelated or dependently related through directed edges, but there is no loop in the job flow. It can be seen that in the task scheduling model, the job flow is the scheduling unit, and the job node is the smallest granularity execution unit.
[0078] In the big data platform, a job flow can represent a task, and multiple job nodes in the job flow can represent multiple different subtasks included in the task. For example, the task of sending user bills at the end of each month includes three subtasks, namely downloading user data, analyzing and summarizing user data, and sending emails to users. Based on this, the above three subtasks can be corresponded to a job node respectively, and each job node is executed in sequence to form a job flow.
[0079] The following is an exemplary description of the application scenarios involved in the embodiments of the present invention:
[0080] See also Figure 1 , which is a schematic diagram of an application scenario involved in an embodiment of the present invention.
[0081] Figure 1 The example application scenarios include: bastion host 101, big data platform 102, and terminal device 103. Among them, bastion host 101 and big data platform 102 can be in the same network environment, such as the company's intranet, and terminal device 103 can be in a different network environment from bastion host 101 and big data platform 102, such as the terminal device 103 is in the home network of the company's employees. Further, terminal device 103 can access big data platform 102.
[0082] It should be noted that Figure 1 The application scenario described in the example may also include other devices, such as routers, firewalls, etc., which are not limited in the present invention. In addition, the big data platform 102 may include multiple electronic devices, Figure 1 Only one electronic device is taken as an example.
[0083] based on Figure 1 In the example application scenario, in the prior art, it is usually stipulated that developers can only log in to the big data platform 102 through the bastion host 101 in the company's computer room to perform job development. However, in actual applications, developers may need to work from home due to the impact of the environment or emergencies. According to the above description, developers cannot perform job development when working from home, thereby delaying work progress and reducing work efficiency.
[0084] Based on this, an embodiment of the present invention provides a job development method, which can be applied to enable developers to access the big data platform 102 through the terminal device 103 to develop jobs, so that job development is not affected by factors such as geographical location and network environment.
[0085] The job development method provided by the present invention is further explained below with reference to specific embodiments in conjunction with the accompanying drawings, and the embodiments do not constitute a limitation on the embodiments of the present invention.
[0086] See also Figure 2 , is a flow chart of an embodiment of a job development method provided by an embodiment of the present invention. In one example, the method can be applied to Figure 1 The illustrated big data platform 102 includes the following steps:
[0087] Step 201: Receive a target job file, where the target job file includes job flow data of at least one job flow and job data of multiple job nodes included in the job flow.
[0088] When developing a job, developers can define the working logic of the job node by writing program code, and can also input configuration information such as parameters and scheduling according to business needs, thereby forming job flow data and job data, and finally submitting the job flow data and job data to the database of the big data platform for storage to complete the job development. Based on this, in the embodiment of the present invention, a job development template is preset on the big data platform 102, and the structure and format of the job flow data and job data are standardized through the job development template, so that users can fill in the job flow data and job data of the job to be developed in the job development template.
[0089] As an embodiment, the job development template is an EXCLE file, which at least includes a job flow information registration worksheet, a job flow dependency information registration worksheet, a job information registration worksheet, a job dependency information registration worksheet, and a job parameter registration worksheet.
[0090] Each row in the job flow information registration worksheet corresponds to a job flow and is used to record the job flow information of the job flow. Figure 3 As shown, it is an example of a work flow information registration worksheet. Figure 3 The example job flow information includes but is not limited to: job flow name, job flow scheduling configuration information. Furthermore, the job flow scheduling configuration information includes but is not limited to: job flow startup method, first effective business date, time type, start time, end time, time interval, execution time, execution strategy, job flow parallelism, etc.
[0091] Each row in the job flow dependency information registration worksheet corresponds to a job flow and is used to record the job flow dependency information of the job flow. Figure 4 As shown, it is an example of a worksheet for registering job flow dependency information. Figure 4 The illustrated workflow dependency information includes, but is not limited to: workflow name, dependent project name, dependent workflow name, dependent job name, time dependency rule, etc.
[0092] Each row in the job information registration worksheet corresponds to a job node and is used to record the job information of the job node. Figure 5 As shown, this is an example of a worksheet for job information registration. Figure 5 The example work page information includes but is not limited to: job flow name, job name, job logic code, job scheduling configuration information, etc. Furthermore, the job scheduling configuration information includes but is not limited to: job type, job frequency type, cycle frequency, execution calendar, priority, number of failed retries, etc.
[0093] Each row in the job dependency information registration worksheet corresponds to a job node and is used to record the job dependency information of the job node. Figure 6 The following is an example of a job dependency information registration worksheet. Figure 6 The illustrated job dependency information includes, but is not limited to: job flow name, job name, dependent project name, dependent job flow name, dependent job name, time dependency rule, etc.
[0094] Each row in the job parameter registration worksheet corresponds to a job node and is used to record the job parameters of the job node. Figure 7 As shown, it is an example of a worksheet for registering operation parameters. Figure 7 The illustrated job parameters include, but are not limited to: job flow name, job name, parameter name, parameter type, parameter description, parameter value, etc.
[0095] It should be noted that the information recorded in the above-mentioned worksheets may include mandatory information and optional information. Mandatory information means that it must be filled in, such as job flow name, job name, parameter name, parameter value, etc. Optional information means that it does not need to be filled in, such as job flow scheduling configuration information, job scheduling configuration information, parameter description, etc.
[0096] As another embodiment, the above-mentioned job development template may also include but is not limited to a dictionary table, in which the enumeration values of various job flow data and job data are recorded. Figure 8 The following is an example of a dictionary table.
[0097] In the application, different job development templates may have the same dictionary table or different dictionary tables, and the present invention does not limit this. In the case where different job development templates have the same dictionary table, an EXCLE file may be set separately, and the EXCLE file records the enumeration values of various job flow data and job data. When presetting the job development template, the EXCLE file may be loaded into the job development template as a dictionary table. In this way, for different job development templates, there is no need to set the dictionary table multiple times, thereby simplifying the operation process of presetting the job development template.
[0098] Furthermore, after forming the above-mentioned dictionary table, data verification can be performed on the corresponding fields in other worksheets in the job development template according to the dictionary table to verify whether the optional values of the corresponding fields are all included in the dictionary table. Figure 3 The execution strategy field in the example job flow information registration worksheet has two optional values in the drop-down options, namely serial and parallel. Then check whether the two optional values are both included in Figure 8 In the dictionary table of the example.
[0099] Based on the above description, as an embodiment, Figure 1 In the example application scenario, the big data platform 102 can provide a function of downloading a job development template, and the user can download the job development template from the big data platform 102 through the terminal device 103. Specifically, the big data platform 102 can provide a job development template download interface. When the terminal device 103 is connected to the big data platform 102, the user can interact with the job development template download interface through the terminal device 103. When the terminal device 103 detects that the user triggers the download operation of the job development template on the job development template download interface, it sends a job development template download request to the big data platform 102. In this way, the big data platform 102 can receive the job development template download request from the terminal device, and then send the preset job file template to the terminal device 103 based on the job development template download request.
[0100] Furthermore, the user can input the job flow data and the job data in the job development template through the terminal device 103, thereby generating the above-mentioned target job file. It should be noted that, from the above-mentioned description of the job development template, it can be known that the target job file may include the job flow data of multiple job flows and the job data of multiple job nodes in each job flow, that is, when the user performs job development through the job development template, batch job development can be realized. At the same time, in a job development template such as an EXCLE file, when the user performs batch job development, for multiple job nodes with only individual job information different, such as multiple job nodes with different database table information, the user can input the complete job information of one of the job nodes in the job development template, and then perform batch copying. Finally, for the batch copied job information, simply adjust the individual job information therein, which greatly improves the user's job development efficiency.
[0101] Furthermore, the big data platform 102 may provide a function of uploading a job file, and the user may upload the job file to the big data platform 102 through the terminal device 103. Specifically, the big data platform 102 may provide a job file upload interface, and when the terminal device 103 is connected to the big data platform 102, the user may interact with the job file upload interface through the terminal device 103. When the terminal device 103 detects that the user triggers a job file upload operation on the job file upload interface, the terminal device 103 sends a job file upload request to the big data platform 102, and the job file upload request may include the above-mentioned target job file, so that the big data platform 102 may receive the target job file from the terminal device.
[0102] Step 202: parse the target job file to determine at least one job flow object and each job node object corresponding to the at least one job flow object.
[0103] In this step 202, firstly, for each row of the job flow information registration worksheet in the target job file, a job flow object is created, and the attribute information of the job flow object is initialized according to the job flow information recorded in the row, and for each row of the job flow dependency information registration worksheet in the target job file, the job flow dependency information recorded in the row is set as the job flow dependency information of the job flow object corresponding to the row. The correspondence here means that the job flow name recorded in the row of the job flow dependency information registration worksheet is consistent with the job flow name of the job flow object.
[0104] As can be seen from the above description, the job flow information includes optional information. Therefore, when initializing the attribute information of the job flow object according to the job flow information recorded in the row, for each item of job flow information recorded in the row, if the value of the job flow information is empty, the attribute information of the job flow object is set using a preset value (hereinafter referred to as the first preset value for convenience of description); if the value of the job flow information is not empty, the attribute information of the job flow object is set using the value of the job flow information recorded in the row.
[0105] Secondly, for each row in the job information registration worksheet in the target job file, a job object is created, and the attribute information of the job node object is initialized according to the job information recorded in the row. For each row in the job dependency information registration worksheet in the target job file, the job dependency information recorded in the row is set as the job dependency information of the job node object corresponding to the row. For each row in the job parameter registration worksheet in the target job file, the job parameters recorded in the row are set as the job parameters of the job node object corresponding to the row.
[0106] As can be seen from the above description, the job information also includes optional information. Therefore, when initializing the attribute information of the job node object according to the job information recorded in the row, for each item of job information recorded in the row, if the value of the job information is empty, the preset value (hereinafter referred to as the second preset value for the convenience of description) is used to set the attribute information of the job node object; if the value of the job information is not empty, the value of the job information recorded in the row is used to set the attribute information of the job node object.
[0107] Step 203: store at least one job flow object into a preset job flow table, and store each job node object corresponding to the at least one job flow object into a preset job table to complete job development.
[0108] Table 1 below is an example of a job flow table:
[0109] Table 1
[0110] Job Stream Name Job flow unique identifier Job flow scheduling configuration information Job flow dependency information ... ... ... ...
[0111] Each row in the above Table 1 represents a job flow object, in which the job flow name, job flow unique identifier, and job flow scheduling configuration information are collectively referred to as attribute information of the job flow object.
[0112] It should be noted that, in the application, the above-mentioned unique identifier of the work flow can be automatically generated by the big data platform 102 according to the preset coding rules.
[0113] Table 2 below is an example of a worksheet:
[0114] Table 2
[0115]
[0116] Each row in the above Table 2 represents a job node object, in which the job flow unique identifier, job name, job version, job development method, and job scheduling configuration information are collectively referred to as attribute information of the job node object.
[0117] It should be noted that the above-mentioned job development method is automatically filled in by the big data platform 102 according to the actual job development method. For example, if the job development method provided by the present invention is applied, the value of the above-mentioned job development method is EXCLE, indicating that the job is generated by batch importing EXCLE files.
[0118] The technical solution provided by the embodiment of the present invention receives a target job file, parses the target job file, obtains at least one job flow object and each job node object corresponding to the at least one job flow object, stores the at least one job flow object in a preset job flow table, and stores each job node object corresponding to the at least one job flow object in a preset job table to complete job development, thereby realizing offline job development, so that job development is not affected by factors such as geographical location and network environment. At the same time, since the target job file may include at least one job flow and each business node of at least one job flow, batch job development can be realized based on the target job file, thereby improving job development efficiency.
[0119] See also Fig. 9 , is a flow chart of another embodiment of a job development method provided by an embodiment of the present invention, comprising the following steps:
[0120] Step 901: The terminal device sends a job development template download request to the big data platform.
[0121] Step 902: The big data platform sends the preset job development template to the terminal device based on the job development template download request.
[0122] Step 903: The terminal device generates a target job file according to the job flow data and job data input by the user in the job development template, and sends the target job file to the big data platform.
[0123] Step 904: The big data platform performs a validity check on the target job file. If the check result indicates that the target job file is legal, execute step 905; if the check result indicates that the target job file is illegal, execute step 907.
[0124] In an embodiment of the present invention, the validity check of the target job file includes but is not limited to: checking the required items in each worksheet in the target job file, and checking the validity of the values of each information in each worksheet. Here, checking the validity of the values of each information in each worksheet refers to checking whether the values in each information belong to the above-mentioned dictionary table.
[0125] Step 905: The big data platform parses the target job file to obtain at least one job flow object and each job node object corresponding to the at least one job flow object.
[0126] Step 906: The big data platform stores at least one job flow object in a preset job flow table, and stores each job node object corresponding to at least one job flow object in a preset job table to complete job development; the process ends.
[0127] Step 907: The big data platform sends an indication message to the terminal device to indicate that the target job file is illegal.
[0128] For a detailed description of the above steps 901 to 907, please refer to the above Figure 2 The relevant descriptions in the process shown will not be repeated here.
[0129] pass Fig. 9 The process shown realizes offline job development, so that job development is not affected by factors such as geographical location and network environment. At the same time, since the target job file may include at least one job flow and at least one business node of each job flow, batch job development can be realized based on the target job file, thereby improving job development efficiency.
[0130] See also Fig.10 , is a block diagram of an embodiment of a job development device provided by an embodiment of the present invention, the device comprising:
[0131] The file receiving module 1001 is used to receive a target job file, wherein the target job file includes job flow data of at least one job flow and job data of multiple job nodes included in the job flow;
[0132] The object determination module 1002 is used to parse the target job file to obtain at least one job flow object and each job node object corresponding to at least one job flow object;
[0133] The object storage module 1003 is used to store at least one of the job flow objects into a preset job flow table, and store each job node object corresponding to at least one of the job flow objects into a preset job table to complete job development.
[0134] In a possible implementation, it also includes ( Fig.10 not shown):
[0135] A request receiving module, used for receiving a job development template download request from a terminal device;
[0136] The template sending module is used to send the preset job development template to the terminal device based on the job development template download request, so that the user can input the job flow data and job data in the job development template to generate the target job file.
[0137] In a possible implementation, the job development template is an EXCLE file, which at least includes a job flow information registration worksheet, a job flow dependency information registration worksheet, a job information registration worksheet, a job dependency information registration worksheet, and a job parameter registration worksheet;
[0138] Each row in the job flow information registration worksheet corresponds to a job flow and is used to record the job flow information of the job flow;
[0139] Each row in the job flow dependency information registration work table corresponds to a job flow and is used to record the job flow dependency information of the job flow;
[0140] Each row in the job information registration worksheet corresponds to a job node and is used to record the job information of the job node;
[0141] Each row in the job dependency information registration worksheet corresponds to a job node and is used to record the job dependency information of the job node;
[0142] Each row in the job parameter registration worksheet corresponds to a job node and is used to record the job parameters of the job node.
[0143] In a possible implementation, the object determination module 1002 includes: Fig.10 not shown):
[0144] A first creation submodule is used to create a job flow object for each row of the job flow information registration work table in the target job file;
[0145] A first initialization submodule, configured to initialize the attribute information of the workflow object according to the workflow information recorded in the row;
[0146] The first setting submodule is used for setting the workflow dependency information recorded in each row in the workflow dependency information registration work table of the target job file as the workflow dependency information of the workflow object corresponding to the row.
[0147] In a possible implementation manner, the first initialization submodule is specifically used to:
[0148] For each item of the workflow information recorded in the row, if the value of the workflow information is empty, the attribute information of the workflow object is set using a first preset value; if the value of the workflow information is not empty, the attribute information of the workflow object is set using the value of the workflow information.
[0149] In a possible implementation, the object determination module 1002 includes: Fig.10 not shown):
[0150] A second creation submodule is used to create a job object for each row of the job information registration worksheet in the target job file;
[0151] A second initialization submodule, configured to initialize attribute information of the job node object according to the job information recorded in the row;
[0152] A second setting submodule is used for setting, for each row in the job dependency information registration work table in the target job file, the job dependency information recorded in the row as the job dependency information of the job node object corresponding to the row;
[0153] The third setting submodule is used to set, for each row in the job parameter registration worksheet in the target job file, the job parameters recorded in the row as the job parameters of the job node object corresponding to the row.
[0154] In a possible implementation manner, the second initialization submodule is specifically used to:
[0155] For each item of the job information recorded in the row, if the value of the job information is empty, setting the attribute information of the job node object by using a second preset value;
[0156] If the value of the job information is not empty, the attribute information of the job node object is set using the value of the job information.
[0157] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Fig.11 The electronic device 1100 shown includes: at least one processor 1101, a memory 1102, at least one network interface 1104 and other user interfaces 1103. The various components in the electronic device 1100 are coupled together via a bus system 1105. It is understood that the bus system 1105 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 1105 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 1105 is not described in detail. Fig.11 Various buses are labeled as bus system 1105.
[0158] The user interface 1103 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).
[0159] It can be understood that the memory 1102 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM). The memory 1102 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0160] In some embodiments, the memory 1102 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 11021 and an application program 11022 .
[0161] The operating system 11021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 11022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 11022.
[0162] In the embodiment of the present invention, by calling the program or instruction stored in the memory 1102, specifically, the program or instruction stored in the application 11022, the processor 1101 is used to execute the method steps provided by each method embodiment, for example, including:
[0163] receiving a target job file, wherein the target job file includes job flow data of at least one job flow and job data of a plurality of job nodes included in the job flow;
[0164] Parsing the target job file to obtain at least one job flow object and each job node object corresponding to at least one job flow object;
[0165] At least one of the job flow objects is stored in a preset job flow table, and each job node object corresponding to at least one of the job flow objects is stored in a preset job table to complete job development.
[0166] The method disclosed in the above embodiment of the present invention can be applied to the processor 1101, or implemented by the processor 1101. The processor 1101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 1101 or the instruction in the form of software. The above processor 1101 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1102, and the processor 1101 reads the information in the memory 1102 and completes the steps of the above method in combination with its hardware.
[0167] It is understood that the embodiments described herein can be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.
[0168] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0169] The electronic device provided in this embodiment may be Fig.11 The electronic device shown in FIG. 1 may perform the following steps: Figure 2 and Fig. 9 All steps of the job development method in order to achieve Figure 2 and Fig. 9 For details, please refer to the technical effects of the operation development method in Figure 2 and Fig. 9 For the sake of brevity, the relevant description is not repeated here.
[0170] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.
[0171] When one or more programs in the storage medium can be executed by one or more processors, the above-mentioned job development method executed on the electronic device side can be implemented.
[0172] The processor is used to execute the job development program stored in the memory to implement the following steps of the job development method executed on the electronic device side:
[0173] receiving a target job file, wherein the target job file includes job flow data of at least one job flow and job data of a plurality of job nodes included in the job flow;
[0174] Parsing the target job file to obtain at least one job flow object and each job node object corresponding to at least one job flow object;
[0175] At least one of the job flow objects is stored in a preset job flow table, and each job node object corresponding to at least one of the job flow objects is stored in a preset job table to complete job development.
[0176] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0177] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0178] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for developing a job, characterized in that: Applied to a big data platform, the big data platform is pre-installed with a job development template, and the structure and format of job flow data and job data are standardized through the job development template. The method includes: Receive a target job file, the target job file including job flow data of at least one job flow and job data of multiple job nodes included in the job flow; wherein the target job file is generated in the following manner: a terminal device accesses the big data platform, downloads the job development template from the big data platform, so that a user can input the job flow data and job data in the job development template to generate the target job file, and the terminal device uploads the target job file to the big data platform; Parsing the target job file to obtain at least one job flow object and each job node object corresponding to at least one job flow object; At least one of the job flow objects is stored in a preset job flow table, and each job node object corresponding to at least one of the job flow objects is stored in a preset job table to complete job development.
2. The method according to claim 1, characterized in that Prior to the method, it also includes: receiving a job development template download request from a terminal device; Based on the job development template download request, a preset job development template is sent to the terminal device, so that the user can input the job flow data and the job data in the job development template to generate the target job file.
3. The method according to claim 2, characterized in that The job development template is an EXCLE file, which at least includes a job flow information registration worksheet, a job flow dependency information registration worksheet, a job information registration worksheet, a job dependency information registration worksheet, and a job parameter registration worksheet; Each row in the job flow information registration worksheet corresponds to a job flow and is used to record the job flow information of the job flow; Each row in the job flow dependency information registration work table corresponds to a job flow and is used to record the job flow dependency information of the job flow; Each row in the job information registration worksheet corresponds to a job node and is used to record the job information of the job node; Each row in the job dependency information registration worksheet corresponds to a job node and is used to record the job dependency information of the job node; Each row in the job parameter registration worksheet corresponds to a job node and is used to record the job parameters of the job node.
4. The method according to claim 3, characterized in that The step of parsing the target job file to obtain at least one job flow object includes: For each row of the job flow information registration work table in the target job file, create a job flow object, and initialize the attribute information of the job flow object according to the job flow information recorded in the row; For each row in the workflow dependency information registration work table in the target job file, the workflow dependency information recorded in the row is set as the workflow dependency information of the workflow object corresponding to the row.
5. The method according to claim 4, characterized in that Initializing the attribute information of the workflow object according to the workflow information recorded in the row includes: For each item of the workflow information recorded in the row, if the value of the workflow information is empty, setting the attribute information of the workflow object by using a first preset value; If the value of the workflow information is not empty, the attribute information of the workflow object is set using the value of the workflow information.
6. The method according to claim 3, characterized in that The step of parsing the target job file to obtain each job node object corresponding to at least one job flow object includes: For each row of the job information registration work table in the target job file, create a job object, and initialize the attribute information of the job node object according to the job information recorded in the row; For each row in the job dependency information registration work table in the target job file, setting the job dependency information recorded in the row as the job dependency information of the job node object corresponding to the row; For each row in the job parameter registration work table in the target job file, the job parameters recorded in the row are set as the job parameters of the job node object corresponding to the row.
7. The method according to claim 6, characterized in that Initializing the attribute information of the job node object according to the job information recorded in the row includes: For each item of the job information recorded in the row, if the value of the job information is empty, setting the attribute information of the job node object by using a second preset value; If the value of the job information is not empty, the attribute information of the job node object is set using the value of the job information.
8. A job development device, characterized in that: Applied to a big data platform, the big data platform is pre-installed with a job development template, and the structure and format of the job flow data and the job data are standardized through the job development template. The device includes: A file receiving module is used to receive a target job file, wherein the target job file includes job flow data of at least one job flow and job data of multiple job nodes included in the job flow; wherein the target job file is generated in the following manner: a terminal device downloads the job development template from the big data platform, so that a user can input the job flow data and job data in the job development template to generate the target job file, and the terminal device uploads the target job file to the big data platform; An object determination module, configured to determine at least one job flow object and each job node object corresponding to at least one of the job flow objects based on the target job file; The object storage module is used to store at least one of the job flow objects in a preset job flow table, and store each job node object corresponding to at least one of the job flow objects in a preset job table to complete job development.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a job development program stored in the memory to implement the job development method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the job development method according to any one of claims 1 to 7.
