CN114691308A - Online task arranging method and online task arranging device - Google Patents

Online task arranging method and online task arranging device Download PDF

Info

Publication number
CN114691308A
CN114691308A CN202011566558.8A CN202011566558A CN114691308A CN 114691308 A CN114691308 A CN 114691308A CN 202011566558 A CN202011566558 A CN 202011566558A CN 114691308 A CN114691308 A CN 114691308A
Authority
CN
China
Prior art keywords
task
function
online
user
orchestration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011566558.8A
Other languages
Chinese (zh)
Inventor
孙越
陈庆
李瀚�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
4Paradigm Beijing Technology Co Ltd
Original Assignee
4Paradigm Beijing Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 4Paradigm Beijing Technology Co Ltd filed Critical 4Paradigm Beijing Technology Co Ltd
Priority to CN202011566558.8A priority Critical patent/CN114691308A/en
Priority to PCT/CN2021/140480 priority patent/WO2022135478A1/en
Publication of CN114691308A publication Critical patent/CN114691308A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Provided are an online task arranging method and an online task arranging device. The online task arranging method comprises the following steps: displaying a task orchestration interface, wherein the task orchestration interface comprises a function list area and a task canvas area, wherein the function list area displays one or more functions; detecting a task arrangement operation which is input by a user on the task arrangement interface and is used for arranging an online task flow by using a function displayed in the function list area, and displaying an arrangement result corresponding to the task arrangement operation in the task canvas area in response to the task arrangement operation, so that an online task flow diagram formed according to the task arrangement operation is displayed in the task canvas area; and creating the online task flow programmed by the user according to the online task flow diagram.

Description

