CN113687946A - Task management method, device, server and storage medium - Google Patents

Task management method, device, server and storage medium Download PDF

Info

Publication number
CN113687946A
CN113687946A CN202110953542.0A CN202110953542A CN113687946A CN 113687946 A CN113687946 A CN 113687946A CN 202110953542 A CN202110953542 A CN 202110953542A CN 113687946 A CN113687946 A CN 113687946A
Authority
CN
China
Prior art keywords
task
pipeline
preset task
control unit
terminal
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
CN202110953542.0A
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.)
Haier Digital Technology Qingdao Co Ltd
Haier Caos IoT Ecological Technology Co Ltd
Qingdao Haier Industrial Intelligence Research Institute Co Ltd
Original Assignee
Haier Digital Technology Qingdao Co Ltd
Haier Caos IoT Ecological Technology Co Ltd
Qingdao Haier Industrial Intelligence Research Institute 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 Haier Digital Technology Qingdao Co Ltd, Haier Caos IoT Ecological Technology Co Ltd, Qingdao Haier Industrial Intelligence Research Institute Co Ltd filed Critical Haier Digital Technology Qingdao Co Ltd
Priority to CN202110953542.0A priority Critical patent/CN113687946A/en
Publication of CN113687946A publication Critical patent/CN113687946A/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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)

Abstract

The invention discloses a task management method, a device, a server and a storage medium, which are applied to the server, wherein the server comprises a task acquisition unit and a pipeline control unit, and the method comprises the following steps: receiving configuration information sent by a terminal, and configuring a production line for a preset task according to the configuration information; executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit, wherein the assembly line data comprises an execution state of the preset task; and sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal. According to the technical scheme, the assembly line is configured to execute the preset task, the execution state of the assembly line when the preset task is executed is obtained, the execution state is sent to the terminal, and the execution state is accurately and timely displayed based on the terminal.

Description

