Task processing method, device, electronic device and storage medium

By creating container instances of tool programs in the task processing device and using the container engine to run mirror file processing tasks, the problem of insufficient security of tool programs is solved, and the accuracy of task processing and management convenience is improved.

CN113391872BActive Publication Date: 2024-11-01BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010164729.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-11
Publication Date
2024-11-01
Estimated Expiration
2040-03-11

AI Technical Summary

Technical Problem

The security of tool programs in task processing devices is insufficient, which affects the accuracy of task processing results.

Method used

Improve security by creating container instances of tool programs in a task processing device, using the container engine to run the image files of the tool programs and process tasks.

Benefits of technology

Improve the accuracy of task processing, and unified management tool programs through the tool management side, improving management convenience and reducing network bandwidth consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113391872B_ABST
    Figure CN113391872B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a task processing method, device, electronic device and storage medium. The task processing method provided by the embodiments of the present application is applied to a task processing device, and the method includes: obtaining a target task to be processed; processing the target task using a container instance of a target tool program created locally; wherein the target tool program is a tool program required when the target task is processed; the container instance of the target tool program is a container instance created by running an image file of the target tool program. This solution can solve the problem in the related art that the tool program installed in the task processing device is not secure enough, which affects the accuracy of task processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of task scheduling, and in particular to a task processing method, device, electronic device and storage medium. Background Art

[0002] In order to realize task processing, the scheduling node in the task scheduling system allocates tasks to task processing devices according to the preset scheduling process, and then the task processing devices realize the processing of tasks. The task processing devices can be devices in the scheduling system or devices associated with the scheduling system for executing tasks.

[0003] In the related art, when a task processing device obtains a task to be processed, it calls a tool program locally installed on the task processing device and required to process the task to process the task.

[0004] In the process of implementing this application, the inventors found that the related technology has at least the following problems:

[0005] The tool programs installed in the task processing equipment are not secure enough, which affects the accuracy of the task processing results. Summary of the invention

[0006] The purpose of the embodiments of the present application is to provide a task processing method, device, electronic device and storage medium to solve the problem in the related art that the tool program installed in the task processing device is not secure enough, which affects the accuracy of the processing result of the task processing. The specific technical solution is as follows:

[0007] In a first aspect, an embodiment of the present application provides a task processing method, which is applied to a task processing device, and the method includes:

[0008] Get the target tasks to be processed;

[0009] Processing the target task by using a container instance of the target tool program created locally;

[0010] The target tool program is a tool program required when the target task is processed; and the container instance of the target tool program is a container instance created by running the image file of the target tool program.

[0011] Optionally, in an implementation, the processing the target task by using a container instance of a target tool program created locally includes:

[0012] Sending a tool request carrying identification information of the target tool program to a predetermined tool management end, so that the tool management end determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device;

[0013] Creating a container instance of the target tool program by running the image file fed back by the tool management end;

[0014] The target task is processed by utilizing the created container instance related to the target tool program.

[0015] Optionally, in an implementation manner, before sending the tool request carrying the identification information of the target tool program to the predetermined tool management terminal, the method further includes:

[0016] Based on the identification information of the target tool program, determining whether a container instance related to the target tool program has been created locally;

[0017] If not, executing the step of sending a tool request carrying the identification information of the target tool program to a predetermined tool management terminal;

[0018] If yes, the target task is processed by using the locally created container instance of the target tool program.

[0019] Optionally, in an implementation manner, before using the locally created container instance of the target tool program to process the target task, the method further includes:

[0020] Determine whether the first version and the second version are the same version, the first version being a container instance of the target tool program created locally, representing the tool program version; the second version being an image file of the target tool program in the tool management terminal, representing the tool program version;

[0021] If yes, executing the step of processing the target task by using the locally created container instance of the target tool program;

[0022] If not, the step of sending a tool request carrying the identification information of the target tool program to a predetermined tool management terminal is executed.

[0023] Optionally, in one implementation, the method further includes:

[0024] After the target task is processed, the evaluation result given by the user on the processing result of the target task is obtained;

[0025] The evaluation result is sent to the tool management end, so that the tool management end determines the performance analysis result of the target tool program based on the evaluation result.

[0026] In a second aspect, an embodiment of the present application provides a task processing device, which is applied to a task processing device, and the device includes:

