Work order processing method, device, system and electronic equipment
By generating workflow work orders that can be identified by the target scheduling system on the work order management end, the cumbersome problem of switching task scheduling systems is solved, data versatility and scheduling flexibility are achieved, and the complexity of the task scheduling process is reduced.
Patent Information
- Application Number
- CN202010109026.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-21
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-02-21
AI Technical Summary
In the existing technology, the task scheduling system needs to redefine the workflow work order when switching, resulting in a highly cumbersome task scheduling process.
By pre-defining workflow description information on the work order management end, a workflow work order in the form of data that can be recognized by the target scheduling system is generated and sent to the target scheduling system to avoid defining work orders directly in the scheduling system and ensure data universality sex.
It reduces the complexity of the task scheduling process, avoids repeated settings of the same workflow when switching scheduling systems, and improves the flexibility and efficiency of task scheduling.
Smart Images

Figure CN113298331B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of task scheduling, and in particular to a work order processing method, device, system and electronic equipment. Background Art
[0002] In the task scheduling process, the scheduling node in the task scheduling system dispatches the meta-tasks indicated by the workflow work order to the task processing device according to the task flow work order, and then the task processing device processes the meta-tasks. The workflow work order records multiple meta-tasks and the dependencies between the meta-tasks. In addition, the task processing device can be a device in the task scheduling system or a device associated with the task scheduling system for executing tasks.
[0003] In the related art, the workflow worksheets processed by the task scheduling system are extracted from a database associated with the task scheduling system, and the task flow worksheets in the associated database are defined in a data format that can be recognized by the task scheduling system.
[0004] In the process of implementing this application, the inventors found that the related technology has at least the following problems:
[0005] Since workflow work orders are pre-defined in the data format that the task scheduling system can recognize, if the task scheduling system switches, for the same workflow, the workflow work order must be re-defined by setting the workflow to adapt to the new task scheduling system, which undoubtedly makes the task scheduling process more cumbersome. Summary of the invention
[0006] The purpose of the embodiments of the present application is to provide a work order processing method, device, system and electronic device to solve the problem of high complexity of the task scheduling process in the related technology. The specific technical solution is as follows:
[0007] In a first aspect, an embodiment of the present application provides a work order processing method, which is applied to a work order management end; the work order management end establishes communication with a target scheduling system in advance, and the target scheduling system is a task scheduling system that is a work order recipient; the method includes:
[0008] Acquire workflow description information of the workflow to be processed from a predefined information base containing workflow description information as target description information, wherein each workflow description information is information used to describe each meta-task indicated by a workflow and the dependency relationship between each meta-task;
[0009] Using the target description information, a workflow work order in the target data form is generated as a work order to be issued; wherein the target data form is a data form of the work order that can be recognized by the target scheduling system;
[0010] The work order to be issued is sent to the target scheduling system, so that the target scheduling system receives the work order to be issued, and sequentially executes each meta-task indicated by the work order to be issued to obtain an execution result.
[0011] Optionally, the method further comprises:
[0012] Generate workflow description information of any workflow to store the workflow description information in the information library.
[0013] Optionally, the generating of workflow description information of any workflow includes:
[0014] Displaying an information editing interface for user editing; wherein the information editing interface displays identification information of multiple meta-tasks in a predetermined database;
[0015] Acquiring task combination information for a workflow set by the user in the information editing interface, the task combination information including identification information selected by the user and dependency relationships set for the selected identification information;
[0016] The workflow description information to be generated is generated by taking the meta-task indicated by the identification information in the task combination information as the meta-task required to be described in the workflow description information to be generated, and taking the dependency relationship in the task combination information as the dependency relationship required to be described in the workflow description information to be generated.
[0017] Optionally, the display information editing interface includes:
[0018] Determine, from a plurality of first-category meta-tasks in a predetermined database, a first-category meta-task for which the user has available authority; the first-category meta-task is a meta-task belonging to a local mode;
[0019] The information editing interface is displayed with the determined first-category meta-task and second-category meta-task as display elements, wherein the second-category meta-task is a meta-task belonging to a global mode in the predetermined database.
[0020] Optionally, the using the target description information to generate a workflow work order in the form of target data as a work order to be issued includes:
[0021] Determine an adapter module that matches the target scheduling system; wherein each task scheduling system corresponds to an adapter module;
[0022] The target description information is transmitted to an adaptation module matching the target scheduling system, so that the adaptation module matching the target scheduling system generates a workflow work order in the form of target data by using the target description information.
[0023] Optionally, before sending the work order to be issued to the target scheduling system, the method further includes:
[0024] Marking the work order type for the work order to be issued, where the work order type is a global type or a non-global type;
[0025] Correspondingly, after the target scheduling system executes each meta-task indicated by the work order to be issued in sequence and obtains the execution result, if the work order type of the work order to be issued is a global type, the execution result of each meta-task of the work order to be issued is stored in the designated shared area; if the work order type of the work order to be issued is a non-global type, the execution result of each meta-task indicated by the work order to be issued is stored in the designated dedicated area.
[0026] In a second aspect, an embodiment of the present application provides a work order processing system, including: a work order management terminal and a target scheduling system; the target scheduling system is a task scheduler that is a work order recipient, and the work order management terminal establishes communication with the target scheduling system in advance;
[0027] The work order management terminal is used to obtain workflow description information of the workflow to be processed from a predefined information base containing workflow description information as target description information, wherein each workflow description information is information used to describe each meta-task indicated by a workflow and the dependency relationship between each meta-task; using the target description information, generate a workflow work order in the target data form as the work order to be issued; wherein the target data form is the data form of the work order that can be recognized by the target scheduling system; and send the work order to be issued to the target scheduling system;
[0028] The target scheduling system is used to receive the work order to be issued sent by the work order management terminal, and execute each meta-task indicated by the work order to be issued in sequence to obtain an execution result.
[0029] In a third aspect, an embodiment of the present application provides a work order processing device, which is applied to a work order management end; the work order management end establishes communication with a target scheduling system in advance, and the target scheduling system is a task scheduling system as a work order recipient; the device includes:
[0030] An acquisition module, used to acquire workflow description information of a workflow to be processed from a predefined information base containing workflow description information as target description information, wherein each workflow description information is information used to describe each meta-task indicated by a workflow and the dependency relationship between each meta-task;
[0031] A generation module, used to generate a workflow work order in a target data form using the target description information as a work order to be issued; wherein the target data form is a data form of a work order that can be recognized by the target scheduling system;
[0032] The sending module is used to send the work order to be issued to the target scheduling system, so that the target scheduling system receives the work order to be issued and sequentially executes each meta-task indicated by the work order to be issued to obtain an execution result.
[0033] Optionally, the device further comprises:
[0034] The description information generating module is used to generate workflow description information of any workflow, so as to store the workflow description information in the information base.
[0035] Optionally, the description information generating module is specifically used to:
[0036] Displaying an information editing interface for user editing; wherein the information editing interface displays identification information of multiple meta-tasks in a predetermined database;
[0037] Acquiring task combination information for a workflow set by the user in the information editing interface, the task combination information including identification information selected by the user and dependency relationships set for the selected identification information;
[0038] The workflow description information to be generated is generated by taking the meta-task indicated by the identification information in the task combination information as the meta-task required to be described in the workflow description information to be generated, and taking the dependency relationship in the task combination information as the dependency relationship required to be described in the workflow description information to be generated.
[0039] Optionally, the description information generation module displays an information editing interface, including:
[0040] Determine, from a plurality of first-category meta-tasks in a predetermined database, a first-category meta-task for which the user has available authority; the first-category meta-task is a meta-task belonging to a local mode;
[0041] The information editing interface is displayed with the determined first-category meta-task and second-category meta-task as display elements, wherein the second-category meta-task is a meta-task belonging to a global mode in the predetermined database.
[0042] Optionally, the generating module is specifically used for:
[0043] Determine an adapter module that matches the target scheduling system; wherein each task scheduling system corresponds to an adapter module;
[0044] The target description information is transmitted to an adaptation module matching the target scheduling system, so that the adaptation module matching the target scheduling system uses the target description information to generate a workflow work order in the form of target data as a work order to be issued.
[0045] Optionally, the device further comprises:
[0046] A marking module, used for marking the work order type for the work order to be issued before the sending module sends the work order to the target scheduling system, wherein the work order type is a global type or a non-global type;
[0047] Correspondingly, after the target scheduling system executes each meta-task indicated by the work order to be issued in sequence and obtains the execution result, if the work order type of the work order to be issued is a global type, the execution result of each meta-task of the work order to be issued is stored in the designated shared area; if the work order type of the work order to be issued is a non-global type, the execution result of each meta-task indicated by the work order to be issued is stored in the designated dedicated area.
[0048] In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
[0049] Memory, used to store computer programs;
[0050] The processor is used to implement the steps of the work order processing method provided in the first aspect when executing the program stored in the memory.
[0051] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the work order processing method provided in the first aspect are implemented.
[0052] In the solution provided in the embodiment of the present application, a work order management terminal is added, and a workflow work order is issued to the task scheduling system through the work order management terminal, so as to avoid the definition limitations of directly defining the work order in the scheduling system; and the workflow description information is pre-set instead of the workflow work order, so as to ensure the universality of the data. In this way, when the scheduling system switches, the work order management terminal only needs to use the workflow description information to generate a workflow work order in the form of data that matches the scheduling system currently switched to, thus avoiding repeated settings for the same workflow. Therefore, through this solution, the cumbersomeness of the task scheduling process can be reduced.
[0053] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0055] Figure 1 A flowchart of a work order processing method provided in an embodiment of the present application;
[0056] Figure 2 A flowchart of a method for generating workflow description information provided in an embodiment of the present application;
[0057] Figure 3 An example is given of the matching relationship between each adapter module in the work order management terminal and the corresponding scheduling system;
[0058] Figure 4 A schematic diagram of the structure of a work order processing device provided in an embodiment of the present application;
[0059] Figure 5 A schematic diagram of the structure of a work order processing system provided in an embodiment of the present application;
[0060] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0062] In the related art, during the task scheduling process, the scheduling node in the task scheduling system dispatches each meta-task indicated by the workflow work order to the task processing device according to the pre-defined workflow work order, and then the task processing device implements the processing of the meta-task. Among them, the workflow work order records multiple meta-tasks and the dependencies between each meta-task. In addition, the task processing device can be a device in the task scheduling system, or a device associated with the task scheduling system for executing tasks. For example: for the Apache AirFlow scheduling system, the data form of the workflow work order is DAG (directed acyclic graph), that is, the directed acyclic graph is used to describe the various meta-tasks that constitute the workflow and the dependencies between each meta-task; accordingly, the scheduling node dispatches tasks to each working node in the scheduling system according to the pre-defined DAG (directed acyclic graph), and then each working node implements the processing of the meta-task. Another example: for the Apache Oozie scheduling system, the data format of the workflow work order is the workflow.xml file, wherein the start and end meta-tasks and the execution logic of the workflow are described in the workflow.xml file through actions such as start, end, kill, for, and join, that is, the meta-tasks that make up the workflow and the dependencies of each meta-task are described; accordingly, the scheduling node dispatches tasks to the YARN node of the Hadoop big data cluster associated with the scheduling system according to the pre-defined workflow.xml file, and then the YARN node implements the processing of the meta-tasks.
[0063] In the process of implementing this application, the inventors found that the related technology has at least the following problems:
[0064] Since the workflow work order is pre-defined in the data form that the task scheduling system can recognize, if the task scheduling system is switched, for the same workflow, the workflow work order must be redefined by setting the workflow to adapt to the new scheduling system, which undoubtedly makes the task scheduling process more cumbersome. Still taking the above-mentioned Apache AirFlow scheduling system and Apache Oozie scheduling system as an example, if you switch from the Apache AirFlow scheduling system to the Apache Oozie scheduling system, the DAG (directed acyclic graph) will not be applicable to Apache Oozie, and the workflow represented by the DAG (directed acyclic graph) must be re-set in Apache Oozie to define the workflow.xml file, which undoubtedly makes the task scheduling process more cumbersome.
[0065] In order to solve the problems existing in the related technologies, the embodiments of the present application provide a work order processing method, system, device and electronic device.
[0066] The following first introduces a work order processing method provided in an embodiment of the present application.
[0067] Among them, the execution subject of a work order processing method provided in an embodiment of the present application can be a work order management terminal. In a specific application, the work order management terminal can be an APP (Application) or a web client for implementing workflow work order processing, which is reasonable. It can be understood that the so-called workflow work order is a work document that records a workflow, and the workflow includes multiple meta-tasks and dependencies between multiple meta-tasks.
[0068] In addition, the work order management terminal establishes communication with the target scheduling system in advance so that the work order management terminal can send workflow work orders to the target scheduling system, which is the task scheduling system that receives the work order. It can be understood that when the scheduling system is switched, the task scheduling system that receives the work order changes. At this time, the task scheduling system connected to the work order management terminal also changes. For the sake of clarity, the target scheduling system refers to the task scheduling system of the work order receiver, that is, the task scheduling system connected to the work order management terminal.
[0069] In addition, in order to solve the technical problems of the related technology, in addition to adding a work order management terminal, an information base containing workflow description information is predefined, and each workflow description information is used to describe each meta-task indicated by a workflow and the dependency relationship of each meta-task. It can be understood that the workflow description information is only information describing the workflow and does not belong to any work order data form, so the data universality can be guaranteed.
[0070] In a specific application, the workflow description information may include but is not limited to: the identification of each meta-task, and the dependency relationship of each meta-task. Among them, the so-called dependency relationship may include an event dependency relationship, which may reflect which meta-task a meta-task must be executed after. Of course, the event dependency relationship may also be referred to as the relationship between the parent task and the child task, and the child task is executed only after the parent task is executed. In addition, in addition to the event dependency relationship, the dependency relationship may also include a time dependency relationship, that is, the initial meta-task in the workflow is executed at a certain time point. Among them, the meta-task is the smallest task unit, and the task data of the meta-task may include: task item information, which is used to indicate what things are done, and accordingly, the task data of the meta-task may indicate what things are done; of course, in addition to the task item information, the task data of the meta-task may also include: the identification information of the tool program required to process the meta-task, and at this time, the task data of the meta-task may indicate which tools are used to do what things. Among them, the tool program may be: a programming tool corresponding to programming languages such as Phthon, Java, and Shell, and this application does not limit the data content of the specific meta-task.
[0071] Furthermore, each workflow description information can be named by the flow identifier of the described workflow, so that when any flow identifier is known, the flow identifier can be used as a query basis to search for the workflow description information of the workflow with the flow identifier from the information base. In addition, the storage format of the workflow description information is not limited here, for example: the workflow description information is stored in the form of a text document, or in the form of a list, etc.
[0072] like Figure 1 As shown, a work order processing method provided in an embodiment of the present application may include the following steps:
[0073] S101, acquiring workflow description information of a workflow to be processed from a predefined information base containing workflow description information as target description information;
[0074] In a specific application, the work order management terminal may execute S101 when it is detected that a predetermined sending condition is met, wherein the predetermined sending condition may include but is not limited to: reaching a predetermined time point, or receiving a predetermined sending instruction, and the like.
[0075] Furthermore, the number of the workflows to be processed may be one or more. In addition, the workflows to be processed may be specified manually, for example, by outputting an interface containing the identifiers of each workflow to the management personnel, and then the management personnel may select the identifier through the interface and submit it to the work order management terminal, so that the work order management terminal may learn about the workflows to be processed. Of course, the method for determining the workflows to be processed may also include: the work order management terminal determines the workflows to be sent at the current time based on the pre-set correspondence between the workflows and the sending time range, thereby obtaining the workflows to be processed, which is also reasonable.
[0076] It is understandable that before S101, the work order management end can generate workflow description information of any workflow to store the workflow description information in the information library. In this way, one or more workflow description information may exist in the information library. Among them, in order to make the scheme clear and the layout clear, the specific implementation method of generating workflow description information of any workflow will be introduced later. S102, using the target description information, generate a workflow work order in the form of target data as the work order to be issued; wherein, the target data form is the data form of the work order that can be recognized by the target scheduling system;
[0077] After obtaining the workflow description information of the workflow to be processed, in order to enable the target scheduling system as the work order recipient to recognize the work order, the work order management end can use the target description information, that is, the acquired workflow description information, to generate a workflow work order in the form of target data about the workflow described by the target description information as the work order to be issued.
[0078] For example, if the task scheduling system that serves as the work order recipient is the Apache AirFlow scheduling system, and the target data is in the form of a DAG (directed acyclic graph), then the target description information can be used to generate a workflow work order in the form of a DAG (directed acyclic graph) regarding the workflow described by the target description information.
[0079] Exemplarily, if the task scheduling system serving as the work order recipient is the Apache Oozie scheduling system, and the target data is in the form of a workflow.xml file, then the target description information can be used to generate a workflow work order in the form of a workflow.xml file regarding the workflow described by the target description information.
[0080] It should be noted that there are multiple specific implementations of using the target description information to generate a workflow work order in the form of target data. Optionally, in one implementation, using the target description information to generate a workflow work order in the form of target data as a work order to be issued may include:
[0081] Determine an adapter module that matches the target scheduling system; wherein each task scheduling system corresponds to one adapter module;
[0082] The target description information is transmitted to an adapter module matching the target scheduling system, so that the adapter module matching the target scheduling system uses the target description information to generate a workflow work order in the form of target data as a work order to be issued.
[0083] In this implementation, an adapter module that matches the target scheduling system can be determined from the adapter modules pre-set for multiple task scheduling systems. It can be understood that multiple adapter modules with adaptation functions are pre-set, and each adapter module is used to convert any workflow description information into: a workflow work order in a data form that matches the task scheduling system corresponding to the adapter module. In addition, it should be noted that any adapter module is a program module with an information conversion function, wherein the information conversion function of the program module is: a function of converting the workflow description information into a workflow work order in a certain data form. Specifically, the information conversion function of the program module is: converting the workflow description information into a workflow work order in a data form that matches the task scheduling system corresponding to the adapter module.
[0084] Among them, the adaptation module set for multiple task scheduling systems can be set inside the work order management end or outside the work order management end, which is reasonable.
[0085] To facilitate understanding of the scheme, Figure 3 The following is an example of the matching relationship between each adapter module in the work order management terminal and the corresponding scheduling system. Figure 3 As shown, the work order management terminal includes three adapter modules, namely: the adapter module corresponding to the Apache AirFlow scheduling system, the adapter module corresponding to the Apache Oozie scheduling system, and the adapter modules corresponding to other scheduling systems. In this way, when the target scheduling system is the Apache AirFlow scheduling system, the adapter module corresponding to the Apache AirFlow scheduling system can be used, and the target scheduling system is the Apache Oozie scheduling system. The adapter module corresponding to the Apache Oozie scheduling system can be used, and when the target scheduling system is other scheduling systems, the adapter corresponding to other scheduling systems can be used. Among them, the other scheduling system can be any scheduling system other than the Apache AirFlow scheduling system and the Apache Oozie scheduling system, which is not limited here.
[0086] The above-mentioned specific implementation method of using the target description information to generate a workflow worksheet in the form of target data about the workflow described by the target description information is only an example and should not constitute a limitation on the embodiments of the present application.
[0087] S103, sending the work order to be issued to the target scheduling system, so that the target scheduling system receives the work order to be issued, and sequentially executes each meta-task indicated by the work order to be issued to obtain an execution result.
[0088] After obtaining the work order to be issued, the work order to be issued can be sent to the target scheduling system. Correspondingly, the target scheduling system can receive the work order to be issued and execute each meta-task indicated by the work order to be issued in sequence to obtain an execution result.
[0089] The target scheduling system sequentially executes each meta-task indicated by the work order to be issued, and the execution result obtained can be specifically: the scheduling node in the target scheduling system dispatches each meta-task indicated by the work order to be issued to the task processing device according to the work order to be issued, and then the task processing device processes the meta-task to obtain the execution result. The task processing device can be a device in the task scheduling system, or a device associated with the task scheduling system for executing tasks.
[0090] For example, for the Apache AirFlow scheduling system, after receiving the work order to be issued, the scheduling node can dispatch tasks to each working node in the Apache AirFlow scheduling system, and then each working node processes the meta-task to obtain the execution result. For another example: for the Apache Oozie scheduling system, after receiving the work order to be issued, the scheduling node can dispatch tasks to the YARN node of the Hadoop big data cluster associated with the Apache Oozie scheduling system, and then the YARN node processes the meta-task to obtain the execution result.
[0091] In the solution provided in the embodiment of the present application, a work order management terminal is added, and a workflow work order is issued to the task scheduling system through the work order management terminal, so as to avoid the definition limitations of directly defining the work order in the scheduling system; and the workflow description information is pre-set instead of the workflow work order, so as to ensure the universality of the data. In this way, when the scheduling system switches, the work order management terminal only needs to use the workflow description information to generate a workflow work order in the form of data that matches the scheduling system currently switched to, thus avoiding repeated settings for the same workflow. Therefore, through this solution, the cumbersomeness of the task scheduling process can be reduced.
[0092] It should be noted that there are multiple ways to generate any workflow description information. The following is an exemplary introduction to the way to generate any workflow description information.
[0093] like Figure 2 As shown, the workflow description information generated for any workflow may include:
[0094] S201, displaying an information editing interface for user editing; wherein the information editing interface displays identification information of multiple meta-tasks in a predetermined database;
[0095] S202, obtaining task combination information for a workflow set by the user in the information editing interface, the task combination information including identification information selected by the user and dependency relationships set for the selected identification information;
[0096] There are multiple ways to implement the task combination information for a workflow that the user sets in the information editing interface.
[0097] Optionally, in one implementation, after the information editing interface is displayed, the user can select the identification information of each meta-task required for a workflow by clicking, and add the identification information of the meta-task belonging to the parent task to the selected identification information, thereby giving the dependency relationship of the meta-task.
[0098] Optionally, in another implementation, after displaying the information editing interface, the user can drag the identification information of each meta-task required for a workflow to the designated editing area of the information editing interface, and establish a dependency relationship for each identification information in the designated editing area by setting arrows between the identification information, wherein the tail end of the arrow is connected to the meta-task belonging to the parent task, and the head end of the arrow is connected to the meta-task belonging to the child task.
[0099] It can be understood that, for a set of parent tasks and child tasks, the child tasks can only be executed when the parent tasks are executed.
[0100] S203, using the meta-task indicated by the identification information in the task combination information as the meta-task required to be described in the workflow description information to be generated, and the dependency relationship in the task combination information as the dependency relationship required to be described in the workflow description information to be generated, to generate the workflow description information to be generated.
[0101] After S202 is executed, when generating the workflow description information, the relevant information in the task combination information can be used. Specifically, the meta-task indicated by the identification information in the task combination information is used as the meta-task required to be described in the workflow description information to be generated, and the dependency relationship in the task combination information is used as the dependency relationship required to be described in the workflow description information to be generated. In this way, the workflow description information of the workflow indicated by the task combination information is generated.
[0102] In addition, since the reservation database can be used by multiple users, and each meta-task in the reservation database may not be available to each user, the meta-tasks in the reservation database can be divided into first-category meta-tasks and second-category meta-tasks. The first-category meta-tasks are meta-tasks belonging to a local mode, that is, the first-category meta-tasks are only available to some users and not to other users; the second-category meta-tasks are meta-tasks belonging to a global mode, that is, the second-category meta-tasks are open to all users. In view of this situation, the display information editing interface may include:
[0103] Determine, from a plurality of first-category meta-tasks in a predetermined database, a first-category meta-task for which the user has available authority; the first-category meta-task is a meta-task belonging to a local mode;
[0104] The information editing interface is displayed with the determined first-category meta-task and second-category meta-task as display elements, wherein the second-category meta-task is a meta-task belonging to a global mode in the predetermined database.
[0105] In addition, optionally, before sending the work order to be issued to the task scheduling system, the method may further include:
[0106] Marking the work order type for the work order to be issued, where the work order type is a global type or a non-global type;
[0107] Correspondingly, after the target scheduling system executes each meta-task indicated by the work order to be issued in sequence and obtains the execution result, if the work order type of the work order to be issued is a global type, the execution results of each meta-task of the work order to be issued are stored in the designated shared area; if the work order type of the work order to be issued is a non-global type, the execution results of each meta-task indicated by the work order to be issued are stored in the designated dedicated area.
[0108] By setting a global type or a non-global type for the work order to be issued, you can specify the accessible scope of the execution results of each meta-task of the work order to be issued.
[0109] Furthermore, when marking the work order type for the work order to be issued, it can be manually given according to the actual situation; of course, it is not limited to this.
[0110] Corresponding to the above method embodiment, the present application embodiment also provides a work order processing device, which is applied to the work order management end; the work order management end establishes communication with the target scheduling system in advance, and the target scheduling system is a task scheduling system that is the work order receiver. Figure 4 As shown, the work order processing device may include:
[0111] The acquisition module 410 is used to acquire the workflow description information of the workflow to be processed from a predefined information base containing workflow description information as target description information, wherein each workflow description information is information used to describe each meta-task indicated by a workflow and the dependency relationship between each meta-task;
[0112] A generating module 420 is used to generate a workflow work order in a target data form using the target description information as a work order to be issued; wherein the target data form is a data form of a work order that can be recognized by the target scheduling system;
[0113] The sending module 430 is used to send the work order to be issued to the target scheduling system.
[0114] In the solution provided in the embodiment of the present application, a work order management terminal is added, and a workflow work order is issued to the task scheduling system through the work order management terminal, so as to avoid the definition limitations of directly defining the work order in the scheduling system; and the workflow description information is pre-set instead of the workflow work order, so as to ensure the universality of the data. In this way, when the scheduling system switches, the work order management terminal only needs to use the workflow description information to generate a workflow work order in the form of data that matches the scheduling system currently switched to, thus avoiding repeated settings for the same workflow. Therefore, through this solution, the cumbersomeness of the task scheduling process can be reduced.
[0115] Optionally, the device may further include:
[0116] The description information generating module is used to generate workflow description information of any workflow, so as to store the workflow description information in the information base.
[0117] Optionally, the description information generating module is specifically used to:
[0118] Displaying an information editing interface for user editing; wherein the information editing interface displays identification information of multiple meta-tasks in a predetermined database;
[0119] Acquiring task combination information for a workflow set by the user in the information editing interface, the task combination information including identification information selected by the user and dependency relationships set for the selected identification information;
[0120] The workflow description information to be generated is generated by taking the meta-task indicated by the identification information in the task combination information as the meta-task required to be described in the workflow description information to be generated, and taking the dependency relationship in the task combination information as the dependency relationship required to be described in the workflow description information to be generated.
[0121] Optionally, the description information generation module displays an information editing interface, which may include:
[0122] Determine, from a plurality of first-category meta-tasks in a predetermined database, a first-category meta-task for which the user has available authority; the first-category meta-task is a meta-task belonging to a local mode;
[0123] The information editing interface is displayed with the determined first-category meta-task and second-category meta-task as display elements, wherein the second-category meta-task is a meta-task belonging to a global mode in the predetermined database.
[0124] Optionally, the generating module 420 is specifically used for:
[0125] Determine an adapter module that matches the target scheduling system; wherein each task scheduling system corresponds to an adapter module;
[0126] The target description information is transmitted to an adaptation module matching the target scheduling system, so that the adaptation module matching the target scheduling system uses the target description information to generate a workflow work order in the form of target data as a work order to be issued.
[0127] Optionally, the device may further include:
[0128] A marking module, used for marking the work order type for the work order to be issued before the sending module sends the work order to the target scheduling system, wherein the work order type is a global type or a non-global type;
[0129] Correspondingly, after the target scheduling system executes each meta-task indicated by the work order to be issued in sequence and obtains the execution result, if the work order type of the work order to be issued is a global type, the execution result of each meta-task of the work order to be issued is stored in the designated shared area; if the work order type of the work order to be issued is a non-global type, the execution result of each meta-task indicated by the work order to be issued is stored in the designated dedicated area.
[0130] In addition, the present application embodiment also provides a work order processing system. Figure 5As shown, the work order processing system may include: a work order management terminal 510 and a target scheduling system 520; the target scheduling system is a task scheduler that is a work order receiver, and the work order management terminal establishes communication with the target scheduling system in advance;
[0131] The work order management terminal 510 is used to obtain workflow description information of the workflow to be processed from a predefined information base containing workflow description information as target description information, wherein each workflow description information is information used to describe each meta-task indicated by a workflow and the dependency relationship between each meta-task; using the target description information, generate a workflow work order in the target data form as the work order to be issued; wherein the target data form is the data form of the work order that can be recognized by the target scheduling system; and send the work order to be issued to the target scheduling system 520;
[0132] The target scheduling system 520 is used to receive the to-be-issued work order sent by the work order management terminal, and sequentially execute each meta-task indicated by the to-be-issued work order to obtain an execution result.
[0133] Optionally, the work order management terminal 510 is further used to generate workflow description information of any workflow, so as to store the workflow description information in the information base.
[0134] Optionally, the work order management terminal 510 generates workflow description information of any workflow, specifically including:
[0135] Displaying an information editing interface for user editing; wherein the information editing interface displays identification information of multiple meta-tasks in a predetermined database;
[0136] Acquiring task combination information for a workflow set by the user in the information editing interface, the task combination information including identification information selected by the user and dependency relationships set for the selected identification information;
[0137] The workflow description information to be generated is generated by taking the meta-task indicated by the identification information in the task combination information as the meta-task required to be described in the workflow description information to be generated, and taking the dependency relationship in the task combination information as the dependency relationship required to be described in the workflow description information to be generated.
[0138] Optionally, the work order management terminal 510 displays an information editing interface, which may include:
[0139] Determine, from a plurality of first-category meta-tasks in a predetermined database, a first-category meta-task for which the user has available authority; the first-category meta-task is a meta-task belonging to a local mode;
[0140] The information editing interface is displayed with the determined first-category meta-task and second-category meta-task as display elements, wherein the second-category meta-task is a meta-task belonging to a global mode in the predetermined database.
[0141] Optionally, the work order management terminal 510 generates a workflow work order in the form of target data using the target description information as the work order to be issued, which may include:
[0142] Determine an adapter module that matches the target scheduling system; wherein each task scheduling system corresponds to an adapter module;
[0143] The target description information is transmitted to an adaptation module matching the target scheduling system, so that the adaptation module matching the target scheduling system uses the target description information to generate a workflow work order in the form of target data as a work order to be issued.
[0144] Optionally, the work order management terminal 510 is further used to mark the work order type for the work order to be issued before sending the work order to the target scheduling system, and the work order type is a global type or a non-global type;
[0145] Correspondingly, the target scheduling system 520 is also used to execute the various meta-tasks indicated by the work order to be issued in sequence. After obtaining the execution results, if the work order type of the work order to be issued is a global type, the execution results of the various meta-tasks of the work order to be issued are stored in a designated shared area. If the work order type of the work order to be issued is a non-global type, the execution results of the various meta-tasks indicated by the work order to be issued are stored in a designated dedicated area.
[0146] In addition, the present application also provides an electronic device, such as Figure 6 As shown, it includes a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604.
[0147] Memory 603, used for storing computer programs;
[0148] The processor 601 is used to implement the steps of any work order processing method in the above embodiments when executing the program stored in the memory 603.
[0149] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0150] The communication interface is used for communication between the above electronic device and other devices.
[0151] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0152] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0153] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned work order processing methods are implemented.
[0154] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of any work order processing method in the above embodiments.
[0155] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.
[0156] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0157] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0158] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A work order processing method, characterized in that: Applied to a work order management end; the work order management end establishes communication with a target scheduling system in advance, and the target scheduling system is a task scheduling system as a work order recipient, wherein when the scheduling system is switched, the task scheduling system as the work order recipient is changed, and at this time, the task scheduling system connected to the work order management end is also changed; the method comprises: Acquire workflow description information of the workflow to be processed from a predefined information base containing workflow description information as target description information, wherein each workflow description information is information for describing each meta-task indicated by a workflow and the dependency relationship between each meta-task, and for each meta-task, the dependency relationship reflects which meta-task the meta-task must be executed after; Using the target description information, a workflow work order in the target data form is generated as a work order to be issued; wherein the target data form is a data form of the work order that can be recognized by the target scheduling system; Sending the work order to be issued to the target scheduling system, so that the target scheduling system receives the work order to be issued, and sequentially executes each meta-task indicated by the work order to be issued to obtain an execution result; The step of using the target description information to generate a workflow work order in the form of target data as a work order to be issued includes: Determine an adapter module that matches the target scheduling system; wherein each task scheduling system corresponds to an adapter module; The target description information is transmitted to an adapter module matching the target scheduling system, so that the adapter module matching the target scheduling system uses the target description information to generate a workflow work order in the form of target data as a work order to be issued; Among them, there are three adaptation modules, namely: the adaptation module corresponding to the Apache AirFlow scheduling system, the adaptation module corresponding to the ApacheOozie scheduling system, and the adaptation module corresponding to other scheduling systems. The other scheduling system is any scheduling system other than the Apache AirFlow scheduling system and the Apache Oozie scheduling system; The method further comprises: Generate workflow description information of any workflow, and store the workflow description information in the information base; The workflow description information of any workflow is generated, including: Displaying an information editing interface for user editing; wherein the information editing interface displays identification information of multiple meta-tasks in a predetermined database; Acquiring task combination information for a workflow set by the user in the information editing interface, the task combination information including identification information selected by the user and dependency relationships set for the selected identification information; The workflow description information to be generated is generated by using the meta-task indicated by the identification information in the task combination information as the meta-task required to be described in the workflow description information to be generated, and the dependency relationship in the task combination information as the dependency relationship required to be described in the workflow description information to be generated; The acquiring of task combination information for a workflow set by the user in the information editing interface includes: Obtaining identification information of each meta-task required for a workflow selected by the user by clicking after the information editing interface is displayed, and the dependency relationship of the meta-task given by the identification information of the meta-task belonging to the parent task added to the selected identification information; or After the user displays the information editing interface, he drags the identification information of each meta-task required for a workflow to the specified editing area of the information editing interface, and sets arrows between the identification information to establish a dependency relationship for each identification information in the specified editing area, wherein the tail end of the arrow is connected to the meta-task belonging to the parent task, and the head end of the arrow is connected to the meta-task belonging to the child task.
2. The method according to claim 1, characterized in that The display information editing interface includes: Determine, from a plurality of first-category meta-tasks in a predetermined database, a first-category meta-task for which the user has available authority; the first-category meta-task is a meta-task belonging to a local mode; The information editing interface is displayed with the determined first-category meta-task and second-category meta-task as display elements, wherein the second-category meta-task is a meta-task belonging to a global mode in the predetermined database.
3. The method according to claim 1 or 2, characterized in that: Before sending the work order to be issued to the target scheduling system, the method further includes: Marking the work order type for the work order to be issued, where the work order type is a global type or a non-global type; Correspondingly, after the target scheduling system executes each meta-task indicated by the work order to be issued in sequence and obtains the execution result, if the work order type of the work order to be issued is a global type, the execution result of each meta-task of the work order to be issued is stored in the designated shared area; if the work order type of the work order to be issued is a non-global type, the execution result of each meta-task indicated by the work order to be issued is stored in the designated dedicated area.
4. A work order processing system, characterized in that: include: A work order management terminal and a target scheduling system; the target scheduling system is a task scheduling party that is a work order recipient, and the work order management terminal establishes communication with the target scheduling system in advance, wherein when the scheduling system is switched, the task scheduling system that is the work order recipient is changed, and at this time, the task scheduling system connected to the work order management terminal is also changed; The work order management terminal is used to obtain the workflow description information of the workflow to be processed from a predefined information base containing workflow description information as the target description information, wherein each workflow description information is information used to describe each meta-task indicated by a workflow and the dependency relationship of each meta-task, and for each meta-task, the dependency relationship reflects which meta-task the meta-task must be executed after; using the target description information, a workflow work order in the target data form is generated as the work order to be issued; wherein the target data form is the data form of the work order that can be recognized by the target scheduling system; the The work order to be issued is sent to the target scheduling system; wherein, the use of the target description information to generate a workflow work order in the form of target data as the work order to be issued includes: determining an adapter module that matches the target scheduling system; wherein each task scheduling system corresponds to an adapter module; transmitting the target description information to the adapter module that matches the target scheduling system, so that the adapter module that matches the target scheduling system uses the target description information to generate a workflow work order in the form of target data as the work order to be issued; wherein, three adapter modules are included, namely: an adapter module corresponding to the Apache AirFlow scheduling system, an adapter module corresponding to the Apache Oozie scheduling system, and an adapter module corresponding to other scheduling systems, and the other scheduling system is any scheduling system other than the Apache AirFlow scheduling system and the Apache Oozie scheduling system; The target scheduling system is used to receive the work order to be issued sent by the work order management terminal, and execute each meta-task indicated by the work order to be issued in sequence to obtain an execution result; The work order management terminal is further used to generate workflow description information of any workflow, so as to store the workflow description information in the information base; The workflow description information of any workflow is generated, including: Displaying an information editing interface for user editing; wherein the information editing interface displays identification information of multiple meta-tasks in a predetermined database; Acquiring task combination information for a workflow set by the user in the information editing interface, the task combination information including identification information selected by the user and dependency relationships set for the selected identification information; The workflow description information to be generated is generated by using the meta-task indicated by the identification information in the task combination information as the meta-task required to be described in the workflow description information to be generated, and the dependency relationship in the task combination information as the dependency relationship required to be described in the workflow description information to be generated; The acquiring of task combination information for a workflow set by the user in the information editing interface includes: Obtaining identification information of each meta-task required for a workflow selected by the user by clicking after the information editing interface is displayed, and the dependency relationship of the meta-task given by the identification information of the meta-task belonging to the parent task added to the selected identification information; or After the user displays the information editing interface, he drags the identification information of each meta-task required for a workflow to the specified editing area of the information editing interface, and sets arrows between the identification information to establish a dependency relationship for each identification information in the specified editing area, wherein the tail end of the arrow is connected to the meta-task belonging to the parent task, and the head end of the arrow is connected to the meta-task belonging to the child task.
5. A work order processing device, characterized in that: Applied to a work order management end; the work order management end establishes communication with a target scheduling system in advance, and the target scheduling system is a task scheduling system as a work order recipient. When the scheduling system is switched, the task scheduling system as the work order recipient changes, and at this time, the task scheduling system connected to the work order management end also changes; the device includes: An acquisition module is used to acquire workflow description information of a workflow to be processed from a predefined information base containing workflow description information as target description information, wherein each workflow description information is information used to describe each meta-task indicated by a workflow and the dependency relationship of each meta-task, and for each meta-task, the dependency relationship reflects which meta-task the meta-task must be executed after; A generation module, used to generate a workflow work order in a target data form using the target description information as a work order to be issued; wherein the target data form is a data form of a work order that can be recognized by the target scheduling system; A sending module, used for sending the work order to be issued to the target scheduling system, so that the target scheduling system receives the work order to be issued, and sequentially executes each meta-task indicated by the work order to be issued to obtain an execution result; Wherein, the generation module is specifically used for: Determine an adapter module that matches the target scheduling system; wherein each task scheduling system corresponds to an adapter module; The target description information is transmitted to an adapter module matching the target scheduling system, so that the adapter module matching the target scheduling system uses the target description information to generate a workflow work order in the form of target data as a work order to be issued; Among them, there are three adaptation modules, namely: the adaptation module corresponding to the Apache AirFlow scheduling system, the adaptation module corresponding to the ApacheOozie scheduling system, and the adaptation module corresponding to other scheduling systems. The other scheduling system is any scheduling system other than the Apache AirFlow scheduling system and the Apache Oozie scheduling system; The device also includes: A description information generating module, used for generating workflow description information of any workflow, so as to store the workflow description information in the information base; The description information generation module is specifically used for: Displaying an information editing interface for user editing; wherein the information editing interface displays identification information of multiple meta-tasks in a predetermined database; Acquiring task combination information for a workflow set by the user in the information editing interface, wherein the task combination information includes identification information selected by the user and dependency relationships set for the selected identification information; wherein acquiring task combination information for a workflow set by the user in the information editing interface includes: Obtaining identification information of each meta-task required for a workflow selected by the user by clicking after the information editing interface is displayed, and the dependency relationship of the meta-task given by the identification information of the meta-task belonging to the parent task added to the selected identification information; or Obtain the identification information of each meta-task required for a workflow by a user dragging it to a designated editing area of the information editing interface after displaying the information editing interface, and establish a dependency relationship for each identification information in the designated editing area by setting arrows between the identification information, wherein the tail end of the arrow is connected to the meta-task belonging to the parent task, and the head end of the arrow is connected to the meta-task belonging to the child task; The workflow description information to be generated is generated by taking the meta-task indicated by the identification information in the task combination information as the meta-task required to be described in the workflow description information to be generated, and taking the dependency relationship in the task combination information as the dependency relationship required to be described in the workflow description information to be generated.
6. The device according to claim 5, characterized in that The description information generation module displays an information editing interface, including: Determine, from a plurality of first-category meta-tasks in a predetermined database, a first-category meta-task for which the user has available authority; the first-category meta-task is a meta-task belonging to a local mode; The information editing interface is displayed with the determined first-category meta-task and second-category meta-task as display elements, wherein the second-category meta-task is a meta-task belonging to a global mode in the predetermined database.
7. The device according to any one of claims 5 or 6, characterized in that: The device also includes: A marking module, used for marking the work order type for the work order to be issued before the sending module sends the work order to the target scheduling system, wherein the work order type is a global type or a non-global type; Correspondingly, after the target scheduling system executes each meta-task indicated by the work order to be issued in sequence and obtains the execution result, if the work order type of the work order to be issued is a global type, the execution result of each meta-task of the work order to be issued is stored in the designated shared area; if the work order type of the work order to be issued is a non-global type, the execution result of each meta-task indicated by the work order to be issued is stored in the designated dedicated area.
8. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 3 when executing a program stored in a memory.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 3 are implemented.