Task management method, device, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a task management method, a task management device, a task management server and a storage medium.
Background
The server side and the terminal can be in communication connection through a network, and when executing the preset task, the server side can send the execution state and the execution result of the preset task to the terminal in a data form for displaying through the communication network and based on a polling mode.
In the polling mode in the prior art, a timer is started at a terminal, and a server corresponding to a request is sent in an unlimited number of times with fixed frequency, so that data loss can be caused when the data change time is less than the frequency, and if the data peak condition exists and the wave trough peak is just within twice frequencies, the data change of the transverse wave cannot be captured, and the accuracy and timeliness of the data cannot be guaranteed. If the data change is slow, and the interval between two data changes is larger than the fixed frequency of the timer, the requests between the two data changes are both invalid requests, and the influence on the performance is very obvious under the conditions that the data volume is large and the terminals are concurrent.
Therefore, a task management method is needed to accurately and timely display the execution state or execution result of the server when executing the task based on the terminal.
Disclosure of Invention
The invention provides a task management method, a task management device, a server and a storage medium, which are used for accurately and timely displaying an execution state or an execution result when a server executes a task based on a terminal.
In a first aspect, an embodiment of the present invention provides a task management method, which is applied to a server, where the server includes a task acquisition unit and a pipeline control unit, and the method includes:
receiving configuration information sent by a terminal, and configuring a production line for a preset task according to the configuration information;
executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit, wherein the assembly line data comprises an execution state of the preset task;
and sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal.
The embodiment of the invention provides a task management method, which is applied to a server, wherein the server comprises a task acquisition unit and a pipeline control unit, and the method comprises the following steps: receiving configuration information sent by a terminal, and configuring a production line for a preset task according to the configuration information; executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit, wherein the assembly line data comprises an execution state of the preset task; and sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal. According to the technical scheme, the server can configure the assembly line to execute the preset task according to the configuration information, meanwhile, the task acquisition unit of the server acquires the execution state of the assembly line when the preset task is executed based on the pipeline control unit and sends the execution state to the terminal, and the accurate and timely display of the execution state of the server when the server executes the task based on the terminal is achieved.
Further, the preset task includes at least one sub-task, and the executing of the preset task based on the pipeline includes:
determining the execution sequence of each subtask in the pipeline according to the configuration information;
and executing each subtask according to the execution sequence.
Further, executing a preset task based on the pipeline, and acquiring pipeline data generated when the pipeline executes the preset task based on the pipeline control unit by the task acquisition unit, includes:
acquiring the execution progress of the preset task in the process of executing the preset task by the assembly line;
and after the assembly line finishes executing the preset task, acquiring an execution result of the preset task.
Further, before the task acquisition unit acquires pipeline data generated when the pipeline executes the preset task based on the pipeline control unit, the method further includes:
and if the pipeline control unit required for executing the preset task exists in the task management system, multiplexing the pipeline control unit and clearing historical pipeline communication content.
Further, before the task acquisition unit acquires pipeline data generated when the pipeline executes the preset task based on the pipeline control unit, the method further includes:
and if the pipeline control unit required for executing the preset task does not exist in the task management system, constructing the pipeline control unit based on the preset task.
Further, before receiving the configuration information sent by the terminal, the method further includes:
receiving version information sent by the terminal, and determining whether the version information supports the pipeline control unit;
and if the version information does not support the pipeline control unit, sending the execution state of the preset task to the terminal for displaying based on a polling mode.
Further, the server further includes a storage unit, and before sending the pipeline data to the terminal, the server further includes:
storing the pipeline data based on the storage unit;
correspondingly, after the pipeline control unit is constructed based on the preset task, the method further comprises the following steps:
storing the pipeline control unit based on the storage unit.
In a second aspect, an embodiment of the present invention further provides a task management device, configured in a server, where the server includes a task acquisition unit and a pipeline control unit, and the device includes:
the receiving module is used for receiving configuration information sent by a terminal and configuring a production line for a preset task according to the configuration information;
the execution module is used for executing a preset task based on the assembly line, and meanwhile, the task acquisition unit acquires assembly line data generated when the assembly line executes the preset task based on the pipeline control unit, wherein the assembly line data comprises an execution state of the preset task;
and the sending module is used for sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a task management method as claimed in any one of the first aspects.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the task management method according to any one of the first aspect.
In a fifth aspect, the present application provides a computer program product comprising computer instructions which, when run on a computer, cause the computer to perform the method of task management as provided in the first aspect.
It should be noted that all or part of the computer instructions may be stored on the computer readable storage medium. The computer-readable storage medium may be packaged together with the processor of the task management device, or may be packaged separately from the processor of the task management device, which is not limited in this application.
For the descriptions of the second, third, fourth and fifth aspects in this application, reference may be made to the detailed description of the first aspect; in addition, for the beneficial effects described in the second aspect, the third aspect, the fourth aspect and the fifth aspect, reference may be made to the beneficial effect analysis of the first aspect, and details are not repeated here.
In the present application, the names of the task management devices do not limit the devices or the functional modules themselves, and in actual implementation, the devices or the functional modules may appear by other names. Insofar as the functions of the respective devices or functional modules are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalents.
These and other aspects of the present application will be more readily apparent from the following description.
Drawings
Fig. 1 is a flowchart of a task management method according to an embodiment of the present invention;
fig. 2 is a flowchart of a task management method according to a second embodiment of the present invention;
fig. 3 is a flowchart of an implementation manner of a task management method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a task management device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
The terms "first" and "second" and the like in the description and drawings of the present application are used for distinguishing different objects or for distinguishing different processes for the same object, and are not used for describing a specific order of the objects.
Furthermore, the terms "including" and "having," and any variations thereof, as referred to in the description of the present application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the present application, the meaning of "a plurality" means two or more unless otherwise specified.
Example one
Fig. 1 is a flowchart of a task management method according to an embodiment of the present invention, which is applied to a server, where the server includes a task acquisition unit and a pipeline control unit, and this embodiment is applicable to a situation where an execution state of a preset task needs to be monitored in real time, and the method may be executed by a task management device, as shown in fig. 1, and specifically includes the following steps:
and 110, receiving configuration information sent by a terminal, and configuring a pipeline for a preset task according to the configuration information.
The preset task may be data processing, code conversion, or the like, and the preset task may include at least one sub-task, for example, the sub-tasks included in the preset task may include a unit test task, a code quality inspection task, a construction task, a deployment task, an audit task, and the like. The pipeline may be used to execute at least one subtask. The configuration information may define a streaming manner, i.e. an execution order, in which the pipeline executes at least one of the subtasks, and the serial or parallel execution of the plurality of subtasks may form a task pipeline.
Specifically, the terminal and the server can be in communication connection through a wireless network, a user can trigger configuration information corresponding to the preset task based on a developer platform of the terminal and send the configuration information to the server, and the server can determine a production line for executing the preset task according to the configuration information after receiving the configuration information sent by the terminal.
And 120, executing a preset task based on the assembly line, and acquiring assembly line data generated when the assembly line executes the preset task by the task acquisition unit based on the pipeline control unit.
Wherein the pipeline data includes an execution state of the preset task. The task acquisition unit is used for collecting pipeline data generated when a pipeline in the server executes a preset task. The pipeline control unit is used for recording the operation of the pipeline, and specifically can be used for recording the current execution state and the historical execution state of the pipeline, and viewing the real-time execution state through the execution record number.
Specifically, when the pipeline executes the preset task, the pipeline control unit may monitor the execution state of each subtask included in the preset task in real time based on the pipeline, and further may monitor the execution state of the preset task in real time, and the storage unit may store the current execution state and the historical execution state of the preset task. When the pipeline control unit monitors the execution state of each subtask contained in the preset task executed by the pipeline in real time, the task acquisition unit can acquire pipeline data generated when the pipeline executes the preset task based on the pipeline control unit, and the pipeline data can include the execution state of each subtask and further can include the execution state of the preset task.
In the embodiment of the present invention, the execution state of the preset task may include an execution progress and an execution result, the execution progress may include in-progress, the execution result may include execution success and execution failure, and the pipeline data may include in-progress, execution success and execution failure. It should be noted that, when the execution state is in progress, the pipeline data may further include progress data, and the progress data may be percentage data.
And step 130, sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal.
The terminal may include a task management system, and the task management system may be configured to display an execution state of a preset task.
Before sending the pipeline data to the destination, the sub-tasks in the pipeline may be disassembled according to the definition manner and the execution sequence of the sub-tasks in the pipeline.
Specifically, the server may send the pipeline data to the terminal through the mobile network, and after receiving the pipeline data, the terminal may render the execution states of the subtasks included in the pipeline data to a browser interface where the task management system is located for display.
The task management method provided by the embodiment of the invention is applied to a server, the server comprises a task acquisition unit and a pipeline control unit, and the method comprises the following steps: receiving configuration information sent by a terminal, and configuring a production line for a preset task according to the configuration information; executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit, wherein the assembly line data comprises an execution state of the preset task; and sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal. According to the technical scheme, the server can configure the assembly line to execute the preset task according to the configuration information, meanwhile, the task acquisition unit of the server acquires the execution state of the assembly line when the preset task is executed based on the pipeline control unit and sends the execution state to the terminal, and the accurate and timely display of the execution state of the server when the server executes the task based on the terminal is achieved.
Example two
Fig. 2 is a flowchart of a task management method according to a second embodiment of the present invention, which is embodied on the basis of the second embodiment. In this embodiment, the method may be applied to a server, where the server includes a task acquisition unit, a pipeline control unit, and a storage unit, and as shown in fig. 2, the method may further include:
step 210, receiving the version information sent by the terminal, and determining whether the version information supports the pipeline control unit.
The version information may include device version information and system version information of a task management system installed in the device.
Specifically, before executing the preset task, the terminal may transmit version information to the server, where the version information may include current device version information and current system version information. The server stores preset version information supporting the pipeline control unit, and similarly, the preset version information may include preset device version information and preset system version information. If the preset equipment version information comprises current equipment version information and the preset system version information comprises current system version information, determining that the version information supports the pipeline control unit; otherwise, it is determined that the version information does not support the pipe control unit.
And step 220, if the version information does not support the pipeline control unit, sending the execution state of the preset task to the terminal for displaying based on a polling mode.
Specifically, the version information of the terminal does not support the pipeline control unit, the pipeline function in the server is limited at this time, the data transmission mode may be switched to the polling mode at this time, and the execution state of the preset task is transmitted to the terminal for display based on the polling mode. More specifically, the execution state of the preset task may be sent to the terminal based on a preset frequency, which is not specifically limited herein and may be determined according to actual requirements.
It should be noted that, in the process of switching the data sending mode, it is necessary to ensure that the form and the specification of the interface for sending data from the server to the terminal are kept consistent, so that the user reduces the perception of switching the data sending mode of the server, and implements the execution of the preset task.
Step 230, if the version information supports the pipeline control unit, receiving configuration information sent by the terminal, and configuring a pipeline for a preset task according to the configuration information.
The version information supports the pipeline control unit, and at this time, the server can send the execution state of the preset task to the terminal according to the data sending mode in the embodiment of the invention.
Specifically, the version information of the terminal supports the pipeline control unit, at this time, the terminal and the server can be connected through wireless network communication, a user can trigger configuration information corresponding to the preset task based on a developer platform of the terminal and send the configuration information to the server, and the server can determine a pipeline for executing the preset task according to the configuration information after receiving the configuration information sent by the terminal.
And 240, determining whether the pipeline control unit required for executing the preset task exists in the task management system.
Before the preset task is executed based on the pipeline, whether a pipeline control unit required for executing the preset task exists in a storage unit of the task management system or not can be determined.
And 250, if the pipeline control unit required for executing the preset task exists in the task management system, multiplexing the pipeline control unit and clearing historical pipeline communication content.
Step 260, if the pipeline control unit required for executing the preset task does not exist in the task management system, constructing the pipeline control unit based on the preset task, and storing the pipeline control unit based on the storage unit.
Specifically, the pipe Control unit may be constructed based on a Transmission Control Protocol (TCP). Text, binary data and the like can be transmitted between the terminal and the server based on the pipeline control unit, and when the data are transmitted, the data format is light, the performance cost is low, and the communication is efficient. And, the terminal can communicate with any server based on the pipe control unit. The pipeline control unit supports protocol encryption and has high real-time performance.
In addition, after the pipeline control unit is constructed based on the preset task, the pipeline control unit can be stored based on the storage unit, so that other tasks can call the pipeline control unit to acquire pipeline data generated when the pipeline executes the preset task.
And 270, executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task by the task acquisition unit based on the pipeline control unit.
Wherein the pipeline data includes an execution state of the preset task.
Specifically, after the pipeline is created, the pipeline may be triggered by a manual trigger, a timing trigger, or a code push trigger, so that the pipeline starts to execute a preset task. When the pipeline starts to execute the preset task, pipeline data associated with the pipeline can be generated corresponding to the currently triggered pipeline.
In one embodiment, the preset task includes at least one sub-task, and the executing the preset task based on the pipeline includes:
determining the execution sequence of each subtask in the pipeline according to the configuration information; and executing each subtask according to the execution sequence.
Specifically, the execution sequence of each sub-task may be determined to be parallel execution, serial execution, or sequential execution according to the configuration information, and then each sub-task may be executed according to the execution sequence, so as to implement the execution of the preset task.
In one embodiment, step 270 may specifically include:
acquiring the execution progress of the preset task in the process of executing the preset task by the assembly line; and after the assembly line finishes executing the preset task, acquiring an execution result of the preset task.
The execution state may include an execution progress and an execution result, the execution progress may include a percentage of the completion of the execution of the preset task, and the execution result may include a success in the execution or a failure in the execution.
Specifically, in the process of executing the preset task in the pipeline, the execution progress may be determined according to the execution state of each subtask included in the preset task, and specifically, the execution progress may be determined according to the percentage of the number of successfully executed subtasks in the total number of the subtasks.
If any subtask fails to execute, determining that the execution of the preset task fails and the execution process is finished, and determining that the execution result is execution failure; and if the execution of each subtask is successful, determining that the execution of the preset task is successful, and determining that the execution result is successful.
It should be noted that, when the pipeline executes the preset task, the execution state of the preset task may be set to be in progress, then each sub-task included in the pipeline is executed in sequence, and when each sub-task is executed, the execution state of the sub-task may be set to be in progress. After the subtask is processed, if the task fails to be executed, determining the execution state of the subtask as the execution failure and ending the execution flow; and if the task is successfully executed, determining the execution state of the subtask as successful execution, executing the next subtask based on the same execution rule until the preset task is successfully executed, and determining the execution state of the preset task as successful execution.
Step 280, after the pipeline data is stored based on the storage unit, the pipeline data is sent to the terminal so as to display the execution state of the preset task based on the terminal.
Specifically, after the pipeline data is acquired, each subtask in the pipeline may be disassembled according to the definition mode and the execution sequence of each subtask in the pipeline, and stored in the corresponding storage unit as needed. And then the server can send the pipeline data to the terminal through the mobile network, and after receiving the pipeline data, the terminal can render the execution state of each subtask contained in the pipeline data to a browser interface where the task management system is located for display.
The second task management method provided by the embodiment of the invention is applied to a server, the server comprises a task acquisition unit and a pipeline control unit, and the method comprises the following steps: receiving configuration information sent by a terminal, and configuring a production line for a preset task according to the configuration information; executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit, wherein the assembly line data comprises an execution state of the preset task; and sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal. According to the technical scheme, the server can configure the assembly line to execute the preset task according to the configuration information, meanwhile, the task acquisition unit of the server acquires the execution state of the assembly line when the preset task is executed based on the pipeline control unit and sends the execution state to the terminal, and the accurate and timely display of the execution state of the server when the server executes the task based on the terminal is achieved.
In addition, when the version information does not support the pipeline control unit, the execution state of the preset task can be sent to the terminal for displaying based on a polling mode, so that the execution state of the preset task is sent to the terminals of all versions; and when the pipeline control unit required for executing the preset task does not exist in the task management system, the pipeline control unit is constructed based on the preset task, the pipeline control unit is stored based on the storage unit, and the execution state of the preset task with higher accuracy and real-time performance is acquired based on the task acquisition unit and the pipeline control unit as far as possible.
Fig. 3 is a flowchart of an implementation manner of a task management method according to a second embodiment of the present invention, and as shown in fig. 3, the implementation manner includes:
and 310, receiving the version information sent by the terminal.
Step 320, determining whether the version information supports the pipeline control unit.
If the version information does not support the pipeline control unit, executing step 330; if the version information supports the pipe control unit, step 340 is performed.
And step 330, sending the execution state of the preset task to the terminal for displaying based on a polling mode.
And 340, receiving configuration information sent by the terminal, and configuring a pipeline for a preset task according to the configuration information.
And step 350, determining whether the pipeline control unit required for executing the preset task exists in the task management system.
If the pipeline control unit required for executing the preset task exists in the task management system, executing step 360; if the pipeline control unit required for executing the preset task does not exist in the task management system, step 370 is executed.
And 360, multiplexing the pipeline control unit and clearing the historical pipeline communication content.
Step 380 is performed after step 360.
Step 370, building the pipeline control unit based on the preset task, and storing the pipeline control unit based on the storage unit.
And 380, executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit.
Step 390, after the pipeline data is stored based on the storage unit, the pipeline data is sent to the terminal, so as to display the execution state of the preset task based on the terminal.
In the implementation manner of the task management method provided by the second embodiment of the present invention, the server may configure the pipeline to execute the preset task according to the configuration information, and meanwhile, the task acquisition unit of the server acquires the execution state of the pipeline when executing the preset task based on the pipeline control unit and sends the execution state to the terminal, so that the execution state of the server when executing the task based on the terminal is accurately and timely displayed.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a task management device according to a third embodiment of the present invention, where the task management device is configured in a server, and the server includes a task acquisition unit and a pipeline control unit, and is adapted to a situation where an execution state of a preset task needs to be monitored in real time, so as to improve accuracy and speed of acquiring the execution state. The apparatus may be implemented by software and/or hardware and is typically integrated in a server.
As shown in fig. 4, the apparatus includes:
a receiving module 410, configured to receive configuration information sent by a terminal, and configure a pipeline for a preset task according to the configuration information;
an execution module 420, configured to execute a preset task based on the pipeline, and meanwhile, the task acquisition unit acquires, based on the pipeline control unit, pipeline data generated when the pipeline executes the preset task, where the pipeline data includes an execution state of the preset task;
a sending module 430, configured to send the pipeline data to the terminal, so as to display an execution state of the preset task based on the terminal.
The task management device provided in this embodiment is configured in a server, where the server includes a task acquisition unit and a pipeline control unit, and the device: receiving configuration information sent by a terminal, and configuring a production line for a preset task according to the configuration information; executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit, wherein the assembly line data comprises an execution state of the preset task; and sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal. According to the technical scheme, the server can configure the assembly line to execute the preset task according to the configuration information, meanwhile, the task acquisition unit of the server acquires the execution state of the assembly line when the preset task is executed based on the pipeline control unit and sends the execution state to the terminal, and the accurate and timely display of the execution state of the server when the server executes the task based on the terminal is achieved.
On the basis of the foregoing embodiment, the preset task includes at least one sub-task, and the execution module 320 is specifically configured to:
determining the execution sequence of each subtask in the pipeline according to the configuration information; executing each subtask according to the execution sequence; and meanwhile, the task acquisition unit acquires pipeline data generated when the pipeline executes the preset task based on the pipeline control unit.
On the basis of the foregoing embodiment, the execution module 420 is specifically configured to:
acquiring the execution progress of the preset task in the process of executing the preset task by the assembly line; and after the assembly line finishes executing the preset task, acquiring an execution result of the preset task.
On the basis of the above embodiment, the apparatus further includes:
the multiplexing module is used for multiplexing the pipeline control unit and clearing historical pipeline communication content if the pipeline control unit required for executing the preset task exists in the task management system;
and the construction module is used for constructing the pipeline control unit based on the preset task if the pipeline control unit required for executing the preset task does not exist in the task management system.
On the basis of the above embodiment, the apparatus further includes:
the determining module is used for receiving the version information sent by the terminal and determining whether the version information supports the pipeline control unit;
and the polling module is used for sending the execution state of the preset task to the terminal for displaying based on a polling mode if the version information does not support the pipeline control unit.
Meanwhile, the receiving module 410 is further configured to continue to execute the configuration information sent by the receiving terminal if the version information supports the pipeline control unit.
On the basis of the above embodiment, the apparatus further includes:
a storage module for storing the pipeline data based on the storage unit; storing the pipeline control unit based on the storage unit.
The task management device provided by the embodiment of the invention can execute the task management method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 5 is a schematic structural diagram of a server according to a fourth embodiment of the present invention, as shown in fig. 5, the server includes a processor 510 and a memory 520; the number of the processors 510 in the server may be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510 and the memory 520 in the server may be connected by a bus or other means, and the bus connection is exemplified in fig. 5.
The memory 520, which is a computer-readable storage medium, may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the task management method in the embodiment of the present invention (e.g., the receiving module 410, the executing module 420, and the sending module 430 in the task management device). The processor 510 executes various functional applications of the server and data processing by executing software programs, instructions, and modules stored in the memory 520, that is, implements the task management method described above.
Processor 510 may include one or more Central Processing Units (CPUs), and may also include multiple processors 510. Each of the processors 510 may be a single-Core Processor (CPU) or a multi-Core Processor (CPU). Processor 510 may refer herein to one or more devices, circuits, and/or processing cores that process data (e.g., computer program instructions).
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to a server over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The server provided by the embodiment of the invention can execute the task management method provided by the embodiment of the invention, and has corresponding functions and beneficial effects.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for task management, the method including:
receiving configuration information sent by a terminal, and configuring a production line for a preset task according to the configuration information;
executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit, wherein the assembly line data comprises an execution state of the preset task;
and sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM), a register, a hard disk, an optical fiber, a CD-ROM, an optical storage device, a magnetic storage device, any suitable combination of the foregoing, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an Application Specific Integrated Circuit (ASIC). In embodiments of the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the task management method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the task management device, the included units and modules are merely divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A task management method is applied to a server, the server comprises a task acquisition unit and a pipeline control unit, and the method comprises the following steps:
receiving configuration information sent by a terminal, and configuring a production line for a preset task according to the configuration information;
executing a preset task based on the assembly line, and simultaneously acquiring assembly line data generated when the assembly line executes the preset task based on the pipeline control unit by the task acquisition unit, wherein the assembly line data comprises an execution state of the preset task;
and sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal.
2. The task management method according to claim 1, wherein the preset task includes at least one sub-task, and the executing of the preset task based on the pipeline includes:
determining the execution sequence of each subtask in the pipeline according to the configuration information;
and executing each subtask according to the execution sequence.
3. The task management method according to claim 2, wherein executing a preset task based on the pipeline, and acquiring, by the task acquisition unit, pipeline data generated when the pipeline executes the preset task based on the pipeline control unit comprises:
acquiring the execution progress of the preset task in the process of executing the preset task by the assembly line;
and after the assembly line finishes executing the preset task, acquiring an execution result of the preset task.
4. The task management method according to claim 1, wherein before the task acquisition unit acquires pipeline data generated when the pipeline executes the preset task based on a pipeline control unit, the task management method further comprises:
and if the pipeline control unit required for executing the preset task exists in the task management system, multiplexing the pipeline control unit and clearing historical pipeline communication content.
5. The task management method according to claim 1, wherein before the task acquisition unit acquires pipeline data generated when the pipeline executes the preset task based on a pipeline control unit, the task management method further comprises:
and if the pipeline control unit required for executing the preset task does not exist in the task management system, constructing the pipeline control unit based on the preset task.
6. The task management method according to claim 1, further comprising, before receiving the configuration information sent by the terminal:
receiving version information sent by the terminal, and determining whether the version information supports the pipeline control unit;
if the version information does not support the pipeline control unit, sending the execution state of the preset task to the terminal for displaying based on a polling mode;
and if the version information supports the pipeline control unit, continuing to execute the configuration information sent by the receiving terminal.
7. The task management method according to claim 5, wherein the server further includes a storage unit, and before sending the pipeline data to the terminal, further includes:
storing the pipeline data based on the storage unit;
correspondingly, after the pipeline control unit is constructed based on the preset task, the method further comprises the following steps:
storing the pipeline control unit based on the storage unit.
8. A task management apparatus configured to a server including a task collection unit and a pipeline control unit, the apparatus comprising:
the receiving module is used for receiving configuration information sent by a terminal and configuring a production line for a preset task according to the configuration information;
the execution module is used for executing a preset task based on the assembly line, and meanwhile, the task acquisition unit acquires assembly line data generated when the assembly line executes the preset task based on the pipeline control unit, wherein the assembly line data comprises an execution state of the preset task;
and the sending module is used for sending the pipeline data to the terminal so as to display the execution state of the preset task based on the terminal.
9. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a task management method as recited in any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the task management method of any one of claims 1-7 when executed by a computer processor.
CN202110953542.0A 2021-08-19 2021-08-19 Task management method, device, server and storage medium Pending CN113687946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110953542.0A CN113687946A (en) 2021-08-19 2021-08-19 Task management method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110953542.0A CN113687946A (en) 2021-08-19 2021-08-19 Task management method, device, server and storage medium