Online task arranging method and online task arranging device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for arranging online tasks.
Background
Orchestration is the automated configuration, management, and coordination of computer systems, applications, and services. Orchestration can help us manage complex tasks and workflows more easily. The arrangement system is used for automatically executing the defined operation flow only by defining the operation flow once. The orchestration system ensures that tasks can be executed in temporal order. An online task refers to a task that can return a result in real time through a series of calculations by API call. For example, a prediction scenario applicable to the model may be associated with a specific scenario policy to directly yield the prediction result. The editing body of the online task is a function, and the entry and exit of the online function need to be defined. At the present stage, the online task is developed only according to the product requirements and cannot be abstractly reused. When re-development is required, the workload still cannot be reduced. And the association relationship among different online modules is not clear. The dependency relationship cannot be seen intuitively.
Disclosure of Invention
Exemplary embodiments of the present disclosure may or may not address at least the above-mentioned problems.
According to an aspect of the present disclosure, there is provided an online task orchestration method, including: displaying a task orchestration interface, wherein the task orchestration interface comprises a function list area and a task canvas area, wherein the function list area displays one or more functions; detecting a task arrangement operation which is input by a user on the task arrangement interface and is used for arranging an online task flow by using a function displayed in the function list area, and displaying an arrangement result corresponding to the task arrangement operation in the task canvas area in response to the task arrangement operation, so that an online task flow diagram formed according to the task arrangement operation is displayed in the task canvas area; and creating the online task flow programmed by the user according to the online task flow diagram.
Optionally, after the creating the online task flow of the user orchestration, the task orchestration method may further include: displaying an online task list interface in response to the online task flow scheduled by the user having been created and completed, wherein the created and completed online task flow is displayed in the online task list; responding to the operation of a user for selecting and publishing the online task flow on the online task list interface, and publishing the online task flow; and responding to the online task flow which is called by a user on a publishing platform or called by an API (application programming interface), and running the online task flow.
Optionally, the task orchestration method may further include: responding to the operation of selecting and debugging the online task flow on the task list interface by a user, and displaying a debugging interface; and responding to the operation of starting debugging selected by the user on the debugging interface, running the online task flow, and displaying a running result on the debugging interface.
Optionally, the task orchestration method may further include: displaying one or more historical versions related to the online task flow in response to a user selecting an operation of viewing the historical versions of the online task flow on the task list interface; and in response to the operation of selecting to view the first historical version from the one or more historical versions by the user, displaying comparison information of the current version and the first historical version of the online task flow.
Optionally, the task arranging operation may include an operation of dragging a first function in the function list region into the task arranging region; wherein the displaying of the orchestration result corresponding to the task orchestration operation in the task canvas area may include: and displaying function nodes of the first function in the online task flow diagram in the task layout area.
Optionally, the task orchestration operation may further include an operation of orchestrating a logical relationship of the first function with the pre-function and/or the post-function; wherein the displaying of the orchestration result corresponding to the task orchestration operation in the task canvas area may include: and displaying the logical relation of the function node of the first function and other function nodes in the online task flow diagram in the task canvas area.
Optionally, the operation of arranging the logical relationship of the first function with the pre-function and/or the post-function may include: performing a wiring operation between the function node of the first function displayed in the task canvas area and the function node of the previous function and/or the function node of the next function; the logical relationship of the function node displaying the first function in the task canvas area to other function nodes in the online task flow graph may include: and displaying a connecting line between the function node of the first function and the function node of the previous function and/or the function node of the next function in the online task flow diagram in the task canvas area.
Optionally, the task orchestration interface may further include a task configuration area; wherein, before creating the online task flow programmed by the user according to the online task flow diagram, the method further comprises: detecting a first configuration operation which is input by a user in the task configuration area and is used for configuring the running information of the online task process; responding to the first configuration operation, and acquiring the running information of the online task process input by the user; and/or detecting the selection operation of the user on the function node in the online task flow diagram; responding to the selection operation, and displaying a configuration interface of the function corresponding to the selected function node in the task configuration area; detecting a second configuration operation which is input by the user on the configuration interface and is used for configuring the operation information of the function corresponding to the function node; responding to the second configuration operation, and acquiring running information of a function corresponding to the function node input by the user; wherein, according to the online task flow diagram, creating the online task flow programmed by the user may include: and creating the online task flow arranged by the user according to the online task flow diagram, and the operation information of the online task flow and/or the operation information of the function corresponding to the function node.
Optionally, the running information of the online task flow may include at least one of a running configuration, a life cycle, and an execution condition of the online task flow; and/or the running information of the function corresponding to the function node in the online task flow can comprise at least one of the parameters, the dependency relationship, the initial parameters, the running parameters, the life cycle and the execution conditions of the function.
Optionally, the task orchestration method may further include: displaying a function creation interface; detecting a function creating operation input in the function creating interface by a user, and creating the one or more functions in response to the function creating operation; wherein the created one or more functions can be displayed in the function list area.
Optionally, the function creating operation may include an operation of selecting a predetermined function package, where the predetermined function package includes one or more function units written in advance; wherein the function creating operation may further include an operation of defining at least one of basic information, a function class name, an entry, an exit, an initial parameter, and a running parameter of the one or more functional units, wherein the one or more defined functional units become the one or more functions.
Optionally, the task orchestration method may further include: displaying a task flow creation interface; detecting task flow establishing operation input by a user in the task flow establishing interface, and establishing an online task flow to be scheduled in response to the task flow establishing operation; after the online task flow to be scheduled is created, a task scheduling interface of the online task flow to be scheduled can be entered.
Optionally, the task flow creation operation may include: inputting basic information of an online task flow to be scheduled; wherein, the creating the online task flow to be scheduled includes: and creating the online task flow to be scheduled based on the basic information.
According to another aspect of the present disclosure, there is provided an apparatus for online task orchestration, including: a display unit configured to: displaying a task orchestration interface, wherein the task orchestration interface comprises a function list area and a task canvas area, wherein the task list area displays one or more functions; an orchestration unit configured to: detecting a task arrangement operation which is input by a user in the task arrangement interface and is used for arranging a task flow by using a function displayed in the function list area, and displaying an arrangement result corresponding to the task arrangement operation in the task canvas area in response to the task arrangement operation, so that a task flow diagram formed according to the task arrangement operation is displayed in the task canvas area; a creation unit configured to: and creating the task flow arranged by the user according to the task flow diagram.
Optionally, after said creating the user-orchestrated online task flow, the display unit may be further configured to: displaying an online task list interface in response to the online task flow scheduled by the user having been created and completed, wherein the created and completed online task flow is displayed in the online task list; wherein the task orchestration device may further include: a publication unit configured to: responding to the operation of a user for selecting and publishing the online task flow on the online task list interface, and publishing the online task flow; an execution unit configured to: and responding to the online task flow which is called by a user on a publishing platform or called by an API (application program interface), and running the online task flow.
Optionally, the display unit may be further configured to: responding to the operation of selecting and debugging the online task flow on the task list interface by a user, and displaying a debugging interface; wherein the execution unit is further configured to: and responding to the operation of starting debugging selected by the user on the debugging interface, running the online task flow, and displaying a running result on the debugging interface.
Optionally, the task orchestration device may further include: a version comparison unit configured to: displaying one or more historical versions related to the online task flow in response to a user selecting an operation of viewing the historical versions of the online task flow on the task list interface; and in response to the operation of selecting to view the first historical version from the one or more historical versions by the user, displaying the comparison information of the current version and the first historical version of the online task flow.
Optionally, the task arranging operation may include an operation of dragging a first function in the function list region into the task arranging region; wherein the orchestration unit is configurable to: and displaying function nodes of the first function in the online task flow diagram in the task layout area.
Optionally, the task orchestration operation may further include an operation of orchestrating a logical relationship of the first function with the pre-function and/or the post-function; wherein the orchestration unit is configurable to: and displaying the logical relationship of the function node of the first function and other function nodes in the online task flow diagram in the task canvas area.
Optionally, the operation of arranging the logical relationship of the first function with the pre-function and/or the post-function may include: connecting the function node of the first function displayed in the task layout area with the function node of the previous function and/or the function node of the next function; wherein the orchestration unit is configurable to: and displaying a connecting line between the function node of the first function and the function node of the front function and/or the function node of the back function in the online task flow diagram in the task canvas area.
Optionally, the task orchestration interface may further include a task configuration area; wherein the orchestration unit is further configurable to: before the online task flow arranged by the user is created according to the online task flow diagram: detecting a first configuration operation which is input by a user in the task configuration area and is used for configuring the running information of the online task process; responding to the first configuration operation, and acquiring the running information of the online task process input by the user; and/or the orchestration unit may be further configured to: detecting the selection operation of the user on the function node in the online task flow diagram; responding to the selection operation, and displaying a configuration interface of the function corresponding to the selected function node in the task configuration area; detecting a second configuration operation which is input by the user on the configuration interface and is used for configuring the operation information of the function corresponding to the function node; responding to the second configuration operation, and acquiring running information of a function corresponding to the function node input by the user; wherein the creating unit may be configured to: and creating the online task flow arranged by the user according to the online task flow diagram, and the operation information of the online task flow and/or the operation information of the function corresponding to the function node.
Optionally, the running information of the online task flow may include at least one of a running configuration, a life cycle and an execution condition of the online task flow; and/or the running information of the function corresponding to the function node in the online task flow can comprise at least one of the parameters, the dependency relationship, the initial parameters, the running parameters, the life cycle and the execution conditions of the function.
Optionally, the task orchestration device may further include: a function creation unit; wherein the display unit is further configured to: displaying a function creation interface; wherein the function creation unit may be configured to: detecting a function creating operation input in the function creating interface by a user, and creating the one or more functions in response to the function creating operation; wherein the created one or more functions can be displayed in the function list area.
Optionally, the function creating operation may include an operation of selecting a predetermined function package, where the predetermined function package includes one or more function units written in advance; wherein the function creating operation may further include an operation of defining at least one of basic information, a function class name, an entry, an exit, an initial parameter, and a running parameter of the one or more functional units, wherein the one or more defined functional units become the one or more functions.
Optionally, the task orchestration device may further include: a task flow creation unit; wherein the display unit is further configured to: displaying a task flow establishing interface; wherein the task flow creation unit may be configured to: detecting task flow establishing operation input by a user in the task flow establishing interface, and establishing an online task flow to be scheduled in response to the task flow establishing operation; after the online task flow to be scheduled is created, a task scheduling interface of the online task flow to be scheduled can be entered.
Optionally, the task flow creation operation may include: inputting basic information of an online task flow to be scheduled; wherein the task flow creation unit may be configured to: and creating the online task flow to be scheduled based on the basic information.
According to another aspect of the present disclosure, there is provided a computer-readable storage medium storing instructions that, when executed by at least one computing device, cause the at least one computing device to perform a method of orchestration of online tasks according to the present disclosure.
According to another aspect of the present disclosure, there is provided a system comprising at least one computing device and at least one storage device storing instructions, wherein the instructions, when executed by the at least one computing device, cause the at least one computing device to perform a method of orchestration of online tasks according to the present disclosure.
According to the online task arrangement method and the online task arrangement device, through visual interface interactive operation, a user can visually establish the flow arrangement relation among online functions in a dragging mode, the configuration function is involved in the process of participating in the process, the whole process of online function flow definition is visualized, and operation and display are more visual.
In addition, according to the online task arranging method and the online task arranging device disclosed by the invention, the online task can be abstracted into a specific task module, the reusable online function can be abstracted and defined, the logic is operated, the function package is uploaded to the platform, the function association file, the function class and the default parameter are defined through the platform, and the abstraction and the reuse of the online task are realized through a visual arranging mode, so that the online task arranging reusability is stronger, the usability is better, and during subsequent development, the developed general function and the processing function similar to a scene can be used, and the creation of a new online scene can be completed only by a small development amount through visual arranging operation. Therefore, the method can realize the rapid definition of the construction function flow and the visual configuration and flexible arrangement combination of the front end, get rid of the repeated development for many times in the traditional technology, simultaneously realize the continuous integration of a plurality of environments or a plurality of applications and the continuous delivery assembly line work definition and execution, and improve the efficiency of constructing the continuous delivery development of the online task.
Drawings
These and/or other aspects and advantages of the present invention will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a flowchart illustrating an orchestration method of online tasks according to an exemplary embodiment of the present disclosure.
FIG. 2 is a schematic diagram illustrating a task orchestration interface according to an exemplary embodiment of the present disclosure.
FIG. 3 is a schematic diagram illustrating a task orchestration interface according to another exemplary embodiment of the present disclosure.
Fig. 4 is a schematic diagram illustrating a file management interface according to an exemplary embodiment of the present disclosure.
Fig. 5 is a diagram illustrating a function creation interface according to an exemplary embodiment of the present disclosure.
FIG. 6 is a schematic diagram illustrating an orchestration management interface according to an example embodiment of the present disclosure.
Fig. 7 is a schematic diagram illustrating an online task list interface according to an exemplary embodiment of the present disclosure.
Fig. 8 is a schematic diagram illustrating a publication interface according to an exemplary embodiment of the present disclosure.
Fig. 9 is a schematic diagram illustrating a debugging interface according to an exemplary embodiment of the present disclosure.
FIG. 10 is a schematic diagram illustrating a history viewing interface according to an exemplary embodiment of the present disclosure.
FIG. 11 is a flowchart diagram illustrating visualization online task flow construction, according to an example embodiment of the present disclosure.
FIG. 12 is a flowchart diagram illustrating visualization of online task flow operations according to an exemplary embodiment of the present disclosure.
FIG. 13 is a block diagram illustrating an orchestration device of online tasks according to an exemplary embodiment of the present disclosure.
Detailed Description
The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of embodiments of the invention defined by the claims and their equivalents. Various specific details are included to aid understanding, but these are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
In this case, the expression "at least one of the items" in the present disclosure means a case where three types of parallel expressions "any one of the items", "a combination of any plural ones of the items", and "the entirety of the items" are included. For example, "including at least one of a and B" includes the following three cases in parallel: (1) comprises A; (2) comprises B; (3) including a and B. For another example, "at least one of the first step and the second step is performed", which means that the following three cases are juxtaposed: (1) executing the step one; (2) executing the step two; (3) and executing the step one and the step two.
In order to solve the technical problem, the present disclosure provides a novel online task scheduling method and scheduling apparatus. Specifically, firstly, the online task orchestration method and the online task orchestration device according to the present disclosure provide a visual online task orchestration function. Visualization (Visualization) is a theory, method and technique that uses computer graphics and image processing techniques to convert data into graphics or images to be displayed on a screen and then perform interactive processing. According to the online task arranging method and the online task arranging device, the flow arranging relation among the online functions can be visually established by a user in a dragging mode through visual interface interactive operation, the function entry and exit parameters are configured, the whole process of online function flow definition is visualized, and operation and display are more visual. Secondly, according to the online task arranging method and the online task arranging device disclosed by the invention, the online task can be abstracted into a specific task module, the reusable online function can be abstracted and defined, the logic is operated, the function package is uploaded to the platform, the function association file, the function class and the default parameter are defined through the platform, and the abstraction and the reuse of the online task are realized through a visual arranging mode, so that the online task arranging reusability is stronger, the usability is better, and during the subsequent development, the developed general function and the processing function similar to the scene can be used, and the creation of a new online scene can be completed only by a small development amount through visual arranging operation. Therefore, the online task arranging method and the online task arranging device can realize quick definition, front-end visual configuration and flexible arrangement combination of the construction function process, get rid of repeated development for many times in the traditional technology, simultaneously realize continuous integration of a plurality of environments or a plurality of applications and continuous delivery assembly line work definition and execution, and improve the efficiency of continuous delivery development of the construction online task.
Hereinafter, an online task orchestration method and an online task orchestration device according to the present disclosure will be described in detail with reference to fig. 1 to 13.
Fig. 1 is a flowchart illustrating an orchestration method of online tasks according to an exemplary embodiment of the present disclosure.
Referring to FIG. 1, a task orchestration interface may be displayed. Here, the task orchestration interface may include a function list area and a task canvas area. The function list area may display one or more functions, each function representing a task unit that is reusable with minimal granularity for online orchestration. Here, the function is a function with minimum granularity obtained by reasonably splitting and abstracting an online scene task, so that one function is ensured to be responsible for completing only one processing logic as much as possible. According to an example embodiment of the present disclosure, the display of the function in the function list region may include a function ID or a function name. In addition, the display of functions may also include function types, such as JAR. The task canvas area may be used to lay out and display functions and logical relationships between the functions, such that an online task flow graph, which is laid out by at least one function in the function list area, may be displayed in the task canvas area. For example, a user may select a function from the task list area and drag the function to the task canvas area, and in response to the user operation, the task canvas area may display a function node corresponding to the function, which is represented as a function node in the online task flow graph. For another example, a user may concatenate a function node with a previous function node and/or a subsequent function node in the online task flow graph, and in response to the user operation, the task canvas area may display a line connecting the function node with the previous function node and/or the subsequent function node, representing a logical relationship between functions.
According to an example embodiment of the present disclosure, the task orchestration interface may further include a task configuration area. The task configuration region can be configured with the operation information of the task flow corresponding to the online task flow diagram, and can also be configured with the operation information of the function corresponding to the function node in the online task flow diagram. The operation information of the online task flow may include, but is not limited to, at least one of an operation configuration, a life cycle, and an execution condition of the online task flow. The operation information of the function may include, but is not limited to, at least one of an entry, a dependency, an initial parameter, an operation parameter, a life cycle, an execution condition, and the like of the function.
FIG. 2 is a schematic diagram illustrating a task orchestration interface according to an exemplary embodiment of the present disclosure. FIG. 3 is a schematic diagram illustrating a task orchestration interface according to another exemplary embodiment of the present disclosure.
Referring to fig. 2 and 3, the task orchestration interface of the online task flow patent-random may include a function list area 201 or 301 on the left, a task canvas area 202 or 302 in the middle, and a task configuration area 203 or 303 on the right. In the function list area 201 or 301, functions may be displayed or newly added. For example, the function may show, but is not limited to, a function ID (or name) and a function type, e.g., random JAR, etc. In the task canvas area 202 or 302, an online task flow diagram may be displayed, for example, the online task flow diagram may include function nodes (e.g., random-pre, random-init, random) and logical relationships (e.g., wires) between the function nodes. The user may select a function from the function list area 201 or 301 and drag the function into the task canvas area 202 or 302, forming a function node. The user can edit the connection relationships between the various function nodes as desired in the task canvas area 202 or 302. The running information of the online task flow is presented by default in the task configuration area 203 or 303. The user can configure the running information of the online task flow in the task configuration area 203 or 303. When a user clicks a certain function node in the online task flow diagram in the canvas area, the operation information of the function corresponding to the function node can be displayed by switching in the task configuration area 203 or 303, and the user can also edit the operation information of the function corresponding to the function node in the task configuration area 203 or 303. For example, in fig. 2, the running information of the online task flow path is shown in the task configuration area 203, including basic information (e.g., including, but not limited to, a unique identifier (key), a status, a creation time, an update time, a description, etc.), running configuration, and execution conditions. The user may edit at least one of the run configuration and the execution condition. For another example, in fig. 3, the motion information of the function random corresponding to the selected function node is shown in the task configuration area 303, and includes basic information (e.g., alias, unique identifier (key), type, class name, file, description) function return, parameter injection, dependency relationship, initialization configuration, runtime configuration execution condition, and lifecycle. The user may edit at least one of an alias, a unique identification (key), parameter injection, a dependency, an initialization configuration, a runtime configuration execution condition, a lifecycle.
Of course, the task orchestration interface according to the present disclosure is not limited to the task orchestration interfaces shown in fig. 2 and 3, and the task orchestration interface may be arranged according to any possible form and content.
Referring back to fig. 1, in step 102, a task arranging operation input by a user in the task arranging interface and used for arranging an online task flow by using the function displayed in the function list area is detected, and in response to the task arranging operation, an arranging result corresponding to the task arranging operation is displayed in the task canvas area, so that an online task flow diagram formed according to the task arranging operation is displayed in the task arranging area.
According to an exemplary embodiment of the present disclosure, the task orchestration operation may include an operation of dragging the first function in the function list area into the task orchestration area. When the task orchestration operation is detected, a function node of the first function in the online task flow graph can be displayed in the task canvas area. That is, the first function corresponding to the first function becomes a function node in the online task flow graph.
According to an example embodiment of the present disclosure, the task orchestration operation may further include an operation of orchestrating a logical relationship of the first function with the pre-function and/or the post-function. When the task orchestration operation is detected, the logical relationship of the function node of the first function to other function nodes in the online task flow graph may be displayed in a task canvas area. For example, when an operation that a user connects a function node corresponding to the first function with a previous function node and/or a subsequent function node is detected, a connecting line connecting the function node corresponding to the first function with the previous function node and/or the subsequent function node may be displayed in the task canvas area, representing a logical relationship.
According to an exemplary embodiment of the present disclosure, a user may perform a first configuration operation of configuring operation information of an online task flow corresponding to an online task flow diagram in a task configuration area. For example, before creating an online task flow programmed by a user according to an online task flow diagram, a first configuration operation input by the user in a task configuration area and used for configuring running information of the online task flow can be detected. And responding to the first configuration operation, and acquiring running information of the online task flow input by the user. The running information of the online task flow may include, but is not limited to, at least one of a running configuration, a life cycle, and an execution condition of the online task flow. Here, the run configuration may include trace forward and timeout configurations. The lifecycle may include function before execution (onStart), function complete, function failed execution (oneerror), function timeout, and onTimeout, which may be in the online task flow. The execution condition means that when the execution condition is satisfied by receiving the upstream operation result, the downstream function is executed. For example, the execution conditions may include receiving a runtime input parameter, a condition (onStart) under which the pre-processing logic may be executed, receiving a result of the function execution, a runtime input parameter, a condition (onComplete) under which the post-processing logic is executed, executing when there is an error, receiving a runtime input parameter, returning a function bottom entry result (oneerror), executing when there is a timeout, receiving a runtime input parameter, and returning a function bottom entry result (onetimeout).
According to an exemplary embodiment of the present disclosure, the user may further perform a second configuration operation of configuring the execution information of the function in the online task flow in the task configuration area. For example, a selection operation of a user on a function node in an online task flow diagram can be detected, in response to the selection operation, a configuration interface of a function corresponding to the selected function node is displayed in a task configuration area, a second configuration operation which is input by the user on the configuration interface and is used for configuring operation information of the function corresponding to the function node is detected, and in response to the second configuration operation, the operation information of the function corresponding to the function node input by the user is acquired. The operation information of the function in the online task flow may include, but is not limited to, at least one of an argument, a dependency relationship, an initial parameter, an operation parameter, a life cycle, an execution condition, and the like of the function. Here, the reference indicates the parameter received by the function. The dependency represents the dependency of the function with other functions. The initial parameters refer to initial parameters required before the function runs. The run parameters refer to the parameter lifecycle required by the function run, which may include function execution before (onStart), function execution complete (onComplete), function execution failure (oneerror), and function execution timeout (onTimeout) of the function. The execution condition means that when the execution condition is satisfied by receiving the upstream operation result, the downstream function is executed. For example, the execution conditions may include receiving a runtime input parameter, a condition (onStart) under which the pre-processing logic may be executed, receiving a result of the function execution, a runtime input parameter, a condition (onComplete) under which the post-processing logic is executed, executing when there is an error, receiving a runtime input parameter, returning a function bottom entry result (oneerror), executing when there is a timeout, receiving a runtime input parameter, and returning a function bottom entry result (onetimeout). For example, the random-pre function configures an execution condition, and only executes the random-pre when the execution condition is satisfied. For another example, the Random function configures all life cycles, including that before the function runs, the function runs are completed, the function runs fail, the function runs overtime, and it executes the corresponding bound function in different life cycles.
According to an exemplary embodiment of the present disclosure, the running information of the online task flow may be displayed by default in the task orchestration interface. The user can view and edit the running information of the online task flow. The task orchestration operation may also include an operation to click on a certain function node in the online task flow graph of the task canvas area. And when the task arranging operation is detected, switching to display the running information of the function corresponding to the function node in the task arranging interface. The user can view and edit the operation information of the function corresponding to the function node.
According to an exemplary embodiment of the present disclosure, an online task flow diagram for orchestration completion may be formed according to at least one task editing operation. After the layout of the online task flow diagram is completed, the running information of the online task flow can be configured in the task layout interface.
At step 103, an online task flow programmed by a user may be created according to the online task flow graph. According to the exemplary embodiment of the disclosure, the task flow arranged by the user can be created according to the online task flow diagram and the running information of the online task flow and/or the running information of the function corresponding to the function node.
According to an exemplary embodiment of the present disclosure, a function corresponding to a function node may be obtained according to the function node in the online task flow graph. The logical relationship between the functions corresponding to the function nodes can be determined according to the logical relationship between the function nodes. The operation logic of the online task flow can be determined according to the operation information of the online task flow. The operation logic of the function in the online task flow can be determined according to the operation information of the function in the online task flow. An online task flow orchestrated by a user may be created based on the obtained functions, the determined logical relationships between the functions, the determined operational logic of the online task flow, and the operational logic of the functions in the online task flow.
In addition, according to the exemplary embodiment of the present disclosure, a user can reasonably split and abstract the online scene task into reusable functional units. Therefore, the user can freely create (or define) functions, and the created functions can be displayed in the function list area. Therefore, the method for arranging online tasks according to the present disclosure may further include: displaying a function creation interface; and detecting a function creation operation input in the function creation interface by a user, and creating a function in response to the function creation operation. For example, the function creation operation includes an operation of selecting a predetermined function package including one or more function units programmed in advance. For example, one or more functional units may be written for an online task flow (e.g., random number online task-random), and these functional units may be packaged into a predetermined functional package and uploaded to a file management module within the schema. For example, fig. 4 is a schematic diagram illustrating a file management interface according to an exemplary embodiment of the present disclosure. Referring to fig. 4, an ID, a file name, a file unique identifier (key), a file size, a source, a creation time, an operation (which may include, but is not limited to, a download button, a delete button, and the like) of an uploaded predefined function package (e.g., a random number function package), and the like may be displayed on the file management interface. When the user clicks the download button, the function package may be downloaded. When the user clicks the delete button, the bundle of functions may be deleted from the file management module. For example, the predetermined function package may be a function package that is uploaded to the file management module and includes a plurality of pre-programmed arbitrary function units, instead of being packaged for a certain online task flow. Here, the function unit may be a function written without defining a task parameter. Creating a function is to perform a defined operation on a functional unit, and the defined functional unit can become a created function. For example, fig. 5 is a schematic diagram illustrating a function creation interface according to an exemplary embodiment of the present disclosure. The user may click on the add function button in an organizational management interface (not shown) and, referring to fig. 5, enter a function creation interface where the add function may be defined. Accordingly, the task creation operation may further include an operation of defining at least one of basic information of the functional unit, a function class name, an entry parameter, an exit parameter, an initial parameter, and a running parameter.
In addition, according to the exemplary embodiment of the present disclosure, a user may first create an online task flow to be scheduled, and after the online task flow to be scheduled is created, a task scheduling interface may be entered. Therefore, the method for arranging online tasks according to the present disclosure may further include: displaying a task flow establishing interface; and detecting task flow creation operation input by a user in the task flow creation interface, and creating the task flow to be scheduled in response to the task flow creation operation. The task flow creation operation may include an operation of inputting basic information of an online task flow to be scheduled. The basic information may include, but is not limited to, the name, unique identification (key), version, and description information of the online task flow to be scheduled. After the basic information of the online task flow to be scheduled is input, the online task flow to be scheduled can be created based on the basic information of the online task flow to be scheduled.
In addition, according to an exemplary embodiment of the present disclosure, the functions created by the user and the online task flows to be scheduled may be displayed in the scheduling management interface, so that the user can view, create, and edit the functions and the online task flows. Therefore, the method for arranging online tasks according to the present disclosure may further include: and displaying the arrangement management interface. For example, FIG. 6 is a schematic diagram illustrating an orchestration management interface according to an example embodiment of the present disclosure. As shown in fig. 6, an online task flow list area and a function list area may be included in the organizing and managing interface, and the online task flow list area displays relevant information of an online task flow to be organized created by a user and a newly added online task button. The relevant information of the online task flow may include, but is not limited to, an ID, a name, a status, a version, a description, a creation time, an operation (which may include editing, viewing a history version, a delete button, etc.) of the online task flow, and the like. When the user clicks the edit button, the online task flow to be scheduled can be edited, for example, the user can jump to a task scheduling interface. When the user clicks the view history version button, the history version of the online task flow to be scheduled can be displayed. When the user clicks the delete button, the online task flow to be scheduled can be deleted. In addition, when the user clicks the new online task button, a new online task flow to be scheduled can be created, for example, the user can jump to a task flow creation interface. The function list area may display corresponding information of the user-created task and a new function button. The corresponding information of the function may include, but is not limited to, an ID, a name, a Tag, a description, a class name, a creation time, an update time, an operation (which may include an edit button, a delete button, etc.) and the like of the function. When the user clicks the edit button, the function can be edited. When the user clicks the delete button, the function may be deleted. In addition, when the user clicks the add function button, a new function may be created, e.g., a jump may be made to the function creation interface.
Further, according to an exemplary embodiment of the present disclosure, when the user completes the layout of the online task flow graph (e.g., completes the layout of the online task flow graph through the task editing interface), the online task flow programmed by the user may be successfully created, and an online task list interface may be displayed, wherein the created and completed online task flow may be displayed in the online task list. And responding to the operation of selecting the online task flow on the online task list interface by the user, and issuing the online task flow. The online task flow may be run in response to a user invoking the published online task flow at the publishing platform or through an API. For example, fig. 7 is a schematic diagram illustrating an online task list interface according to an exemplary embodiment of the present disclosure. Referring to fig. 7, in the online task list interface, information about an online task flow (e.g., a patent-random) that has been created for user orchestration may be displayed. The related information of the user-programmed online task flow may include, but is not limited to, an ID, a name, a unique identification (Key), a status, a version, a description, a creation time, an operation (which may include a debug button, a release button, a view history version button, etc.), and the like of the user-programmed online task flow. When the user clicks the debugging button, the online task flow arranged by the user can be debugged. When the user clicks the release button, the online task flow arranged by the user can be released to the platform. When the user clicks the view history version button, the history version of the online task flow arranged by the user can be viewed. This will be described in detail below.
In addition, according to an exemplary embodiment of the present disclosure, when a user selects to publish an online task flow on an online task list interface, a publication interface may be displayed, and the user may select a version of the online task flow desired to be published in the publication interface and publish the version. For example, when a user clicks a publish button in an online task list interface, a jump may be made to the publish interface. For example, fig. 8 is a schematic diagram illustrating a publication interface according to an exemplary embodiment of the present disclosure. Referring to FIG. 8, in a publishing interface, information relating to multiple versions (including a current version and a historical version) of an online task flow that a user has choreographed may be displayed. The related information may include ID, version, use status, release status, update time, operation (including preview button, release button, etc.), etc., and in addition, for a released version, a down button may be displayed in operation. When the user clicks the preview button, the corresponding version may be previewed. When a user clicks on the publish button, the corresponding version may be published to the platform. When the user clicks the logoff button, the published version may be logoff.
In addition, according to an exemplary embodiment of the present disclosure, when an operation of debugging an online task flow is selected on an online task list interface by a user, a debugging interface may be displayed; and responding to the operation of starting debugging selected by the user on the debugging interface, running the online task flow, and displaying the running result on the debugging interface. For example, when a user clicks a debug button in an online task list interface, a jump may be made to the debug interface. For example, fig. 9 is a schematic diagram illustrating a debugging interface according to an exemplary embodiment of the present disclosure. Referring to fig. 9, in the debugging interface, information related to the online task flow, a debugging button, and a result test area may be displayed. Relevant information for the online task flow may include, but is not limited to, a unique identification (Pipeline Key), a creation time, an update time Application Program Interface (API), and the like. When the user clicks the debugging button, the online task process can be operated, and the operation result is displayed in the result testing area. For example, in the result test area in fig. 9, it is shown that the data correctly returns a random number 611, which indicates that the random number service is successfully invoked after being concatenated.
In addition, according to the exemplary embodiment of the present disclosure, a record is left for each editing of the online task flow, and the modification situation of each task can be known through comparison. Therefore, when the user selects the operation of viewing the historical versions of the online task flows on the task list interface, one or more historical versions related to the online task flows can be displayed; and in response to the operation of selecting to view the first historical version from the one or more historical versions by the user, displaying comparison information of the current version and the first historical version of the online task flow. For example, when a user clicks a view historical version button in an online task list interface, a jump may be made to a publishing interface where information for one or more historical versions may be displayed and the user may select one of the historical versions to click to preview for viewing. For example, fig. 10 is a schematic diagram illustrating a history viewing interface according to an exemplary embodiment of the present disclosure. Referring to FIG. 10, in the history viewing interface, information of the current version (e.g., v2) and the selected history version (e.g., v1) may be displayed. For example, the historical version of information may be displayed on the left side of the historical viewing interface and the current version of information may be displayed on the right side of the historical viewing interface for comparison by the user.
FIG. 11 is a flowchart diagram illustrating visualization online task flow construction, according to an example embodiment of the present disclosure. Wherein the engine may represent a runtime environment for the AI scenario. The schema may represent a schema template for the engine. The file management may represent a file management module required by the schema. The function may represent a task unit that is reusable with minimal granularity for online orchestration. The online task may represent a collection of functions that possess dependencies, and may run within the engine. The execution condition may indicate that the downstream function is to be executed when the execution condition is satisfied. The lifecycle may include that before the function executes, the execution completes, the execution fails, and the execution times out may load the function.
Referring to FIG. 11, in step 1101, a function is written, defining the logic of the function. For example, the online scene task can be reasonably split and abstracted, and only one processing logic can be completed by one function as much as possible. Therefore, the online scene task can be divided into small functions, and each function can be written to define the logic of the function.
At step 1102, a function package may be packaged. After each function of the online scene task is defined, the functions can be packaged to obtain a function package for arranging the online scene task.
At step 1103, the function package may be uploaded to a file management module within the schema. For example, a display of the function packages uploaded to the file management modules within the schema may be displayed in the file management interface.
At step 1104, functions may be created, defining function classes, function default in-arguments, and out-arguments. For example, function names, unique identifiers, versions, function classes, default in-arguments, out-arguments, default initial parameters, run parameters, etc. may be defined.
In step 1105, all tasks required for this online orchestration may be defined.
At step 1106, an online task flow may be created. And after the required functions are created, a new online task flow is created. For example, the name, unique identification, version, description information of the online task flow may be input to create the online task flow.
In step 1107, the required functions may be dragged into the canvas in the online task orchestration canvas (e.g., the task canvas area).
In step 1108, functions can be correctly connected in the canvas according to the required dependencies.
In step 1109, clicking the function node in the canvas can define the modified function entry, the unique identifier of the function, the execution condition of the configured function, and the life cycle in the right configuration bar (for example, the task configuration area). In addition, the dependency relationship, initial parameters and operation parameters can be modified. The function execution condition may indicate that the current function can be executed when the execution condition is satisfied. The lifecycle can include: before the function runs, the function runs completely, the function runs unsuccessfully, and the function runs overtime.
At step 1110, clicking on the canvas, the online orchestration parameters (e.g., the running information for the online task flow) may be configured in the right configuration bar. For example, after the definition of an orchestration relationship is complete, online orchestration parameters may be defined in the right configuration column. As another example, clicking on the canvas (e.g., a blank area of the task canvas area) may toggle the right configuration bar to display the online orchestration parameters when the right configuration bar displays a configuration interface that is a function.
Of course, the order of steps 1107, 1108, 1109, and 1110 described above is not limited, and the arrangement and configuration of the task flows may be accomplished in any possible order. In addition, the above step 1105 may be deleted or added as needed.
FIG. 12 is a flowchart diagram illustrating visualization of online task flow operations according to an exemplary embodiment of the present disclosure.
Referring to FIG. 12, at step 1201, an online task flow may be published. For example, the published online task flow may be selected from an online task list.
At step 1202, when the published online task flow is invoked, results may be returned. For example, the post-release flow may be invoked directly on the platform interface or through an API, which may return the prediction results for this scenario.
FIG. 13 is a block diagram illustrating an orchestration device of online tasks according to an exemplary embodiment of the present disclosure.
Referring to fig. 13, an apparatus of an online task according to an exemplary embodiment of the present disclosure may include a display unit 1301, an orchestration unit 1302, and a creation unit 1303.
The display unit 1301 may display a task orchestration interface. Here, the task orchestration interface may include a function list area and a task canvas area. The function list area may display one or more functions, each function representing a task unit that is reusable with minimal granularity for online orchestration. Here, the function is a function with minimum granularity obtained by reasonably splitting and abstracting an online scene task, so that one function is ensured to be responsible for completing only one processing logic as much as possible. According to an example embodiment of the present disclosure, the display of the function in the function list region may include a function ID or a function name. Additionally, the display of functions may also include a function type, such as JAR. The task canvas area may be used to lay out and display functions and logical relationships between the functions, such that an online task flow graph, which is laid out by at least one function in the function list area, may be displayed in the task canvas area. For example, a user may select a function from the task list area and drag the function to the task canvas area, and in response to the user operation, the task canvas area may display a function node corresponding to the function, which is represented as a function node in the online task flow graph. For another example, a user may concatenate a function node with a previous function node and/or a subsequent function node in the online task flow graph, and in response to the user operation, the task canvas area may display a line connecting the function node with the previous function node and/or the subsequent function node, representing a logical relationship between functions.
According to an example embodiment of the present disclosure, the task orchestration interface may further include a task configuration area. The task configuration area can be configured with the running information of the task flow corresponding to the online task flow diagram, and can also be configured with the running information of the function corresponding to the function node in the online task flow diagram. The running information of the online task flow may include, but is not limited to, at least one of a running configuration, a life cycle, and an execution condition of the online task flow. The operation information of the function may include, but is not limited to, at least one of an entry, a dependency, an initial parameter, an operation parameter, a life cycle, an execution condition, and the like of the function.
The arranging unit 1302 may detect a task arranging operation input by a user in the task arranging interface for arranging an online task flow using the function displayed in the function list area, and in response to the task arranging operation, display an arranging result corresponding to the task arranging operation in the task canvas area, thereby displaying an online task flow diagram formed according to the task arranging operation in the task canvas area.
According to an exemplary embodiment of the present disclosure, the task orchestration operation may include an operation of dragging the first function in the function list area into the task orchestration area. When the orchestration unit 1302 detects the task orchestration operation, the function node of the first function in the online task flow graph can be displayed in the task canvas area. That is, the first function corresponding to the first function becomes a function node in the online task flow graph.
According to an example embodiment of the present disclosure, the task orchestration operation may further include an operation of orchestrating a logical relationship of the first function with the pre-function and/or the post-function. When the orchestration unit 1302 detects the task orchestration operation, the logical relationship of the function node of the first function to other function nodes in the online task flow graph can be displayed in the task canvas area. For example, when the editing unit 1302 detects that the user connects the function node corresponding to the first function with the previous function node and/or the subsequent function node, the connection line connecting the function node corresponding to the first function with the previous function node and/or the subsequent function node may be displayed in the task canvas area, representing the logical relationship.
According to an exemplary embodiment of the present disclosure, a user may perform a first configuration operation of configuring operation information of an online task flow corresponding to an online task flow diagram in a task configuration area. For example, before creating an online task flow for user orchestration according to an online task flow graph, the orchestration unit 1302 may detect a first configuration operation input by a user in a task configuration area for configuring running information of the online task flow. In response to the first configuration operation, the orchestration unit 1302 may obtain running information of the online task flow input by the user. The running information of the online task flow may include, but is not limited to, at least one of a running configuration, a life cycle, and an execution condition of the online task flow. Here, the run configuration may include trace forward and timeout configurations. The lifecycle may include function before execution (onStart), function complete, function failed execution (oneerror), function timeout, and onTimeout, which may be in the online task flow. The execution condition means that when the execution condition is satisfied by receiving the upstream operation result, the downstream function is executed. For example, the execution conditions may include receiving a runtime input parameter, a condition (onStart) under which the pre-processing logic may be executed, receiving a result of the function execution, a runtime input parameter, a condition (onComplete) under which the post-processing logic is executed, executing when there is an error, receiving a runtime input parameter, returning a function bottom entry result (oneerror), executing when there is a timeout, receiving a runtime input parameter, and returning a function bottom entry result (onetimeout).
According to an exemplary embodiment of the present disclosure, the user may further perform a second configuration operation of configuring the execution information of the function in the online task flow in the task configuration area. For example, the arranging unit 1302 may detect a selection operation of a user on a function node in the online task flow graph, display a configuration interface of a function corresponding to the selected function node in the task configuration area in response to the selection operation, detect a second configuration operation input by the user on the configuration interface and used for configuring the running information of the function corresponding to the function node, and obtain the running information of the function corresponding to the function node input by the user in response to the second configuration operation. The operation information of the function in the online task flow may include, but is not limited to, at least one of an argument, a dependency relationship, an initial parameter, an operation parameter, a life cycle, an execution condition, and the like of the function. Here, the reference indicates the parameter received by the function. The dependency represents the dependency of the function with other functions. The initial parameters refer to the initial parameters required before the function runs. The run parameters refer to the parameter lifecycle required by the function run, which may include function execution before (onStart), function execution complete (onComplete), function execution failure (oneerror), and function execution timeout (onTimeout) of the function. The execution condition means that when the execution condition is satisfied after receiving the upstream operation result, the downstream function will be executed. For example, the execution conditions may include receiving a runtime input parameter, a condition (onStart) under which the pre-processing logic may be executed, receiving a result of the function execution, a runtime input parameter, a condition (onComplete) under which the post-processing logic is executed, executing when there is an error, receiving a runtime input parameter, returning a function bottom entry result (oneerror), executing when there is a timeout, receiving a runtime input parameter, and returning a function bottom entry result (onetimeout).
According to an example embodiment of the present disclosure, the orchestration unit 1302 may display the running information of the online task flow by default in the task orchestration interface. The user can view and edit the running information of the online task flow. The task orchestration operation may also include an operation to click on a certain function node in the online task flow graph of the task canvas area. When the task orchestration operation is detected, the orchestration unit 1302 may switch to display the running information of the function corresponding to the function node in the task orchestration interface. The user can view and edit the operation information of the function corresponding to the function node.
According to an exemplary embodiment of the present disclosure, the orchestration unit 1302 may form an online task flow graph of orchestration completion according to at least one task editing operation. After the online task flow graph is arranged, the arranging unit 1302 may configure the running information of the online task flow in the task arranging interface.
The creating unit 1303 may create an online task flow programmed by a user according to the online task flow diagram. According to an exemplary embodiment of the present disclosure, the creating unit 1303 may create a task flow arranged by a user according to the online task flow diagram, and the operation information of the online task flow and/or the operation information of a function corresponding to a function node.
According to an exemplary embodiment of the present disclosure, the creating unit 1303 may obtain a function corresponding to a function node according to the function node in the online task flow diagram. The creating unit 1303 may determine a logical relationship between the functions corresponding to the function nodes according to the logical relationship between the function nodes. The operation logic of the online task flow can be determined according to the operation information of the online task flow. The creating unit 1303 may determine the operation logic of the function in the online task flow according to the operation information of the function in the online task flow. The creating unit 1303 may create an online task flow programmed by a user based on the obtained functions, the determined logical relationship between the functions, the determined operation logic of the online task flow, and the operation logic of the functions in the online task flow.
In addition, according to the exemplary embodiment of the present disclosure, a user can reasonably split and abstract the online scene task into reusable functional units. Therefore, the user can freely create (or define) functions, and the created functions can be displayed in the function list area. Therefore, the online task orchestration device according to the present disclosure may further include: a function creation unit (not shown). The display unit 1301 may display a function creation interface; the function creation unit may detect a function creation operation input in the function creation interface by a user, and create a function in response to the function creation operation. For example, the function creation operation includes an operation of selecting a predetermined function package, wherein the predetermined function package includes one or more function units programmed in advance. For example, one or more functional units may be written for an online task flow (e.g., random number online task-random), and these functional units may be packaged into a predetermined functional package and uploaded to a file management module within the schema. A file management interface according to an exemplary embodiment of the present disclosure is shown in fig. 4. For example, the predetermined function package may be a function package that is uploaded to the file management module and includes a plurality of pre-programmed arbitrary function units, instead of being packaged for a certain online task flow. Here, the function unit may be a function written without defining a task parameter. Creating a function is to perform a defined operation on a functional unit, and the defined functional unit can become a created function. Accordingly, the task creation operation may further include an operation of defining at least one of basic information, a function class name, an in-argument, an out-argument, an initial parameter, and an execution parameter of the function unit.
In addition, according to an exemplary embodiment of the present disclosure, a user may first create an online task flow to be scheduled, and after the online task flow to be scheduled is created, a task scheduling interface may be entered. Therefore, the online task orchestration device according to the present disclosure may further include: a task flow creation unit (not shown). The display unit 1301 may display a task flow creation interface; the task flow creating unit can detect task flow creating operation input by a user in the task flow creating interface and create the task flow to be scheduled in response to the task flow creating operation. The task flow creation operation may include an operation of inputting basic information of an online task flow to be scheduled. The basic information may include, but is not limited to, the name, unique identification (key), version, and description information of the online task flow to be scheduled. After the basic information of the online task flow to be scheduled is input, the task flow creating unit may create the online task flow to be scheduled based on the basic information of the online task flow to be scheduled.
In addition, according to an exemplary embodiment of the present disclosure, the functions created by the user and the online task flows to be scheduled may be displayed in the scheduling management interface, so that the user can view, create, and edit the functions and the online task flows. Accordingly, the display unit 1301 may also display an arrangement management interface. For example, an orchestration management interface according to an exemplary embodiment of the present disclosure is shown in FIG. 6.
Further, according to an exemplary embodiment of the present disclosure, when the user completes the layout of the online task flow diagram (e.g., completes the layout of the online task flow diagram through the task editing interface), the online task flow programmed by the user may be successfully created, and the display unit 1301 may display an online task list interface, wherein the created and completed online task flow may be displayed in the online task list. Further, the orchestration device of online tasks according to an exemplary embodiment of the present disclosure may further include a publishing unit (not shown) and a running unit (not shown). The publishing unit may publish the online task flow in response to an operation of a user selecting the online task flow to be published on the online task list interface. The running unit may run the online task flow in response to a user calling the published online task flow at the publishing platform or calling the published online task flow through the API. For example, an online task list interface according to an exemplary embodiment of the present disclosure is shown in FIG. 7.
In addition, according to an exemplary embodiment of the present disclosure, when a user selects to publish an online task flow on an online task list interface, a publication interface may be displayed, and the user may select a version of the online task flow desired to be published in the publication interface and publish the version. For example, when a user clicks a publish button in an online task list interface, a jump may be made to the publish interface. For example, a publishing interface according to an exemplary embodiment of the present disclosure is shown in FIG. 8.
In addition, according to an exemplary embodiment of the present disclosure, when an operation of debugging an online task flow is selected on the online task list interface by a user, the display unit 1301 may display a debugging interface; in response to the user selecting the operation of starting debugging on the debugging interface, the running unit can run the online task flow and display the running result on the debugging interface. For example, when a user clicks a debug button in an online task list interface, a jump may be made to the debug interface. For example, a debug interface according to an exemplary embodiment of the present disclosure is shown in FIG. 9.
In addition, according to the exemplary embodiment of the present disclosure, a record is left for each editing of the online task flow, and the modification situation of each task can be known through comparison. Therefore, the orchestration device of online tasks according to an exemplary embodiment of the present disclosure may further include a version comparison unit (not shown). When a user selects an operation of viewing the historical versions of the online task flows on the task list interface, the version comparison unit can display one or more historical versions related to the online task flows; in response to a user selecting an operation to view the first historical version from the one or more historical versions, the version comparison unit may display comparison information of the current version and the first historical version of the online task flow. For example, when a user clicks a view historical version button in an online task list interface, a jump may be made to a publishing interface where information for one or more historical versions may be displayed and the user may select one of the historical versions to click to preview for viewing. For example, a history viewing interface according to an exemplary embodiment of the present disclosure is shown in fig. 10.
According to the online task arranging method and the online task arranging device, the flow arranging relation among the online functions can be visually established by a user in a dragging mode through visual interface interactive operation, the function entry and exit parameters are configured, the whole process of online function flow definition is visualized, and operation and display are more visual.
In addition, according to the online task arranging method and the online task arranging device disclosed by the invention, the online task can be abstracted into a specific task module, the reusable online function can be abstracted and defined, the logic is operated, the function package is uploaded to the platform, the function association file, the function class and the default parameter are defined through the platform, and the abstraction and the reuse of the online task are realized through a visual arranging mode, so that the online task arranging reusability is stronger, the usability is better, and during subsequent development, the developed general function and the processing function similar to a scene can be used, and the creation of a new online scene can be completed only by a small development amount through visual arranging operation. Therefore, the method can realize the quick definition, the front-end visual configuration and the flexible arrangement combination of the construction function process, get rid of repeated development for many times in the traditional technology, simultaneously realize the continuous integration of a plurality of environments or a plurality of applications and the definition and the execution of the continuous delivery pipeline operation, and improve the efficiency of constructing the online task continuous delivery development.
In addition, the online task arranging method and the online task arranging device can be suitable for other complex scenes needing fine-grained disassembly, reuse and arrangement of functions.
The method for choreography of online tasks and the choreography apparatus of online tasks according to the exemplary embodiments of the present disclosure have been described above with reference to fig. 1 to 13.
The various elements of the marshalling apparatus of the online task shown in fig. 13 may be configured as software, hardware, firmware, or any combination thereof that performs a particular function. For example, each unit may correspond to an application-specific integrated circuit, to pure software code, or to a module combining software and hardware. Furthermore, one or more functions implemented by the respective units may also be uniformly executed by components in a physical entity device (e.g., a processor, a client, a server, or the like).
Further, the online task scheduling method described with reference to fig. 1 may be implemented by a program (or instructions) recorded on a computer-readable storage medium. For example, according to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions may be provided, wherein the instructions, when executed by at least one computing device, cause the at least one computing device to perform an orchestration method of online tasks according to the present disclosure.
The computer program in the computer-readable storage medium can be executed in an environment deployed in a computer device such as a client, a host, a proxy apparatus, a server, etc., and it should be noted that the computer program can also be used for performing additional steps other than the above steps or performing more specific processing when performing the above steps, and the content of the additional steps and the further processing are already mentioned in the description of the related method with reference to fig. 1, so that the description will not be repeated here to avoid repetition.
It should be noted that each unit in the on-line task orchestration device according to the exemplary embodiments of the present disclosure may completely depend on the execution of the computer program to realize the corresponding function, that is, each unit corresponds to each step in the functional architecture of the computer program, so that the entire system is called by a special software package (e.g., a lib library) to realize the corresponding function.
On the other hand, each unit shown in fig. 13 may also be implemented by hardware, software, firmware, middleware, microcode, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the corresponding operations may be stored in a computer-readable medium such as a storage medium, so that a processor may perform the corresponding operations by reading and executing the corresponding program code or code segments.
For example, exemplary embodiments of the present disclosure may also be implemented as a computing device including a storage part having a set of computer-executable instructions stored therein and a processor, which, when executed by the processor, performs an orchestration method of online tasks according to exemplary embodiments of the present disclosure.
In particular, computing devices may be deployed in servers or clients as well as on node devices in a distributed network environment. Further, the computing device may be a PC computer, tablet device, personal digital assistant, smart phone, web application, or other device capable of executing the set of instructions.
The computing device need not be a single computing device, but can be any device or collection of circuits capable of executing the instructions (or sets of instructions) described above, individually or in combination. The computing device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces with local or remote (e.g., via wireless transmission).
In a computing device, a processor may include a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a programmable logic device, a special purpose processor system, a microcontroller, or a microprocessor. By way of example, and not limitation, processors may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
Some of the operations described in the method for orchestrating online tasks according to the exemplary embodiments of the present disclosure may be implemented by software, some of the operations may be implemented by hardware, and further, the operations may be implemented by a combination of hardware and software.
The processor may execute instructions or code stored in one of the memory components, which may also store data. The instructions and data may also be transmitted or received over a network via the network interface device, which may employ any known transmission protocol.
The memory component may be integral to the processor, e.g., having RAM or flash memory disposed within an integrated circuit microprocessor or the like. Further, the storage component may comprise a stand-alone device, such as an external disk drive, storage array, or any other storage device usable by a database system. The storage component and the processor may be operatively coupled or may communicate with each other, such as through an I/O port, a network connection, etc., such that the processor can read files stored in the storage component.
In addition, the computing device may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the computing device may be connected to each other via a bus and/or a network.
The method of orchestration of online tasks according to exemplary embodiments of the present disclosure can be described as various interconnected or coupled functional blocks or functional diagrams. However, these functional blocks or functional diagrams may be equally integrated into a single logic device or operated on by non-exact boundaries.
Thus, the method of orchestration of online tasks described with reference to FIG. 1 may be implemented by a system comprising at least one computing device and at least one storage device storing instructions.
According to an exemplary embodiment of the present disclosure, the at least one computing device is a computing device for performing an orchestration method of online tasks according to an exemplary embodiment of the present disclosure, the storage device having stored therein a set of computer-executable instructions that, when executed by the at least one computing device, perform the orchestration method of online tasks described with reference to fig. 1.
While various exemplary embodiments of the present disclosure have been described above, it should be understood that the above description is exemplary only, and not exhaustive, and that the present disclosure is not limited to the disclosed exemplary embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the disclosure. Therefore, the protection scope of the present disclosure should be subject to the scope of the claims.