[0027] A task acquisition module is used to obtain target tasks to be processed;

[0028] A task processing module, used for processing the target task by using a container instance of the target tool program created locally;

[0029] The target tool program is a tool program required when the target task is processed; and the container instance of the target tool program is a container instance created by running the image file of the target tool program.

[0030] Optionally, in one implementation, the task processing module includes:

[0031] A request sending submodule, used for sending a tool request carrying identification information of the target tool program to a predetermined tool management end, so that the tool management end determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device;

[0032] An instance creation submodule, used to create a container instance of the target tool program by running the image file fed back by the tool management end;

[0033] The task processing submodule is used to process the target task by utilizing the created container instance related to the target tool program.

[0034] Optionally, in one implementation, the device further includes:

[0035] A first analysis module is used for determining whether a container instance related to the target tool program has been created locally based on the identification information of the target tool program before the request sending submodule sends a tool request carrying the identification information of the target tool program to a predetermined tool management terminal, and if not, triggering the request sending submodule; if yes, triggering the local processing module;

[0036] The local processing module is used to process the target task by utilizing the locally created container instance of the target tool program.

[0037] Optionally, in one implementation, the device further includes:

[0038] The second analysis module is used for the local processing module to use the locally created container instance of the target tool program to determine whether the first version and the second version are the same version before processing the target task, wherein the first version is the tool program version represented by the locally created container instance of the target tool program; the second version is the tool program version represented by the image file of the target tool program in the tool management terminal; if yes, the local processing module is triggered; if not, the request sending submodule is triggered.

[0039] Optionally, in one implementation, the device further includes:

[0040] The evaluation result obtaining module is used to obtain the evaluation result given by the user for the processing result of the target task after the target task is processed;

[0041] The result reporting module is used to send the evaluation result to the tool management end, so that the tool management end determines the performance analysis result of the target tool program based on the evaluation result.

[0042] In a third aspect, an embodiment of the present application provides a task processing system, including: a task processing device and a management device running a tool management terminal;

[0043] A task processing device, used for obtaining a target task to be processed; sending a tool request carrying identification information of a target tool program to the management device, so that the management device determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device; creating a container instance of the target tool program by running the image file fed back by the tool management end; processing the target task using the created container instance of the target tool program; wherein the target tool program is the tool program required when the target task is processed;

[0044] The management device is used to determine the image file of the target tool program according to the identification information in the tool request after receiving the tool request sent by the task processing device, and feed back the determined image file to the task processing device.

[0045] In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;

[0046] Memory, used to store computer programs;

[0047] The processor is used to implement the steps of any task processing method described in the first aspect when executing the program stored in the memory.

[0048] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any task processing method described in the first aspect are implemented.

[0049] In the solution provided by the embodiment of the present application, when the target task to be processed is obtained, the target task is processed using a container instance of the target tool program created locally; wherein the target tool program is the tool program required when the target task is processed; the container instance of the target tool program is a container instance created by running the image file of the target tool program. Since the tool program exists in the form of a container instance created when the image file is run, and the container instance has a higher security than the tool program installed locally, this solution can solve the problem that the tool program installed in the task processing device in the related art is not secure enough, resulting in the accuracy of the task processing results being affected.

[0050] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0052] Figure 1 A flowchart of a task processing method provided in an embodiment of the present application;

[0053] Figure 2 Another flowchart of the task processing method provided in the embodiment of the present application;

[0054] Figure 3 Another flowchart of the task processing method provided in the embodiment of the present application;

[0055] Figure 4 A schematic diagram of the structure of a task processing device provided in an embodiment of the present application;

[0056] Figure 5 Another structural diagram of the task processing device provided in the embodiment of the present application;

[0057] Figure 6 A schematic diagram of the structure of the task processing system provided in the embodiment of the present application;

[0058] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0059] Figure 8 A schematic diagram of the principles of the task processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] In order to solve the problem in the related art that the tool program installed in the task processing device is not sufficiently secure, resulting in the accuracy of the task processing results being affected, the embodiments of the present application provide a task processing method, apparatus, electronic device and storage medium.

[0062] The following first introduces the task processing method provided in the embodiment of the present application.