Publications (1)

Publication Number Publication Date
CN113687946A true CN113687946A (en) 2021-11-23

Family

ID=78580620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110953542.0A Pending CN113687946A (en) 2021-08-19 2021-08-19 Task management method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN113687946A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282421A1 (en) * 2013-03-15 2014-09-18 Microsoft Corporation Distributed software validation
CN106886864A (en) * 2015-12-15 2017-06-23 阿里巴巴集团控股有限公司 A kind of business construction method, device and electronic equipment
US20180139256A1 (en) * 2016-11-17 2018-05-17 Sk Techx Co., Ltd. Method and apparatus for cloud streaming service
CN108228880A (en) * 2018-01-24 2018-06-29 上海达梦数据库有限公司 Data base management system calls method, apparatus, equipment and the medium of external function
CN108738022A (en) * 2018-07-04 2018-11-02 中国科学技术大学 A kind of cordless communication network management method of mobile and system
CN111258744A (en) * 2018-11-30 2020-06-09 中兴通讯股份有限公司 Task processing method based on heterogeneous computation and software and hardware framework system
WO2020140683A1 (en) * 2019-01-04 2020-07-09 深圳壹账通智能科技有限公司 Task scheduling method and apparatus, computer device, and storage medium
CN111435354A (en) * 2019-01-14 2020-07-21 北京京东尚科信息技术有限公司 Data export method and device, storage medium and electronic equipment
CN112527603A (en) * 2020-12-17 2021-03-19 平安科技(深圳)有限公司 Bare metal server management method and device, computer equipment and storage medium
CN113157545A (en) * 2021-05-20 2021-07-23 京东方科技集团股份有限公司 Method, device and equipment for processing service log and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282421A1 (en) * 2013-03-15 2014-09-18 Microsoft Corporation Distributed software validation
CN106886864A (en) * 2015-12-15 2017-06-23 阿里巴巴集团控股有限公司 A kind of business construction method, device and electronic equipment
US20180139256A1 (en) * 2016-11-17 2018-05-17 Sk Techx Co., Ltd. Method and apparatus for cloud streaming service
CN108228880A (en) * 2018-01-24 2018-06-29 上海达梦数据库有限公司 Data base management system calls method, apparatus, equipment and the medium of external function
CN108738022A (en) * 2018-07-04 2018-11-02 中国科学技术大学 A kind of cordless communication network management method of mobile and system
CN111258744A (en) * 2018-11-30 2020-06-09 中兴通讯股份有限公司 Task processing method based on heterogeneous computation and software and hardware framework system
WO2020140683A1 (en) * 2019-01-04 2020-07-09 深圳壹账通智能科技有限公司 Task scheduling method and apparatus, computer device, and storage medium
CN111435354A (en) * 2019-01-14 2020-07-21 北京京东尚科信息技术有限公司 Data export method and device, storage medium and electronic equipment
CN112527603A (en) * 2020-12-17 2021-03-19 平安科技(深圳)有限公司 Bare metal server management method and device, computer equipment and storage medium
CN113157545A (en) * 2021-05-20 2021-07-23 京东方科技集团股份有限公司 Method, device and equipment for processing service log and storage medium