Claims (10)

1. A method for arranging online tasks comprises the following steps:
displaying a task orchestration interface, wherein the task orchestration interface comprises a function list area and a task canvas area, wherein the function list area displays one or more functions;
detecting a task arrangement operation which is input by a user on the task arrangement interface and is used for arranging an online task flow by using a function displayed in the function list area, and displaying an arrangement result corresponding to the task arrangement operation in the task canvas area in response to the task arrangement operation, so that an online task flow diagram formed according to the task arrangement operation is displayed in the task canvas area;
and creating the online task flow programmed by the user according to the online task flow diagram.
2. The task orchestration method according to claim 1, further comprising, after the creating the online task flow for the user orchestration,:
displaying an online task list interface in response to the online task flow scheduled by the user having been created and completed, wherein the created and completed online task flow is displayed in the online task list;
responding to the operation of a user for selecting and publishing the online task flow on the online task list interface, and publishing the online task flow;
and responding to the online task flow which is called by a user on a publishing platform or called by an API (application programming interface), and running the online task flow.
3. The task orchestration method according to claim 2, further comprising:
responding to the operation of selecting and debugging the online task flow on the task list interface by a user, and displaying a debugging interface;
and responding to the operation of starting debugging selected by the user on the debugging interface, running the online task flow, and displaying a running result on the debugging interface.
4. The task orchestration method according to claim 2, further comprising:
displaying one or more historical versions related to the online task flow in response to a user selecting an operation of viewing the historical versions of the online task flow on the task list interface;
and in response to the operation of selecting to view the first historical version from the one or more historical versions by the user, displaying comparison information of the current version and the first historical version of the online task flow.
5. The task orchestration method according to any one of claims 1 to 4, wherein the task orchestration operation includes an operation of dragging a first function in the function list region into the task orchestration region;
wherein the displaying of the orchestration result corresponding to the task orchestration operation in the task canvas area comprises: and displaying function nodes of the first function in the online task flow diagram in the task layout area.
6. The task orchestration method according to claim 5, wherein the task orchestration operation further comprises an operation of orchestrating a logical relationship of the first function with a pre-function and/or a post-function;
wherein the displaying of the orchestration result corresponding to the task orchestration operation in the task canvas area comprises: and displaying the logical relation of the function node of the first function and other function nodes in the online task flow diagram in the task canvas area.
7. The task orchestration method according to any one of claims 1 to 4, wherein the task orchestration interface further comprises a task configuration area;
wherein, before creating the online task flow programmed by the user according to the online task flow diagram, the method further comprises:
detecting a first configuration operation which is input by a user in the task configuration area and is used for configuring the running information of the online task process;
responding to the first configuration operation, and acquiring the running information of the online task process input by the user;
and/or
Detecting the selection operation of the user on the function node in the online task flow diagram;
responding to the selection operation, and displaying a configuration interface of the function corresponding to the selected function node in the task configuration area;
detecting a second configuration operation which is input by the user on the configuration interface and is used for configuring the operation information of the function corresponding to the function node;
responding to the second configuration operation, and acquiring running information of a function corresponding to the function node input by the user;
wherein, according to the online task flow diagram, creating the online task flow scheduled by the user comprises:
and creating the online task flow arranged by the user according to the online task flow diagram, and the operation information of the online task flow and/or the operation information of the function corresponding to the function node.
8. An apparatus for online task orchestration, comprising:
a display unit configured to: displaying a task orchestration interface, wherein the task orchestration interface comprises a function list area and a task canvas area, wherein the task list area displays one or more functions;
an orchestration unit configured to: detecting a task arrangement operation which is input by a user in the task arrangement interface and is used for arranging a task flow by using a function displayed in the function list area, and displaying an arrangement result corresponding to the task arrangement operation in the task canvas area in response to the task arrangement operation, so that a task flow diagram formed according to the task arrangement operation is displayed in the task canvas area;
a creation unit configured to: and creating the task flow programmed by the user according to the task flow diagram.
9. A computer-readable storage medium storing instructions that, when executed by at least one computing device, cause the at least one computing device to perform a task orchestration method according to any one of claims 1 to 7.
10. A system comprising at least one computing device and at least one storage device storing instructions that, when executed by the at least one computing device, cause the at least one computing device to perform a task orchestration method according to any one of claims 1 to 7.
CN202011566558.8A 2020-12-25 2020-12-25 Online task arranging method and online task arranging device Pending CN114691308A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011566558.8A CN114691308A (en) 2020-12-25 2020-12-25 Online task arranging method and online task arranging device
PCT/CN2021/140480 WO2022135478A1 (en) 2020-12-25 2021-12-22 Task orchestration method and orchestration apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011566558.8A CN114691308A (en) 2020-12-25 2020-12-25 Online task arranging method and online task arranging device