[0063] Among them, the task processing method provided in the embodiment of the present application is applied to a task processing device. In a specific application, the task processing device can be a device in a scheduling system, such as a working node in an Apache AirFlow scheduling system; of course, the task processing device can also be a device associated with a scheduling system for executing tasks, such as a Hadoop big data cluster YARN node associated with an Apache Oozie scheduling system. Among them, since the invention point of the present application is not the scheduling process of the scheduling system, there is no limitation on the task generation process and the task scheduling and issuing process.

[0064] In addition, the tool program mentioned in the embodiment of the present application is a program object that can realize a predetermined processing function; the tool programs required for different tasks can be the same or different. Moreover, the tool program required for any task is pre-set. Exemplary: the tool program can be a programming tool corresponding to a programming language such as PHP, Java, and Shell.

[0065] like Figure 1 As shown, the task processing method provided in the embodiment of the present application may include the following steps:

[0066] S101, obtaining a target task to be processed;

[0067] S102, using the container instance of the target tool program created locally to process the target task;

[0068] The target tool program is a tool program required when the target task is processed; and the container instance of the target tool program is a container instance created by running the image file of the target tool program.

[0069] In S101, the target task to be processed is issued by the scheduling node, or the task processing device obtains it from the task queue, which is reasonable. In addition, the task data of the target task may include: task item information, which is used to indicate what to do, and accordingly, the task data of the target task may indicate what to do; of course, in addition to the task item information, the task data of the target task may also include: identification information of the tool program required to process the target task, in which case, the task data of the target task may indicate what tool to use to do what.

[0070] In S102, after the target task is acquired, the target task may be processed by using the container instance of the target tool program created locally.

[0071] It should be noted that there are multiple implementation methods for processing the target task using the container instance of the target tool program created locally.

[0072] Exemplarily, in one implementation, in a scenario where container instances of various tool programs are created, processing the target task using the container instance of the target tool program created locally may include:

[0073] The identification information of the target tool program is used to search for a container instance related to the target tool program from various container instances that have been created locally.

[0074] In other implementations, the identification information can be used to obtain the image file of the target tool program locally / remotely, and run the image file of the target tool program to create a container instance of the target tool program. The image file is also called an image file, and the container engine can package the application and its dependencies in the image file. In addition, the container engine can create a container instance based on the image file. In addition, the same image file can generate multiple container instances running simultaneously. In addition, the image is a binary file. In actual development, an image file can be generated by inheriting another image file and adding some personalized settings. Correspondingly, the image file of the tool program is the image file that packages the tool program and its dependencies.

[0075] Based on the above implementation method, it can be known that the identification information of the target tool program serves as the basis for determining the container instance of the target tool program. It is understandable that the method for determining the identification information of the target tool program may be different depending on the content contained in the task data of the target task. For the case where the task data of the target task may include: task matter information, the identification information of the target tool program may be determined based on a pre-set mapping relationship between the task matter information and the identification information of the tool program. For the case where the task data of the target task includes both the task matter information and the identification information of the target tool program, the identification information of the target tool program may be obtained from the task data of the target task.

[0076] In addition, when processing the target task, the parameters of the task item information of the target task can be passed to the container instance of the target tool program, so that the container instance of the target tool program uses the received parameters to execute the data processing flow. Among them, the passed parameters are the same as the parameters used in the prior art when the installed target tool program is used to process the target task. Moreover, when processing the target task, it is reasonable to request the data required for processing the target task from other data storage devices.

[0077] In the solution provided by the embodiment of the present application, when the target task to be processed is obtained, the target task is processed using a container instance of the target tool program created locally; wherein the target tool program is the tool program required when the target task is processed; the container instance of the target tool program is a container instance created by running the image file of the target tool program. Since the tool program exists in the form of a container instance created when the image file is run, and the container instance has a higher security than the tool program installed locally, this solution can solve the problem that the tool program installed in the task processing device in the related art is not secure enough, resulting in the accuracy of the task processing results being affected.

[0078] In order to uniformly manage the tool programs of each task processing device, a tool management terminal can be set, and the tool management terminal can provide the image files of each tool program for the task processing device. In this way, the tool programs are concentrated on the tool management terminal, which greatly improves the convenience of management. Among them, the tool management terminal can be a program running on the management device, and multiple task processing devices can request the image files of the tool programs from the tool management terminal in the management device. Moreover, in specific applications, the management device can be a terminal device or a server, which is reasonable.