Similar Documents

Publication Publication Date Title
US10613788B2 (en) Data migration between cloud storage systems
US9584364B2 (en) Reporting performance capabilities of a computer resource service
US20180152392A1 (en) Hybrid cloud management
CN107817401B (en) Pressure testing method and device for electricity consumption information acquisition system
CN110753089B (en) Method, device, medium and electronic equipment for managing client
CN108228444B (en) Test method and device
US20130297803A1 (en) Method for providing development and deployment services using a cloud-based platform and devices thereof
US11288164B2 (en) Dynamic distributed tracing instrumentation in a microservice architecture
CN111580974B (en) GPU instance allocation method, device, electronic equipment and computer readable medium
CN115328741A (en) Exception handling method, device, equipment and storage medium
CN113687946A (en) Task management method, device, server and storage medium
CN114696888B (en) Port task processing method, device, equipment and medium of satellite measurement, operation and control system
CN116260747A (en) Monitoring method and device of terminal test equipment and electronic equipment
CN111309367B (en) Method, device, medium and electronic equipment for managing service discovery
CN111294250B (en) Pressure testing method, device and system
CN112527656A (en) Websocket interface test method, device and equipment
CN107169133B (en) Snapshot capturing method, device, server and system
CN111352802A (en) Monitoring processing method, device, equipment and storage medium of network bus
CN111625326A (en) Task pipeline execution method and device and electronic equipment
CN111026571B (en) Processor down-conversion processing method and device and electronic equipment
CN111694672A (en) Resource allocation method, task submission method, device, electronic equipment and medium
CN110633254A (en) Data interaction method and device
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
JP2012053805A (en) Progress information display control system
CN113722634A (en) Data processing method and device, electronic equipment and computer readable 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