CN113568614A - Task issuing method, electronic device and storage medium - Google Patents

Task issuing method, electronic device and storage medium Download PDF

Info

Publication number
CN113568614A
CN113568614A CN202110890820.2A CN202110890820A CN113568614A CN 113568614 A CN113568614 A CN 113568614A CN 202110890820 A CN202110890820 A CN 202110890820A CN 113568614 A CN113568614 A CN 113568614A
Authority
CN
China
Prior art keywords
task
parameter
interface
user
template
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
CN202110890820.2A
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.)
Ireader Technology Co Ltd
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN202110890820.2A priority Critical patent/CN113568614A/en
Publication of CN113568614A publication Critical patent/CN113568614A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • G06F8/355Round-trip engineering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a task issuing method, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components; receiving user input parameters based on each parameter input control in the task issuing interface; determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template; based on each target task parameter template and corresponding user input parameters, an executable task is generated. The invention realizes the visualization of the configuration of the task parameters, simplifies the understanding of the user to the task by a parameter component mode, reduces the input error of the task parameters, realizes the task generation by low code amount and is convenient for the user to manage the task.

Description

Task issuing method, electronic device and storage medium
Technical Field
The invention relates to the field of computers, in particular to a task issuing method, electronic equipment and a storage medium.
Background
The responsibility of operation and maintenance covers the entire life cycle of business applications from design to release, operation and maintenance, change to upgrade and down-line. With the expansion of enterprise scale and business, the increase of the number of servers and the like, the traditional manual operation and maintenance mode cannot provide excellent and efficient service to meet the current situation, and a new operation and maintenance system is urgently needed to be constructed from the aspects of flow, automation and the like so as to improve the operation and maintenance efficiency and the business service quality.
Some existing solutions provide operation and maintenance components such as fabric, saltstack, and infrastructure, which can be used for executing some task scripts but cannot perform audit records of task execution, analyze and summarize task results, and the like, and cannot be well close to a service scene. And the operation and maintenance component can not directly output the task result, the task result needs to be waited all the time in the process of executing the task script, and other transactions can not be processed in the middle. Further, the task scripts have high dependency on the environment, and different task scripts are deployed for different servers. When the server is expanded, the original deployment of scripts on one server becomes the need to deploy scripts on a plurality of servers, when the data of the server continuously increases, the number of the scripts also needs to be continuously increased, and the management difficulty of a large number of the scripts is increased.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a task issuing method, an electronic device, and a storage medium that overcome the above problems or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a task issuing method including:
acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components;
receiving user input parameters based on each parameter input control in the task issuing interface;
determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template;
based on each target task parameter template and corresponding user input parameters, an executable task is generated.
According to another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components;
receiving user input parameters based on each parameter input control in the task issuing interface;
determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template;
based on each target task parameter template and corresponding user input parameters, an executable task is generated.
According to another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to any one of the task issuing methods described above.
According to the task issuing method, the electronic equipment and the storage medium, provided by the invention, the visualization of the configuration of the task parameters is realized, the understanding of the user to the task is simplified through a parameter component mode, the input error of the task parameters is reduced, the task generation is realized with low code amount, and the management of the user to the task is facilitated.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 shows a flowchart of a task publication method according to one embodiment of the invention;
FIG. 2 is a flowchart illustrating a task publication method according to another embodiment of the invention;
FIG. 3 shows a parameter interface diagram of a visualization;
FIG. 4 shows a schematic diagram of a task configuration interface;
FIG. 5 shows a schematic diagram of a journal interface;
FIG. 6 is a schematic diagram of an operation and maintenance management system architecture for a task;
fig. 7 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Example one
Fig. 1 is a flowchart illustrating a task issuing method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
and S101, acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task issuing interface with parameter input controls corresponding to the selected parameter components.
The execution main body of the embodiment is a client used by a user (such as operation and maintenance personnel for issuing tasks) and the user does not need to have high code encoding capability, and through visual interface operation, the executable task can be automatically generated for the user conveniently, so that the task issuing can be completed with low codes. Further, considering that tasks required by different services and application scenarios are different, if different tasks are developed for different task requirements each time, time is short and workload is large, the problem can be solved through the embodiment, and a user is helped to generate a personalized task operation and maintenance interface corresponding to the task requirements more quickly and conveniently to complete task release, execution and the like.
Specifically, the task parameter is a parameter input during the start execution of the task, so as to start the execution of the task. In the prior art, the input parameters are mostly received in an input box mode, or the parameters are directly input by a user, and the specific type of the parameters input by the user is not limited, so that the parameters input by the user need to be checked according to different check rules, then the parameters are acquired, and the code writing of different check rules is increased. Meanwhile, the user input error and other problems are easily caused because the parameter type input by the user is not limited.
The embodiment adopts a visual parameter interface, the parameter interface comprises a plurality of preset parameter components, a user can conveniently and directly select the parameter components to construct the task parameters, the workload of manually compiling codes by the user is reduced, and the task parameters are constructed by low codes. The user does not need to write codes corresponding to different parameters aiming at different tasks, and the parameter components can be reused to construct the parameters of different tasks. Meanwhile, the type of input parameters can be limited by using the parameter components, one parameter component can correspond to one parameter field type, and input is carried out according to the parameter component during input, so that the error probability of parameter input is greatly reduced. Further, the task parameters are constructed by using the selected parameter components, and the workload of manually writing codes by a user to construct the task parameters is reduced. And after the user selects the parameter component, according to the selected parameter component, the corresponding rendering task issuing interface is realized. And the task issuing interface is provided with a parameter input control corresponding to the selected parameter component. If the parameter component selected by the user is the drop-down frame parameter component, the corresponding parameter input control in the drop-down frame format is rendered in the task issuing interface, so that the parameter input can be conveniently and directly selected from the drop-down frame, and the error rate of manual parameter input is reduced.
And S102, receiving user input parameters based on each parameter input control in the task issuing interface.
According to each parameter input control in the task issuing interface, a user can directly input parameters by using the parameter input control, for example, the user can directly select parameter input according to the drop-down frame parameter input control, and can directly select input parameters according to the switch parameter input control, and the like, so that the parameters input by the user can be conveniently received in the task issuing interface.
And step S103, determining a target task parameter template corresponding to each parameter input control.
Each parameter component in the parameter configuration interface is provided with a corresponding task parameter template, and the parameter components and the task parameter templates can adopt a dynamic binding mode. The parameter components correspond to the parameter input controls one by one, and the target task parameter template corresponding to the parameter input controls can be determined according to the parameter components. The target task parameter template can be reused, so that a user can conveniently select different combinations of parameter components, and the target task parameter template is reused to generate different executable tasks, thereby improving the task configuration efficiency and reducing the labor cost.
The target task parameter template can be generated in advance, so that subsequent multiplexing is facilitated, different target task parameter templates are set according to implementation conditions, and the target task parameter templates are not limited herein.
And step S104, generating an executable task based on each target task parameter template and corresponding user input parameters.
And according to the determined target parameter templates and the user input parameters, combining the user input parameters with the target task parameter templates to realize that the user input parameters are transmitted to the specific target task parameter templates of the background, and generating an executable task.
According to the task issuing method provided by the invention, the visualization of the configuration of the task parameters is realized, the task parameters are constructed through the parameter components, the understanding of the user to the task is simplified, the input error of the task parameters is reduced, the task generation is realized with low code amount, and the management of the user to the task is facilitated. The task execution process and the task execution result are visualized, and the operation and maintenance management efficiency of the task is improved.
Example two
Fig. 2 is a flowchart illustrating a task issuing method according to another embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step S201, receiving a dragging operation of the selected parameter component triggered by a user, and placing each parameter component into a parameter container area according to an expected layout style.
The visualized parameter interface provides a plurality of draggable parameter components and a parameter container area. As shown in fig. 3, each parameter component has a corresponding parameter attribute, so that a user can select at least one parameter component in a parameter configuration interface by referring to the parameter attributes, for example, whether the field type of the parameter component is a selected type or not, if the switch field is a switch component and the field type is an enumeration type, and when multiple options are included, the lower pull selection frame field may correspond to a select component, and the parameter component is specifically set according to an implementation situation, which is not limited herein.
The middle part of fig. 3 is a parameter container area for accommodating a draggable parameter component selected by a user. The user may select a required parameter component from the left side and drag the parameter component into the parameter container, and place each parameter component into the parameter container region according to the desired layout style, specifically, the web front end framework may be adopted, for example, to define corresponding parameter components for different fields. Dragging the parameter component realizes dragging of the parameter component by binding drags, Drop and other operations on cs (cascading style sheet) elements, and dragging the parameter component to a parameter container area is realized. In the parameter container area, the parameter container area is placed according to an expected layout style through css setting, the expected layout style includes, for example, attributes, width, height, size and the like of each parameter component, and the specific style is set according to task requirements and implementation conditions, which is not limited here.
And S202, rendering a task issuing interface with the parameter input controls corresponding to the selected parameter components.
And when the task issuing interface is rendered, rendering is carried out by using the parameter input controls corresponding to the selected parameter components, and each parameter input control in the task issuing interface also meets the expected layout style and corresponds to the parameter component arranged in the parameter container area.
Optionally, in this embodiment, the target task parameter template may be generated in advance, and in addition, the method may further include the following steps:
step S203, configuring the task execution step in the visual configuration interface according to the specified format to obtain a corresponding task definition file so as to generate a target task parameter template.
The task definition file is a specified structured file and comprises a plurality of keywords for recording task configuration information. And determining parameters required by the target task based on the task definition file, and constructing a corresponding target task parameter template.
The configuration task provides a visual configuration interface, and task configuration can be completed conveniently by using the configuration interface. The task configuration comprises a task execution environment, a host corresponding to task issuing, description information of the task and the like. The specified format can set different keywords for different configurations, and corresponding configuration information is set by using the keywords. As shown in fig. 4, the task configuration interface includes a plurality of keywords, and different keywords correspond to different task configuration information, so that the task configuration can be conveniently completed based on the keywords. As shown in bold in fig. 4, other displays may be used, and are not limited herein. The configuration is carried out according to the specified format through the keywords, so that the configuration of the task is more standardized and standardized, the task can be rapidly configured by a user, and other users can conveniently and rapidly know the task. The tasks are configured step by step according to the specified format, so that the user can conveniently know the task flow, and the user who newly contacts the task configuration can quickly start to complete the task configuration. After the tasks are configured according to the specified format, the configured various information is generated into a task definition file, wherein the task definition file is a specified structured file, such as yaml and the like, and comprises a plurality of keywords for recording task configuration information. Furthermore, the tasks are configured according to the specified format, and the configuration of multiple tasks is conveniently realized. When defining tasks, the tasks can be divided into two types, namely a temporary task, a script is compiled according to actual conditions to be executed, and the temporary task is executed according to specific requirements; a task for daily execution is configured according to a specified format, standardized, and defined step by step according to the specified format to obtain a task definition file. For such tasks, a certain created task can be used as a target task parameter template for standardized multiplexing, for example, the task parameters are adjusted and applied to other hosts for execution, so that the workload of task configuration is reduced, and the multiplexing rate of the target task parameter template is improved.
Further, when the tasks are configured, a multi-level task can be defined through keywords, and task nesting and the like can be achieved, such as defining task include keywords, nesting tasks in the tasks, and the like. The setting of the keywords is set according to the requirements of the implementation situation. Besides the standardized configuration of the tasks, the task definition file can also include standardized limitation of task execution modes, task definition templates, authority model control, task distributed processing and the like, and avoids task processing conflicts and the like caused by distribution, for example, a server and a task which can be operated by a user are limited, and the leakage of authorities, user accounts and the like is avoided.
Optionally, in this embodiment, an execution flow corresponding to the task may be obtained by analyzing the task definition file, and a corresponding execution flow diagram is generated and displayed. Specifically, when the task definition file is analyzed, each keyword during task configuration is extracted from the task definition file. According to the keywords of the tasks and a preset task dictionary (which collects and records the keywords of the tasks), the task definition file can be subjected to recursive processing, and the task definition file can be analyzed layer by layer to generate a binary tree structure corresponding to the task execution flow. And traversing the whole binary tree structure from the root node to obtain a data structure corresponding to the task execution flow, such as a post tree data structure. Based on a tree data structure corresponding to a task execution flow, different labels, different node coordinates and the like are defined in a data set by using a designated picture, such as an SVT picture, the labels correspond to all tree nodes in the tree data structure, the node coordinates define all node positions, and an execution flow chart is generated by using all the labels and the corresponding node coordinates and displayed for a user to check. The user can clearly check the execution flow of the task at a glance, and can also confirm whether the task configuration is accurate or not based on the execution flow chart.
And step S204, receiving user input parameters based on each parameter input control in the task issuing interface.
And step S205, determining a target task parameter template corresponding to each parameter input control.
The above steps refer to the description of steps S102-S103 of the embodiment, and are not described again here.
And S206, assembling the target task parameter templates corresponding to the parameter components to generate a form structure according to the expected layout style.
And filling parameter components in the parameter container area, and splicing to generate a form structure. Specifically, the attributes corresponding to each parameter component, such as width, height, size and the like, are limited in the form, and the target task parameter templates corresponding to each parameter component are assembled to obtain the form structure by binding to css. The form structure includes parameter attributes that fill parameter components in the parameter container area. And dynamically binding a parameter interface at the front end with a target task parameter template at the rear end to obtain a form structure, and realizing the conversion of parameter properties and the dynamic binding with a specific task execution process.
Step S207, filling the form structure according to the user input parameters, and generating an executable task.
And filling the user input parameters into the form structure, so that the input parameters are transmitted to the background, the task obtains the required parameters, and the executable task is generated.
Step S208, sending a data access request corresponding to the executable task to the data server.
In step S209, task log information in response to the data access request is received from the data server.
And step S210, displaying the task log information.
In the embodiment, the executable task is started to be executed by sending the data access request of the corresponding executable task to the data server. And the data server performs screening according to the data access request, receives task log information of the data server responding to the data access request and displays the task log information.
The task log information is various execution information generated by executing the task recorded in the task execution process, and considering that the execution information is closely related to the task, and the data format, the execution condition and the like are different and the same, the execution information can be converted by using a specified protocol, such as an oplog protocol, to obtain the specified structured log information. And establishing a standardized log information format in a specified protocol, and correspondingly converting relevant information in the execution information into standardized log information. The log information includes, for example, a task name, a task start time, a task end time, task execution success/failure, task influence information, operation information at the server at each time point, execution command information, task return value information, task-corresponding host information, and the like. The execution condition, the related host information, the execution influence information and the like of the task can be clearly known based on the log information, so that the backtracking processing and the like of the task execution are facilitated.
Further, in the actual operation and maintenance process, a plurality of tasks are often executed at the same time, when the execution information of the plurality of tasks is converted, the corresponding relationship between each task and the converted log information needs to be recorded, the association relationship between the task and the corresponding log information is established, and subsequently, the log information corresponding to the task can be displayed in a targeted manner during display, so that the error display of the non-associated log information is avoided.
As shown in fig. 5, the log interface can display the log information, so that the user can clearly know the execution condition of the task, the influence generated by the execution of the task, the success or failure of the execution of the task, and the like, and the user does not need to manually search the log information, which is more concise and convenient, and the user can complete the audit of the task based on the log information displayed on the log interface.
Further, in an optional embodiment, the operation and maintenance management of the task includes: defining a series of processes of tasks, executing the tasks, auditing the tasks and the like. As shown in fig. 6, the defined task includes various configurations such as configuring task parameters, configuring task execution environment, task issuing host, and configuring task description information. After the task is defined, an interface of the operation and maintenance management system, such as an HTTP interface, is called, a WEB interface of the operation and maintenance management system is responsible for sending the task to a task queue, and the task queue provides distributed management capability, so that the number of task work execution units worker can be dynamically expanded, and the task execution concurrence number is improved. The task work execution unit worker receives the task from the celery, takes the task parameters and the definition file of the task configuration and the like, and issues the task to a specified host (server) for execution through an operation and maintenance component, such as an idle component. The logs generated in the task execution process are recorded in a database, such as a Mongo database, so that task audit records can be inquired and task execution can be visually displayed. After the execution of the task is completed, the results of the execution of the task are sent nsq to a message queue. Hooks can be set in tasks to trigger callback functions, and task callback processing can be completed in a specified topic class. The above description is provided for illustration and is not intended to be limiting.
According to the task issuing method provided by the invention, the visualization and standardization of the task issuing are realized. And through visual standardized parameter configuration, visual standardized task definition files and visual standardized log display, complete operation and maintenance operation audit of the tasks is provided. In the process, the workload of code handwriting is greatly reduced, different users can conveniently and quickly manage tasks, the labor cost of task handover among different users is reduced, and the operation and maintenance management efficiency of the tasks is improved.
EXAMPLE III
The third embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the task issuing method in any of the above method embodiments.
The executable instructions may be specifically configured to cause the processor to: acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components; receiving user input parameters based on each parameter input control in the task issuing interface; determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template; based on each target task parameter template and corresponding user input parameters, an executable task is generated.
In an alternative embodiment, the parameter configuration interface comprises a plurality of draggable parameter components and a parameter container area; the executable instructions further cause the processor to: receiving the dragging operation of the selected parameter components triggered by a user, and placing each parameter component into a parameter container area according to an expected layout style; rendering a task issuing interface with parameter input controls corresponding to the selected parameter components; and each parameter input control in the task issuing interface meets the expected layout style.
In an alternative embodiment, the executable instructions further cause the processor to: assembling target task parameter templates corresponding to the parameter components to generate a form structure according to the expected layout style; and filling the form structure according to the user input parameters to generate an executable task.
In an optional implementation manner, each parameter component in the parameter configuration interface has a corresponding parameter attribute, so that a user can select at least one parameter component in the parameter configuration interface by referring to the parameter attribute.
In an alternative embodiment, the executable instructions further cause the processor to: configuring an execution step of a task in a visual configuration interface according to a specified format to obtain a corresponding task definition file so as to generate a target task parameter template; the task definition file is a specified structured file and comprises a plurality of keywords for recording task configuration information.
In an alternative embodiment, the executable instructions further cause the processor to: and analyzing the task definition file to obtain an execution flow corresponding to the task, and generating and displaying a corresponding execution flow chart.
In an alternative embodiment, the executable instructions further cause the processor to: analyzing the task definition file, and extracting keywords of the task; according to the keywords of the tasks and a preset task dictionary, performing recursive processing on the task definition file to generate a binary tree structure corresponding to the task execution flow; traversing the binary tree structure from the root node to obtain a data structure corresponding to the task execution flow; and generating and displaying an execution flow chart of the task by using the specified picture based on a data structure corresponding to the task execution flow.
In an alternative embodiment, the executable instructions further cause the processor to: sending a data access request corresponding to the executable task to a data server; receiving task log information from the data server in response to the data access request; and displaying the task log information.
In an alternative embodiment, the executable instructions further cause the processor to: recording the execution information of the task in the task execution process; converting the execution information according to a specified protocol to obtain specified structured task log information; the log information comprises a task name, task starting time, task ending time, task execution success/failure, task influence information, operation information of each time point on the server, execution command information, task return value information and/or host information corresponding to the task; and outputting and displaying task log information in real time by using a log interface.
In an alternative embodiment, the executable instructions further cause the processor to: when the execution information of a plurality of tasks is converted by using a specified protocol, the corresponding relation between each task and the converted log information is recorded.
Example four
Fig. 7 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 7, the electronic device may include: a processor (processor)702, a Communications Interface 704, a memory 706, and a communication bus 708.
Wherein:
the processor 702, communication interface 704, and memory 706 communicate with each other via a communication bus 708.
A communication interface 704 for communicating with network elements of other devices, such as clients or other servers.
The processor 702 is configured to execute the program 710, and may specifically perform relevant steps in the above-described task issuing method embodiment.
In particular, the program 710 may include program code that includes computer operating instructions.
The processor 702 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the present invention. The server comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 706 stores a program 710. The memory 706 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 710 may specifically be used to cause the processor 702 to perform the following operations: acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components; receiving user input parameters based on each parameter input control in the task issuing interface; determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template; based on each target task parameter template and corresponding user input parameters, an executable task is generated.
In an alternative embodiment, the parameter configuration interface comprises a plurality of draggable parameter components and a parameter container area; the program 710 is configured to enable the processor 702 to receive a drag operation, triggered by a user, on a selected parameter component, and place each parameter component into a parameter container region according to a desired layout style; rendering a task issuing interface with parameter input controls corresponding to the selected parameter components; and each parameter input control in the task issuing interface meets the expected layout style.
In an optional implementation manner, the program 710 is configured to enable the processor 702 to assemble target task parameter templates corresponding to each parameter component according to an expected layout style to generate a form structure; and filling the form structure according to the user input parameters to generate an executable task.
In an optional implementation manner, each parameter component in the parameter configuration interface has a corresponding parameter attribute, so that a user can select at least one parameter component in the parameter configuration interface by referring to the parameter attribute.
In an alternative embodiment, the program 710 is configured to enable the processor 702 to configure the task execution steps in the visual configuration interface according to a specified format, obtain a corresponding task definition file, and generate a target task parameter template; the task definition file is a specified structured file and comprises a plurality of keywords for recording task configuration information.
In an alternative embodiment, the program 710 is configured to enable the processor 702 to parse the task definition file to obtain an execution flow corresponding to the task, and generate and display a corresponding execution flow diagram.
In an alternative embodiment, the program 710 is configured to enable the processor 702 to parse the task definition file, and extract keywords of the task; according to the keywords of the tasks and a preset task dictionary, performing recursive processing on the task definition file to generate a binary tree structure corresponding to the task execution flow; traversing the binary tree structure from the root node to obtain a data structure corresponding to the task execution flow; and generating and displaying an execution flow chart of the task by using the specified picture based on a data structure corresponding to the task execution flow.
In an alternative embodiment, the program 710 is configured to cause the processor 702 to send a data access request corresponding to an executable task to a data server; receiving task log information from the data server in response to the data access request; and displaying the task log information.
In an alternative embodiment, the program 710 is configured to cause the processor 702 to record the execution information of the task during the task execution; converting the execution information according to a specified protocol to obtain specified structured task log information; the log information comprises a task name, task starting time, task ending time, task execution success/failure, task influence information, operation information of each time point on the server, execution command information, task return value information and/or host information corresponding to the task; and outputting and displaying task log information in real time by using a log interface.
In an alternative embodiment, the program 710 is configured to enable the processor 702 to record the corresponding relationship between each task and the converted log information when the processor converts the execution information of the plurality of tasks by using the specified protocol.
For specific implementation of each step in the program 710, reference may be made to corresponding descriptions in corresponding steps in the task issuing embodiment described above, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
By the scheme provided by the embodiment, the task parameter configuration visualization is realized, the understanding of the user to the task is simplified by a parameter component mode, the input error of the task parameter is reduced, the task generation is realized by low code amount, and the user can manage the task conveniently.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses: A1. a method of task publication, comprising:
acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components;
receiving user input parameters based on each parameter input control in the task issuing interface;
determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template;
and generating an executable task based on each target task parameter template and corresponding user input parameters.
A2. The method according to A1, wherein the parameter configuration interface comprises a plurality of draggable parameter components and a parameter container area;
the method for acquiring at least one parameter component selected by a user based on a parameter configuration interface and rendering a task issuing interface with parameter input controls corresponding to the selected parameter components comprises the following steps:
receiving a dragging operation of the selected parameter components triggered by a user, and placing each parameter component into the parameter container region according to an expected layout style;
rendering a task issuing interface with parameter input controls corresponding to the selected parameter components; and each parameter input control in the task publishing interface meets the expected layout style.
A3. The method of a2, wherein the generating an executable task based on each of the target task parameter templates and corresponding user input parameters comprises:
assembling target task parameter templates corresponding to the parameter components to generate a form structure according to the expected layout style;
and filling the form structure according to the user input parameters to generate an executable task.
A4. The method according to a1, wherein each parameter component in the parameter configuration interface has a corresponding parameter attribute, so that a user can select at least one parameter component in the parameter configuration interface by referring to the parameter attribute.
A5. The method of any of A1-A4, wherein, prior to the determining the target task parameter template for each of the parameter input controls, the method further comprises:
configuring an execution step of a task in a visual configuration interface according to a specified format to obtain a corresponding task definition file so as to generate a target task parameter template; the task definition file is a specified structured file and comprises a plurality of keywords for recording task configuration information.
A6. The method of a5, wherein the method further comprises:
and analyzing the task definition file to obtain an execution flow corresponding to the task, and generating and displaying a corresponding execution flow chart.
A7. The method according to a6, wherein the parsing the task definition file to obtain an execution flow corresponding to a task, and generating and displaying a corresponding execution flow diagram further includes:
analyzing the task definition file, and extracting keywords of the task;
according to the keywords of the task and a preset task dictionary, performing recursive processing on the task definition file to generate a binary tree structure corresponding to a task execution flow;
traversing the binary tree structure from the root node to obtain a data structure corresponding to the task execution flow;
and generating and displaying an execution flow chart of the task by using the specified picture based on the data structure corresponding to the task execution flow.
A8. The method of a1, wherein, after the generating an executable task based on each of the target task parameter templates and corresponding user input parameters, the method further comprises:
sending a data access request corresponding to the executable task to a data server;
receiving task log information from the data server in response to the data access request;
and displaying the task log information.
A9. The method of A8, wherein the presenting task log information further comprises:
recording the execution information of the task in the task execution process;
converting the execution information according to a specified protocol to obtain specified structured task log information; the log information comprises task names, task starting time, task ending time, task execution success/failure, task influence information, operation information of the server at each time point, execution command information, task return value information and/or host information corresponding to the tasks;
and outputting and displaying task log information in real time by using a log interface.
A10. The method according to a9, wherein the converting the execution information according to a specified protocol to obtain specified structured task log information further comprises:
when the execution information of a plurality of tasks is converted by using a specified protocol, the corresponding relation between each task and the converted task log information is recorded.
The invention also discloses: B11. an electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components;
receiving user input parameters based on each parameter input control in the task issuing interface;
determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template;
and generating an executable task based on each target task parameter template and corresponding user input parameters.
B12. The electronic device of B11, the parameter configuration interface comprising a plurality of draggable parameter components and a parameter container region;
the executable instructions further cause the processor to:
receiving a dragging operation of the selected parameter components triggered by a user, and placing each parameter component into the parameter container region according to an expected layout style;
rendering a task issuing interface with parameter input controls corresponding to the selected parameter components; and each parameter input control in the task publishing interface meets the expected layout style.
B13. The electronic device of B12, the executable instructions further cause the processor to:
assembling target task parameter templates corresponding to the parameter components to generate a form structure according to the expected layout style;
and filling the form structure according to the user input parameters to generate an executable task.
B14. According to the electronic device of B11, each parameter component in the parameter configuration interface has a corresponding parameter attribute, so that a user can select at least one parameter component in the parameter configuration interface with reference to the parameter attribute.
B15. The electronic device of any of B11-B14, the executable instructions further cause the processor to:
configuring an execution step of a task in a visual configuration interface according to a specified format to obtain a corresponding task definition file so as to generate a target task parameter template; the task definition file is a specified structured file and comprises a plurality of keywords for recording task configuration information.
B16. The electronic device of B15, the executable instructions further cause the processor to:
and analyzing the task definition file to obtain an execution flow corresponding to the task, and generating and displaying a corresponding execution flow chart.
B17. The electronic device of B16, the executable instructions further cause the processor to:
analyzing the task definition file, and extracting keywords of the task;
according to the keywords of the task and a preset task dictionary, performing recursive processing on the task definition file to generate a binary tree structure corresponding to a task execution flow;
traversing the binary tree structure from the root node to obtain a data structure corresponding to the task execution flow;
and generating and displaying an execution flow chart of the task by using the specified picture based on the data structure corresponding to the task execution flow.
B18. The electronic device of B11, the executable instructions further cause the processor to:
sending a data access request corresponding to the executable task to a data server;
receiving task log information from the data server in response to the data access request;
and displaying the task log information.
B19. The electronic device of B18, the executable instructions further cause the processor to:
recording the execution information of the task in the task execution process;
converting the execution information according to a specified protocol to obtain specified structured task log information; the log information comprises task names, task starting time, task ending time, task execution success/failure, task influence information, operation information of the server at each time point, execution command information, task return value information and/or host information corresponding to the tasks;
and outputting and displaying task log information in real time by using a log interface.
B20. The electronic device of B19, the executable instructions further cause the processor to:
when the execution information of a plurality of tasks is converted by using a specified protocol, the corresponding relation between each task and the converted task log information is recorded.
The invention also discloses: C21. a computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the task issuing method of any one of a1-a 10.

Claims (10)

1. A method of task publication, comprising:
acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components;
receiving user input parameters based on each parameter input control in the task issuing interface;
determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template;
and generating an executable task based on each target task parameter template and corresponding user input parameters.
2. The method of claim 1, wherein the parameter configuration interface comprises a plurality of draggable parameter components and a parameter container area;
the method for acquiring at least one parameter component selected by a user based on a parameter configuration interface and rendering a task issuing interface with parameter input controls corresponding to the selected parameter components comprises the following steps:
receiving a dragging operation of the selected parameter components triggered by a user, and placing each parameter component into the parameter container region according to an expected layout style;
rendering a task issuing interface with parameter input controls corresponding to the selected parameter components; and each parameter input control in the task publishing interface meets the expected layout style.
3. The method of claim 2, wherein generating an executable task based on each of the target task parameter templates and corresponding user input parameters comprises:
assembling target task parameter templates corresponding to the parameter components to generate a form structure according to the expected layout style;
and filling the form structure according to the user input parameters to generate an executable task.
4. The method of claim 1, wherein each parameter component in the parameter configuration interface has a corresponding parameter attribute, so that a user can select at least one parameter component in the parameter configuration interface by referring to the parameter attribute.
5. The method of any of claims 1-4, wherein prior to the determining a target task parameter template for each of the parameter input controls, the method further comprises:
configuring an execution step of a task in a visual configuration interface according to a specified format to obtain a corresponding task definition file so as to generate a target task parameter template; the task definition file is a specified structured file and comprises a plurality of keywords for recording task configuration information.
6. The method of claim 5, wherein the method further comprises:
and analyzing the task definition file to obtain an execution flow corresponding to the task, and generating and displaying a corresponding execution flow chart.
7. The method of claim 6, wherein the parsing the task definition file to obtain an execution flow corresponding to a task, and the generating and displaying a corresponding execution flow diagram further comprises:
analyzing the task definition file, and extracting keywords of the task;
according to the keywords of the task and a preset task dictionary, performing recursive processing on the task definition file to generate a binary tree structure corresponding to a task execution flow;
traversing the binary tree structure from the root node to obtain a data structure corresponding to the task execution flow;
and generating and displaying an execution flow chart of the task by using the specified picture based on the data structure corresponding to the task execution flow.
8. The method of claim 1, wherein after said generating an executable task based on each of said target task parameter templates and corresponding user input parameters, said method further comprises:
sending a data access request corresponding to the executable task to a data server;
receiving task log information from the data server in response to the data access request;
and displaying the task log information.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
acquiring at least one parameter component selected by a user based on a parameter configuration interface, and rendering a task release interface with parameter input controls corresponding to the selected parameter components;
receiving user input parameters based on each parameter input control in the task issuing interface;
determining a target task parameter template corresponding to each parameter input control; each parameter component in the parameter configuration interface is provided with a corresponding task parameter template;
and generating an executable task based on each target task parameter template and corresponding user input parameters.
10. A computer storage medium having stored therein at least one executable instruction for causing a processor to perform operations corresponding to the task issuing method according to any one of claims 1 to 8.
CN202110890820.2A 2021-08-04 2021-08-04 Task issuing method, electronic device and storage medium Pending CN113568614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110890820.2A CN113568614A (en) 2021-08-04 2021-08-04 Task issuing method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110890820.2A CN113568614A (en) 2021-08-04 2021-08-04 Task issuing method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN113568614A true CN113568614A (en) 2021-10-29