[0079] Based on this processing idea, Figure 2 As shown, the task processing method provided in the embodiment of the present application, applied to a task processing device, may include the following steps:

[0080] S201, obtaining a target task to be processed;

[0081] S202, sending a tool request carrying identification information of the target tool program to a predetermined tool management end, so that the tool management end determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device;

[0082] S203, creating a container instance of the target tool program by running the image file fed back by the tool management end;

[0083] S204: Process the target task using the created container instance of the target tool program.

[0084] Among them, S201 is the same as the above-mentioned S101 and will not be described in detail here.

[0085] In S202, after obtaining the target task to be processed, the identification information of the target tool program required for processing the target task can be obtained, and then, the image file of the target tool program is requested from the tool management end based on the identification information. For the description of the image file, refer to the description of the image file in the above embodiment.

[0086] In addition, the tool management terminal pre-stores the image files of the tool programs required for each task. Furthermore, in order to ensure that the image files of the tool programs can be found through the identification information of the tool programs, the image files of each tool program can be named with the identification information of the corresponding tool program, or the image files of each tool program can correspond to the identification information of the tool program.

[0087] In S203, after obtaining the image file fed back by the tool management end, a container instance of the target tool program can be created by running the image file fed back by the tool management end to form a container instance of the target tool program created locally. The method of running the image file of the target tool program can refer to the method of running any type of image file in the prior art, and is not limited here. For example, running the image file through a container engine is certainly not limited to this.

[0088] In S204, when processing the target task using the created container instance of the target tool program, parameters of the task item information of the target task can be passed to the container instance of the target tool program, so that the container instance of the target tool program uses the received parameters to execute the data processing flow. The passed parameters are the same as the parameters used in the prior art when processing the target task using the installed target tool program. In addition, when processing the target task, it is reasonable to request the data required for processing the target task from other data storage devices.

[0089] In addition, after S204 is executed, the container instance of the target tool program may be destroyed, thereby reducing the occupation of storage space.

[0090] For ease of understanding, Figure 8 A schematic diagram of the principle of the task processing device processing the pending task 1 is given. Figure 8 In the example, the task processing device obtains the task 1 to be processed, and the task data of the task 1 can indicate what tool to use, what to do, and how to do it; based on the identification information of the tool program a required when the task 1 is executed, the image file A of the tool program a is obtained from the tool management end; the container instance of the tool program a is created through the image file A, and then the container instance of the tool program a is run to process the task 1. When processing the task 1, the external big data service can be accessed.

[0091] In the solution provided by the embodiment of the present application, since the tool program exists in the form of a container instance created when the image file is run, and the container instance has higher security than the tool program installed locally, this solution can solve the problem that the tool program installed in the task processing device in the related art is not secure enough, resulting in the accuracy of the task processing results being affected. In addition, by setting up a tool management terminal, the tool programs of each task processing device can be managed in a unified manner. In this way, the tool programs are concentrated on the tool management terminal, which greatly improves the convenience of management.

[0092] Based on the setting of the tool management terminal, the local and remote methods can be combined to improve the management convenience of the tool program while reducing the consumption of network bandwidth.

[0093] Based on this processing idea, Figure 3 As shown, the task processing method provided in the embodiment of the present application, applied to a task processing device, may include the following steps:

[0094] S301, obtaining a target task to be processed;

[0095] S302, based on the identification information of the target tool program, determine whether a container instance related to the target tool program has been created locally, if not, execute S303; if yes, execute S306;

[0096] S303, sending a tool request carrying identification information of the target tool program to a predetermined tool management end, so that the tool management end determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device;

[0097] S304, creating a container instance of the target tool program by running the image file fed back by the tool management end;

[0098] S305, using the created container instance of the target tool program to process the target task;

[0099] S306: Process the target task using the locally created container instance of the target tool program.

[0100] Among them, S301 is the same as the above-mentioned S101, and will not be described in detail here.

[0101] In S302, after obtaining the target task, the identification information of the target tool program required for processing the target task can be obtained, and then, based on the identification information of the target tool program, it can be determined whether a container instance related to the target tool program has been created locally, and different processing can be performed according to different execution results. When the judgment result is no, S303 can be executed to request the image file of the target tool program from the predetermined tool management end, and then the requested image file is run to create a container instance of the target tool program; and when the judgment result is yes, S306 can be executed to use the container instance of the target tool program that has been created locally to process the target task.