Publications (1)

Publication Number Publication Date
CN114691308A true CN114691308A (en) 2022-07-01

Family

ID=82129780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011566558.8A Pending CN114691308A (en) 2020-12-25 2020-12-25 Online task arranging method and online task arranging device

Country Status (2)

Country Link
CN (1) CN114691308A (en)
WO (1) WO2022135478A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055572A (en) * 2023-01-03 2023-05-02 广州市玄武无线科技股份有限公司 Global integration compiling and arranging flow protocol generation method and execution method

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361048B (en) * 2022-07-01 2023-08-15 北京邮电大学 Giant low-orbit constellation serverless edge computing task arrangement method and device
CN117032665B (en) * 2023-07-24 2024-05-03 易方达基金管理有限公司 Visual construction method and system for investment factors
CN117289924A (en) * 2023-10-13 2023-12-26 河北云在信息技术服务有限公司 Visual task scheduling system and method based on Flink
CN117742690A (en) * 2023-12-22 2024-03-22 北京领雁科技股份有限公司 Node self-adaptive flow scheduling method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7665064B2 (en) * 2004-05-14 2010-02-16 Gt Software, Inc. Systems and methods for web service function, definition, implementation, and/or execution
CN104836853A (en) * 2015-04-22 2015-08-12 华为技术有限公司 Method and apparatus for business arrangement
CN109408996B (en) * 2018-11-05 2023-11-07 北京旷视机器人技术有限公司 Interaction method, device and system for intelligent equipment control and storage medium
CN111596913B (en) * 2020-05-22 2024-04-30 北京达佳互联信息技术有限公司 Visual component framework arranging method and device
CN111949257A (en) * 2020-07-07 2020-11-17 北京思特奇信息技术股份有限公司 Towable service arranging method, system and using method
CN111930372B (en) * 2020-08-06 2022-09-20 科大国创云网科技有限公司 Service arrangement solution method and system realized through draggable flow chart
CN112083911A (en) * 2020-08-17 2020-12-15 山东中创软件商用中间件股份有限公司 Method, device, equipment and medium for generating service arrangement model

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055572A (en) * 2023-01-03 2023-05-02 广州市玄武无线科技股份有限公司 Global integration compiling and arranging flow protocol generation method and execution method
CN116055572B (en) * 2023-01-03 2024-01-16 广州市玄武无线科技股份有限公司 Global integration compiling and arranging flow protocol generation method and execution method