Family

ID=78170344

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110890820.2A Pending CN113568614A (en) 2021-08-04 2021-08-04 Task issuing method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113568614A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114217885A (en) * 2021-12-17 2022-03-22 建信金融科技有限责任公司 Data processing method, device and storage medium
CN115587269A (en) * 2022-09-07 2023-01-10 中电金信软件有限公司 Method and device for generating H5 page of client

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013430A (en) * 2007-01-29 2007-08-08 华为技术有限公司 Searching method and apparatus
CN105808217A (en) * 2014-12-30 2016-07-27 航天信息软件技术有限公司 Flow chart drawing method and system based on XML
CN107291565A (en) * 2017-06-09 2017-10-24 千寻位置网络有限公司 O&M visualizes automated job platform and implementation method
CN109214704A (en) * 2018-09-26 2019-01-15 广东电网有限责任公司 A kind of distributed intelligence operation platform, method, apparatus and readable storage medium storing program for executing
CN109445785A (en) * 2018-10-11 2019-03-08 平安科技(深圳)有限公司 Workflow tool creation method, device and computer storage medium
CN111769979A (en) * 2020-06-19 2020-10-13 苏州浪潮智能科技有限公司 Cloud resource arranging method, system, terminal and storage medium
CN112181762A (en) * 2020-09-22 2021-01-05 城云科技(中国)有限公司 Software project application basic environment deployment and three-remote visualization processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101013430A (en) * 2007-01-29 2007-08-08 华为技术有限公司 Searching method and apparatus
CN105808217A (en) * 2014-12-30 2016-07-27 航天信息软件技术有限公司 Flow chart drawing method and system based on XML
CN107291565A (en) * 2017-06-09 2017-10-24 千寻位置网络有限公司 O&M visualizes automated job platform and implementation method
CN109214704A (en) * 2018-09-26 2019-01-15 广东电网有限责任公司 A kind of distributed intelligence operation platform, method, apparatus and readable storage medium storing program for executing
CN109445785A (en) * 2018-10-11 2019-03-08 平安科技(深圳)有限公司 Workflow tool creation method, device and computer storage medium
CN111769979A (en) * 2020-06-19 2020-10-13 苏州浪潮智能科技有限公司 Cloud resource arranging method, system, terminal and storage medium
CN112181762A (en) * 2020-09-22 2021-01-05 城云科技(中国)有限公司 Software project application basic environment deployment and three-remote visualization processing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TONEY: "递归遍历XML生成树", 《HTTPS://WWW.CNBLOGS.COM/TONEY/ARCHIVE/2004/11/20/66178.HTML》 *
黄彪: "基于Ansible自研的可视化和并行自动化运维引擎", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/291348171》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114217885A (en) * 2021-12-17 2022-03-22 建信金融科技有限责任公司 Data processing method, device and storage medium
CN115587269A (en) * 2022-09-07 2023-01-10 中电金信软件有限公司 Method and device for generating H5 page of client
CN115587269B (en) * 2022-09-07 2023-11-28 中电金信软件有限公司 Client H5 page generation method and device

Similar Documents

Publication Publication Date Title
CN111078315B (en) Microservice arranging and executing method and system, architecture, equipment and storage medium
CN108304201B (en) Object updating method, device and equipment
US8839107B2 (en) Context based script generation
EP1819094A1 (en) Script language based network device configuration management system and method
CN114115852A (en) Visual service arranging method, device, equipment and medium
CN111079047B (en) Web-oriented page construction system
CN113568614A (en) Task issuing method, electronic device and storage medium
CN114303134A (en) Method, apparatus and computer readable medium for maintaining visual consistency
CN113239310A (en) Page loading method and related device
KR101985635B1 (en) Method and system for creating template scripts based container orchestrator
KR101552914B1 (en) Web server application framework web application processing method using the framework and computer readable medium processing the method
CN104166551A (en) Application interface developing method and developing device
CN112861059A (en) Visual component generation method and device, computer equipment and readable storage medium
CN113703755A (en) Code generation method and code generation device
US11720476B2 (en) Automated end-to-end testing platform with dynamic container configuration
CN116578497A (en) Automatic interface testing method, system, computer equipment and storage medium
CN115268861B (en) Introduction method, system, equipment and storage medium of custom component
CN116028062A (en) Target code generation method, NPU instruction display method and device
CN115509668A (en) Method, device and equipment for constructing front-end page analytic framework and storage medium
CN114817379A (en) Qunee-based configuration item relation visualization method, system, equipment and medium
CN112418796A (en) Sub-process node activation method and device, electronic equipment and storage medium
US20080147221A1 (en) Grid modeling tool
JP2004362343A (en) Source code conversion apparatus, source code conversion method, and program
CN110866054A (en) Label configuration method and device and computer storage medium
CN114371866A (en) Version reconfiguration test method, device and equipment of service system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211029

RJ01 Rejection of invention patent application after publication