[0102] Among them, the contents of S303-S305 can refer to the contents of S202-S204 in the above embodiment, and will not be repeated here.

[0103] In addition, since the version of the tool program managed by the tool management end can be updated, in order to ensure that the tool program used by the task processing device is the latest version, a version matching analysis can be performed, and then different processing flows can be executed according to the results of the version matching analysis. Based on this processing idea, optionally, when it is determined that a container instance related to the target tool program has been created locally, before using the container instance related to the target tool program that has been created locally, the method provided by the embodiment of the present application may also include:

[0104] Determine whether the first version and the second version are the same version, the first version being a container instance of the target tool program created locally, representing the tool program version; the second version being an image file of the target tool program in the tool management terminal, representing the tool program version;

[0105] If yes, executing the step of processing the target task by using the locally created container instance of the target tool program;

[0106] If not, execute the step of sending a tool request carrying the identification information of the target tool program to the predetermined tool management end, and then, after obtaining the image file fed back by the tool management end, create a container instance of the target tool program by running the image file fed back by the tool management end, and use the created container instance of the target tool program to process the target task.

[0107] The task execution device may send a data request carrying the identification information of the target tool program to the tool management end to request the version information of the tool program version represented by the image file of the target tool program. In addition, since the task execution device can find the container instance of the target tool program created locally, and the target tool program is running in the container instance, the task processing device can learn the tool program version represented by the container instance of the target tool program created locally.

[0108] In the solution provided by the embodiment of the present application, since the tool program exists in the form of a container instance created when the image file is run, and the container instance has higher security than the tool program installed locally, this solution can solve the problem that the tool program installed in the task processing device in the related technology is not secure enough, resulting in the accuracy of the processing results of the task processing being affected. In addition, by setting the tool management end, the tool programs of each execution device can be managed in a unified manner. In this way, the tool programs are concentrated on the tool management end, which greatly improves the convenience of management. At the same time, combining local and remote methods can reduce the bandwidth consumption caused by requesting data.

[0109] Optionally, for any embodiment in which there is a predetermined tool management terminal, the task processing method provided in the embodiment of the present application may further include:

[0110] After the target task is processed, the evaluation result given by the user for the processing result of the target task is obtained;

[0111] The evaluation result is sent to the tool management end, so that the tool management end determines the performance analysis result of the tool program based on the evaluation result.

[0112] The task processing device can obtain the evaluation result given by the user for the processing result of the target task by displaying the evaluation interface including the processing result of the target task to the user. The evaluation result can be a binary result of accurate or inaccurate, or a scoring value, which is reasonable.

[0113] In addition, the tool management end can determine the performance analysis result of the target tool program based on the evaluation results reported by one or more task processing devices, and then subsequently determine whether the target tool program continues to be used. The performance analysis result can be stable or unstable performance, better or worse performance, etc. Among them, there are many specific implementation methods for determining the performance analysis result of the target tool program based on the evaluation results reported by one or more task processing devices, and the embodiments of the present application do not limit this.

[0114] Corresponding to the above method embodiment, the present application embodiment provides a task processing device. Figure 4 As shown, the task processing device provided in the embodiment of the present application may include:

[0115] The task acquisition module 410 is used to acquire the target task to be processed;

[0116] The task processing module 420 is used to process the target task by using the container instance of the target tool program created locally;

[0117] The target tool program is a tool program required when the target task is processed; and the container instance of the target tool program is a container instance created by running the image file of the target tool program.

[0118] In the solution provided by the embodiment of the present application, when the target task to be processed is obtained, the target task is processed using a container instance of the target tool program created locally; wherein the target tool program is the tool program required when the target task is processed; the container instance of the target tool program is a container instance created by running the image file of the target tool program. Since the tool program exists in the form of a container instance created when the image file is run, and the container instance has a higher security than the tool program installed locally, this solution can solve the problem that the tool program installed in the task processing device in the related art is not secure enough, resulting in the accuracy of the task processing results being affected.

[0119] Alternatively, if Figure 5 As shown, the task processing module 420 may include:

[0120] A request sending submodule 421 is used to send a tool request carrying identification information of the target tool program to a predetermined tool management end, so that the tool management end determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device;

[0121] An instance creation submodule 422 is used to create a container instance of the target tool program by running the image file fed back by the tool management end;

[0122] The task processing submodule 423 is used to process the target task by using the created container instance related to the target tool program.

[0123] Optionally, the device further comprises:

[0124] A first analysis module is used for determining whether a container instance related to the target tool program has been created locally based on the identification information of the target tool program before the request sending submodule sends a tool request carrying the identification information of the target tool program to a predetermined tool management terminal, and if not, triggering the request sending submodule; if yes, triggering the local processing module;

[0125] The local processing module is used to process the target task by utilizing the locally created container instance of the target tool program.

[0126] Optionally, the device further comprises:

[0127] The second analysis module is used for the local processing module to use the locally created container instance of the target tool program to determine whether the first version and the second version are the same version before processing the target task, wherein the first version is the tool program version represented by the locally created container instance of the target tool program; the second version is the tool program version represented by the image file of the target tool program in the tool management terminal; if yes, the local processing module is triggered; if not, the request sending submodule is triggered.

[0128] Optionally, the device further comprises:

[0129] The evaluation result obtaining module is used to obtain the evaluation result given by the user for the processing result of the target task after the target task is processed;

[0130] The result reporting module is used to send the evaluation result to the tool management end, so that the tool management end determines the performance analysis result of the target tool program based on the evaluation result.

[0131] Based on the above method embodiment, the present application embodiment also provides a task processing system. Figure 6 As shown, the task processing system includes: a task processing device 610 and a management device 620 running a tool management terminal;

[0132] The task processing device 610 is used to obtain a target task to be processed; send a tool request carrying identification information of a target tool program to the management device, so that the management device 620 determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device; create a container instance of the target tool program by running the image file fed back by the tool management end; process the target task using the created container instance of the target tool program; wherein the target tool program is the tool program required when the target task is processed;

[0133] The management device 620 is used to determine the image file of the target tool program according to the identification information in the tool request after receiving the tool request sent by the task processing device, and feed back the determined image file to the task processing device.

[0134] In the solution provided by the embodiment of the present application, since the tool program exists in the form of a container instance created when the image file is run, and the container instance has higher security than the tool program installed locally, this solution can solve the problem that the tool program installed in the task processing device in the related art is not secure enough, resulting in the accuracy of the task processing results being affected. In addition, by setting up a tool management terminal, the tool programs of each task processing device can be managed in a unified manner. In this way, the tool programs are concentrated on the tool management terminal, which greatly improves the convenience of management.

[0135] Optionally, the task processing device 610 is further configured to determine whether a container instance related to the target tool program has been created locally based on the identification information of the target tool program before sending the tool request carrying the identification information of the target tool program to the predetermined tool management terminal;

[0136] If not, executing the step of sending a tool request carrying the identification information of the target tool program to a predetermined tool management terminal;

[0137] If yes, the target task is processed by using the locally created container instance of the target tool program.

[0138] Optionally, the task processing device 610 is also used to determine whether the first version and the second version are the same version before processing the target task by using the container instance of the target tool program that has been created locally, wherein the first version is the container instance of the target tool program that has been created locally, and represents the tool program version; the second version is the image file of the target tool program in the tool management terminal, and represents the tool program version;

[0139] If yes, executing the step of processing the target task by using the locally created container instance of the target tool program;

[0140] If not, the step of sending a tool request carrying the identification information of the target tool program to a predetermined tool management terminal is executed.

[0141] Optionally, the task processing device 610 is further configured to obtain, after processing the target task, a judgment result given by a user on the processing result of the target task; and send the judgment result to the tool management device;

[0142] The tool management device 620 is further configured to determine a performance analysis result of the target tool program based on the evaluation result.

[0143] In addition, the present application also provides an electronic device, such as Figure 7 As shown, it includes a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, and the memory 703 communicate with each other through the communication bus 704.

[0144] Memory 703, used for storing computer programs;

[0145] The processor 701 is used to implement the steps of any task processing method provided in the embodiments of the present application when executing the program stored in the memory 703.

[0146] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0147] The communication interface is used for communication between the above electronic device and other devices.

[0148] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0149] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0150] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned task processing methods are implemented.

[0151] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of any task processing method in the above embodiments.

[0152] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0153] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0154] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0155] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A task processing method, characterized in that: Applied to a task processing device, the method comprises: Get the target tasks to be processed; Based on the identification information of the target tool program, determining whether a container instance related to the target tool program has been created locally; If it is determined that a container instance related to the target tool program has been created, determining whether the first version and the second version are the same version, and if they are the same version, using the locally created container instance related to the target tool program to process the target task; If it is determined that a container instance related to the target tool program has not been created, or, it is determined that a container instance related to the target tool program has been created and the first version and the second version are not the same version, a tool request carrying the identification information of the target tool program is sent to a predetermined tool management end, so that the tool management end determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device; and, by running the image file fed back by the tool management end, creates a container instance related to the target tool program; and uses the created container instance of the target tool program to process the target task; Among them, the target tool program is the tool program required when the target task is processed; the container instance of the target tool program is a container instance created by running the image file of the target tool program; the first version is the tool program version represented by the container instance of the target tool program created locally, and the second version is the tool program version represented by the image file of the target tool program in the tool management end.

2. The method according to claim 1, characterized in that: The method further comprises: After the target task is processed, the evaluation result given by the user on the processing result of the target task is obtained; The evaluation result is sent to the tool management end, so that the tool management end determines the performance analysis result of the target tool program based on the evaluation result.

3. A task processing device, characterized in that: Applied to a task processing device, the device comprises: A task acquisition module is used to obtain target tasks to be processed; A task processing module, used to determine whether a container instance related to the target tool program has been created locally based on the identification information of the target tool program; if it is determined that a container instance related to the target tool program has been created, then determine whether the first version and the second version are the same version. If they are the same version, use the container instance of the target tool program created locally to process the target task; if it is determined that the container instance related to the target tool program has not been created, or, if it is determined that a container instance related to the target tool program has been created and the first version and the second version are not the same version, then send a tool request carrying the identification information of the target tool program to a predetermined tool management end, so that the tool management end determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device; and, create a container instance related to the target tool program by running the image file fed back by the tool management end; use the created container instance of the target tool program to process the target task; Among them, the target tool program is the tool program required when the target task is processed; the container instance of the target tool program is a container instance created by running the image file of the target tool program; the first version is the tool program version represented by the container instance of the target tool program created locally, and the second version is the tool program version represented by the image file of the target tool program in the tool management end.

4. The device according to claim 3, characterized in that The device also includes: The evaluation result obtaining module is used to obtain the evaluation result given by the user for the processing result of the target task after the target task is processed; The result reporting module is used to send the evaluation result to the tool management end, so that the tool management end determines the performance analysis result of the target tool program based on the evaluation result.

5. A task processing system, characterized in that: include: Task processing equipment and management equipment running tool management terminal; A task processing device, used to obtain target tasks to be processed; Based on the identification information of the target tool program, determine whether a container instance related to the target tool program has been created locally; if it is determined that a container instance related to the target tool program has been created, determine whether the first version and the second version are the same version. If they are the same version, use the container instance of the target tool program that has been created locally to process the target task; if it is determined that a container instance related to the target tool program has not been created, or, it is determined that a container instance related to the target tool program has been created and the first version and the second version are not the same version, send a tool request carrying the identification information of the target tool program to the management device, so that the management device determines the image file of the target tool program according to the identification information in the tool request, and feeds back the determined image file to the task processing device; And, by running the image file fed back by the tool management end, a container instance of the target tool program is created; using the created container instance of the target tool program, the target task is processed; wherein the target tool program is the tool program required when the target task is processed; the first version is the tool program version represented by the container instance of the target tool program that has been created locally, and the second version is the tool program version represented by the image file of the target tool program in the tool management end; The management device is used to determine the image file of the target tool program according to the identification information in the tool request after receiving the tool request sent by the task processing device, and feed back the determined image file to the task processing device.

6. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1-2 when executing a program stored in a memory.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1-2 are implemented.

Citation Information

Patent Citations

  • Data request processing method, server and cloud interactive system

    CN105763602A

  • Service publishing method and device

    CN110780914A

  • Method and system for differencing container files

    US6148340A

  • Device access method, related platform and computer storage medium

    WO2019157955A1