Also Published As

Publication number Publication date
WO2022135478A1 (en) 2022-06-30

Similar Documents

Publication Publication Date Title
CN114691308A (en) Online task arranging method and online task arranging device
US10692030B2 (en) Process visualization platform
US8341593B2 (en) Integrated development framework for composite applications
CN110928772B (en) Test method and device
Bowers et al. Enabling scientificworkflow reuse through structured composition of dataflow and control-flow
US9792354B2 (en) Context aware user interface parts
US8589864B2 (en) Automating the creation of an application provisioning model
CN109739855B (en) Method and system for realizing data sheet splicing and automatically training machine learning model
US20110154226A1 (en) Chip model of an extensible plug-in architecture for enterprise mashups
US20130227577A1 (en) Automated Administration Using Composites of Atomic Operations
US9507587B2 (en) Application-centric resources and connectivity configuration
Rodríguez-Echeverría et al. Modernization of legacy web applications into rich internet applications
US8745537B1 (en) Graphical interface for managing and monitoring the status of a graphical model
Dukaric et al. BPMN extensions for automating cloud environments using a two-layer orchestration approach
KR101326985B1 (en) Method and apparatus for developing, distributing and executing object-wise dynamic compileless programs
CN105229617A (en) For the chart of navigation application code
US9164746B2 (en) Automatic topology extraction and plotting with correlation to real time analytic data
De Boeck et al. High-level modeling of multimodal interaction techniques using nimmit
US20100250228A1 (en) Modeling a composite application
CN116774989A (en) Design and implementation method, system and terminal of software construction and release device
CN114757124A (en) CFD workflow modeling method and device based on XML, computer and storage medium
CN114610368A (en) Platform tool chain integration and maintenance method, system, equipment and medium
CN114691344A (en) Task arranging method and task arranging device
CN112925813A (en) Data processing method, device and system based on mixed arrangement and storage medium
CN111124393A (en) Editing method and platform of algorithm logic, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination