CN112015535A - Task processing method and device, electronic equipment and storage medium - Google Patents

Task processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112015535A
CN112015535A CN202010888530.XA CN202010888530A CN112015535A CN 112015535 A CN112015535 A CN 112015535A CN 202010888530 A CN202010888530 A CN 202010888530A CN 112015535 A CN112015535 A CN 112015535A
Authority
CN
China
Prior art keywords
task
subtask
data
primary
result
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.)
Granted
Application number
CN202010888530.XA
Other languages
Chinese (zh)
Other versions
CN112015535B (en
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.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN202010888530.XA priority Critical patent/CN112015535B/en
Publication of CN112015535A publication Critical patent/CN112015535A/en
Application granted granted Critical
Publication of CN112015535B publication Critical patent/CN112015535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides a task processing method, a task processing device, electronic equipment and a storage medium, wherein the task processing method comprises the following steps: acquiring task information of at least one subtask of a secondary task, wherein the secondary task comprises at least one subtask; when the subtask is matched with the task information of the associated primary task, multiplexing the task result data of the primary task into the task result of the subtask; and when the task information of the subtask is not matched with the task information of the associated primary task, executing the subtask to obtain a task result of the subtask. The method and the equipment provided by the invention reduce the total execution time of the secondary task and simultaneously reduce unnecessary analysis resource consumption by managing and processing the task.

Description

Task processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer information technologies, and in particular, to a task processing method and apparatus, an electronic device, and a storage medium.
Background
In video and picture analysis systems, a large number of analysis tasks are submitted every day, and the raw data of the analysis tasks is often searched without help. Due to special analysis requirements, secondary analysis is often required for the tasks performed by these analyses (a uniform specific type of analysis is required for the partially analyzed picture and video data). Even if the original data can be found, when performing the secondary analysis, if the normal flow (searching the original image and video data, submitting the task, and issuing the analysis) is adopted, the data acquisition, task submission, and issuing analysis operations need to be performed frequently. These steps take a long time and result in unnecessary waste of analysis resources by the analysis system.
Thereby. How to process and manage the task, thereby avoiding the time waste and unnecessary analysis resource consumption of searching the data to be analyzed during the secondary analysis, thereby reducing the time for screening the analysis data and the number of times of submitting the task, improving the efficiency of the structured analysis system, and solving the technical problem urgently in the field.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a task processing method, an identification method, an electronic device and a storage medium, which reduce the total execution time of secondary tasks and reduce unnecessary analysis resource consumption by managing and processing the tasks.
According to an aspect of the present invention, there is provided a task processing method including:
acquiring task information of at least one subtask of a secondary task, wherein the secondary task comprises at least one subtask;
when the subtask is matched with the task information of the associated primary task, multiplexing the task result data of the primary task into the task result of the subtask;
and when the task information of the subtask is not matched with the task information of the associated primary task, executing the subtask to obtain a task result of the subtask.
In some embodiments of the present invention, said executing the subtask to obtain the task result of the subtask when the task information of the subtask does not match the task information of the associated primary task includes:
acquiring data to be processed according to the primary task associated with the subtask;
and executing the subtask on the data to be processed to obtain a task result of the subtask.
In some embodiments of the present invention, the acquiring the data to be processed according to the primary task associated with the subtask includes:
acquiring a task record of a primary task associated with the subtask according to the primary task;
acquiring a storage path of the data to be processed according to the task record;
and reading the data to be processed according to the storage path.
In some embodiments of the present invention, after reading the data to be processed according to the storage path, the method further includes:
and copying the read data to be processed to a storage path corresponding to the subtask.
In some embodiments of the present invention, each of the primary tasks is only used for processing data to be processed of a multimedia type, and the secondary task includes a plurality of sub-tasks, wherein a sub-task is associated with a primary task that processes data to be processed of a multimedia type, and a part of the sub-tasks are associated with a primary task that processes data to be processed of another multimedia type.
In some embodiments of the invention, further comprising:
acquiring a task result of a subtask associated with a primary task of processing data to be processed of a multimedia type as a first type of task result;
acquiring a task result of a subtask associated with a primary task for processing data to be processed of another multimedia type as a second type of task result;
and combining the first type task result and the second type task result to be used as the task result of the secondary task.
In some embodiments of the present invention, the obtaining task information of at least one sub-task of a secondary task, where the secondary task includes at least one sub-task, further includes:
storing a task result and task information of a task which is executed and completed within a preset time period;
and respectively providing a task result and a task information calling interface for calling the primary task.
According to still another aspect of the present invention, there is also provided a task processing apparatus including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is configured to acquire task information of at least one subtask of a secondary task, and the secondary task comprises at least one subtask;
the multiplexing module is configured to multiplex the task result data of the primary task into the task result of the subtask when the subtask is matched with the task information of the associated primary task;
and the execution module is configured to execute the subtask to obtain a task result of the subtask when the task information of the subtask and the associated primary task is not matched.
According to still another aspect of the present invention, there is also provided an electronic apparatus, including: a processor; a storage medium having stored thereon a computer program which, when executed by the processor, performs the steps as described above.
According to yet another aspect of the present invention, there is also provided a storage medium having stored thereon a computer program which, when executed by a processor, performs the steps as described above.
Therefore, compared with the prior art, the scheme provided by the invention has the following advantages:
and when the subtasks of the secondary task are matched with the task information of the associated primary task, the task result of the primary task is directly reused, so that the total execution time of the secondary task is reduced, and unnecessary analysis resource consumption is reduced.
Drawings
The above and other features and advantages of the present invention will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
Fig. 1 shows a flowchart of a task processing method according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating that when the task information of the subtask does not match the task information of the associated primary task, the subtask is executed to obtain a task result of the subtask according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating acquiring data to be processed according to a primary task associated with the subtask according to an embodiment of the present invention.
FIG. 4 is a flowchart illustrating generating task results for the secondary task, according to a specific embodiment of the present invention.
FIG. 5 illustrates a flow diagram for storing task related information once for invocation according to an embodiment of the present invention.
Fig. 6 is a block diagram showing a task processing apparatus according to an embodiment of the present invention.
Fig. 7 schematically illustrates a computer-readable storage medium in an exemplary embodiment of the disclosure.
Fig. 8 schematically illustrates an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In order to overcome the defects in the prior art, the invention provides a task processing method, a task processing device, an electronic device and a storage medium, which reduce the total execution time of secondary tasks and reduce unnecessary analysis resource consumption by managing and processing the tasks.
Referring first to fig. 1, fig. 1 shows a flowchart of a task processing method according to an embodiment of the present invention. Fig. 1 shows the following steps in total:
step S110: task information of at least one subtask of a secondary task is obtained, and the secondary task comprises at least one subtask.
Step S120: and when the subtasks are matched with the task information of the associated primary task, multiplexing the task result data of the primary task into the task result of the subtask.
Step S130: and when the task information of the subtask is not matched with the task information of the associated primary task, executing the subtask to obtain a task result of the subtask.
The task processing method provided by the invention judges whether the subtask of the secondary task needs to be executed or not through the matching of the subtask of the secondary task and the task information of the associated primary task, and directly multiplexes the task result of the primary task when the subtask of the secondary task is matched with the task information of the associated primary task, thereby reducing the total execution time of the secondary task and simultaneously reducing the unnecessary analysis resource consumption.
Specifically, in each embodiment of the present invention, the task processing method provided by the present invention can be applied to processing scenarios of various computer tasks. Further, since secondary analysis is often required for a task that has been analyzed in a multimedia data analysis system (such as a picture and video analysis system), the task processing method provided by the present invention is preferably applied to a multimedia data analysis system.
Specifically, in each embodiment of the present invention, a processing manner of a primary task and a secondary task is described, and the present invention is limited to this, and a tertiary task is substituted as a secondary task in the method shown in fig. 1 on the basis of the primary task and the secondary task; it is within the scope of the present invention to substitute one or both of the primary task and the secondary task as the primary task in the method shown in fig. 1, thereby implementing the above-mentioned steps S110 to S130. Thus, the invention can realize more nesting, so that N tasks can be executed (N is an integer greater than 1).
Specifically, when the secondary task includes only one subtask, one of the steps S120 and S130 may be performed for the subtask according to a match with the associated primary task. When the secondary task includes a plurality of sub-tasks, the plurality of tasks may be configured to be associated with the primary task, so that one of the steps S120 and S130 may be executed for each of the plurality of sub-tasks according to the matching with the associated primary task, thereby greatly accelerating the execution of the secondary task and reducing the waste of resources of the system. When the secondary task includes a plurality of sub-tasks, some of the sub-tasks may be configured to be associated with the primary task, so that one of the steps S120 and S130 may be performed according to matching with the associated primary task for each of the plurality of sub-tasks associated with the primary task, and the remaining sub-tasks may perform tasks unrelated to the primary task, thereby enabling the secondary task to adapt to more complex scenarios.
Specifically, in the embodiments of the present invention, the task information may be set according to an application scenario. For example, in a multimedia data analysis scenario, the task information may include an analysis type and/or an algorithm type; when applied to other scenarios, the task information may be any execution information (such as modifying a data table, storing data, detecting an alarm, etc., but the invention is not limited thereto).
Specifically, in the embodiments of the present invention, the association between the subtask and the one-time task may be selected by a user, or may be implemented by automatic matching of systems in different scenarios, which is not limited by the present invention.
Referring now to fig. 2, fig. 2 is a flow diagram illustrating the execution of a subtask to obtain a task result of the subtask when the task information of the subtask does not match the task information of the associated primary task, according to an embodiment of the present invention. Fig. 2 shows the following steps together:
step S131: acquiring data to be processed according to the primary task associated with the subtask;
step S132: and executing the subtask on the data to be processed to obtain a task result of the subtask.
Therefore, when the task information is not matched, the data to be processed can be directly obtained according to the associated one-time task so as to execute the task, the situation that the data to be processed cannot be found is prevented, or the data to be processed is obtained in a self-searching mode, and therefore the searching time of the data to be processed is shortened.
In some embodiments, the data to be processed may be stored in a task processing system or an associated local database. In other embodiments, the data to be processed may also be stored in the cloud system. In still other embodiments, the pending data may be stored in a third party system. The present invention does not limit the storage location of the data to be processed. In this embodiment, the data to be processed is read by acquiring information capable of reading the data to be processed (different information may be provided according to different storage locations of the data to be processed) through one task.
Referring now to FIG. 3, FIG. 3 illustrates a flowchart for obtaining data to be processed according to a primary task associated with the subtask, according to an embodiment of the present invention. Fig. 3 shows the following steps in total:
step S1311: and acquiring the task record of the primary task according to the primary task associated with the subtask.
Step S1312: and acquiring a storage path of the data to be processed according to the task record.
Step S1313: and reading the data to be processed according to the storage path.
Therefore, the data to be processed is obtained based on the storage path in the task record of the primary task, the storage path is obtained through the task record, the storage path does not need to be stored in association with the primary task, waste of storage space is reduced, the storage path is searched in the task record of the primary task, and the searching speed is high.
The present invention is not limited thereto, and it is within the scope of the present invention to provide a mapping table of a storage path of a task and its data to be processed to realize the query of the storage path.
Further, in a preferable example of the foregoing embodiment, the following step may be further included after step S1313: and copying the read data to be processed to a storage path corresponding to the subtask.
Therefore, the data to be processed is copied to the storage path corresponding to the secondary task, so that task management is facilitated, modification or other operations on the original data of the primary task when the secondary task executes the task are prevented, and the tasks which are executed independently are independent and decoupled from each other and cannot be influenced with each other.
In some embodiments of the present invention, each of the primary tasks is only used for processing data to be processed of a multimedia type, and the secondary task includes a plurality of sub-tasks, wherein a sub-task is associated with a primary task that processes data to be processed of a multimedia type, and a part of the sub-tasks are associated with a primary task that processes data to be processed of another multimedia type. The multimedia types may include pictures, video, audio, text, and the like. In this example, a task can only process one multimedia type (e.g., picture or video) at a time; the secondary task may include a sub-task that processes a plurality of multimedia types, whereby simultaneous analysis of the plurality of multimedia types may be achieved through the secondary task, so that the secondary task may be applied to a complex application scenario.
In a specific implementation of the foregoing embodiment, since the secondary task includes a plurality of sub-tasks, wherein a sub-task is associated with a primary task that processes to-be-processed data of one multimedia type, and a sub-task is associated with a primary task that processes to-be-processed data of another multimedia type, a task result of the secondary task may be generated in a manner shown in fig. 4. Fig. 4 shows the following steps in total:
step S140: task results of subtasks of a primary task associated with processing of data to be processed of a multimedia type are obtained as first-type task results.
Step S150: and acquiring a task result of a subtask associated with a primary task for processing data to be processed of another multimedia type as a second type of task result.
Step S160: and combining the first type task result and the second type task result to be used as the task result of the secondary task.
Therefore, the secondary task obtains task results of multiple multimedia types and combines the task results to obtain the task results of the secondary task, and hybrid analysis is achieved by combining the task results.
Specifically, in some embodiments, step S160 may directly and simply combine the first type task result and the second type task result, so as to obtain the task result of the secondary task.
In other embodiments, step S160 may combine the first type task result and the second type task result by combining, aggregating, or providing different weighting weights according to different multimedia types of the same analysis field, so as to provide a more concise task result of the secondary task. In this embodiment, a display control for user operation may also be provided, so as to facilitate user operation to view the first type task result and the second type task result respectively. The present invention can be implemented in many different ways, which are not described herein.
Referring now to fig. 5, fig. 5 is a flowchart illustrating storing information related to a primary task for invocation according to an embodiment of the present invention, which specifically illustrates acquiring task information of at least one sub-task of a secondary task, where the secondary task includes steps before the at least one sub-task:
step S101: and storing the task result and the task information of the completed task within a preset time period.
Step S102: and respectively providing a task result and a task information calling interface for calling the primary task.
Therefore, the primary task is stored and managed, information after the secondary task is matched can be conveniently obtained through the storage management of the primary task and the provision of the interface, and the execution efficiency of the secondary task is accelerated.
The above embodiments are described below by taking as an example (the present invention is not limited thereto) an implementation of a secondary analysis applied to a multimedia data analysis system in a field such as autonomous driving or related transportation.
Specifically, when the user needs to perform the secondary task, the analysis type of the secondary task may be selected in an interface provided by the multimedia data analysis system. In this embodiment, the analysis types may include a person-on-board analysis, a vehicle-on-board analysis, a structured analysis, a summary analysis, a face analysis, and the like. When the user selects a secondary task at the click, the relevant completed analysis tasks (primary tasks) may be listed in the interface, from which the sub-tasks selected to associate the secondary analysis are clicked. The secondary analysis may be performed by mixing a completed primary task of one multimedia data type with a completed primary task of another multimedia data type. Because the primary task can only analyze the picture or the video independently, and the user can ignore the limitation of the multimedia data type when submitting the secondary task, the combined analysis is realized.
After the user has clicked on the subtask selected from the primary task to associate the secondary analysis, the task information of the secondary task may be continuously selected on the interface (e.g., including an analysis type and an algorithm type, the analysis type may include face analysis, person analysis, vehicle analysis, and non-motor vehicle analysis, and the algorithm type may include a specific multimedia analysis algorithm). After the task information is selected, the execution of the secondary task can be triggered through user operation, and the multimedia data analysis system can judge whether the analysis types and the algorithm types of each subtask in the secondary task and the associated primary task are the same after receiving the secondary task. If the analysis type and the algorithm type between the subtask of the secondary task and the associated primary task are the same, the subtask does not need to be resubmitted, and if the analysis type and the algorithm type are different, the subtask needs to be resubmitted, so that the subtask can be executed.
Specifically, if the analysis types and algorithm types of the subtasks of the secondary task and the associated primary task are different, the multimedia data analysis system may obtain the identifier of the associated primary task according to the submitted subtask of the secondary task, search the task record from the database according to the identifier of the primary task, and find the storage path of the data processed by the primary task from the record after the task record is found. The multimedia data analysis system can copy the data stored in the storage path to the path corresponding to the secondary task, and then can submit the copied data to the multimedia data analysis system for secondary analysis. The secondary task includes a combined analysis including a plurality of multimedia data.
After the above steps, the subtasks can be divided into subtasks requiring resubmission analysis and subtasks requiring no resubmission analysis. And extracting the analysis result of the task from the database according to the primary task identifier associated with the subtask which does not need to be submitted for analysis, and submitting the analysis result to the multimedia data analysis system.
The analysis result of the multimedia data analysis system may include analysis attributes and characteristic data of objects (faces, persons, automobiles or non-automobiles) appearing in various multimedia data. After the multimedia data analysis system receives the task results obtained by the subtasks which need to be resubmitted and analyzed and the subtasks which do not need to be resubmitted, the final results which are used as secondary tasks can be obtained in a combined mode.
Therefore, in the application scene, the analyzed primary task can be directly selected as an analysis object to be analyzed for reanalysis; tasks of different analysis types can be submitted for task analysis at the same time; off-line different types of multimedia data analysis tasks can be submitted for analysis at the same time; the analysis result of the analysis completion task can be extracted from the database, and the analysis pressure is reduced; the invention aims at the scene of carrying out secondary analysis on batch completed tasks in a large amount of data analysis environments, does not need to repeatedly submit analysis data, and reduces the operation pressure of users.
The task processing device provided by the present invention is described below with reference to fig. 6. The task processing device 200 includes an acquisition module 210, a multiplexing module 220, and an execution module 230.
The obtaining module 210 is configured to obtain task information of at least one subtask of a secondary task, where the secondary task includes the at least one subtask;
the multiplexing module 220 is configured to multiplex the task result data of the primary task into the task result of the subtask when the subtask is matched with the task information of the associated primary task;
the execution module 230 is configured to execute the subtask when the task information of the subtask does not match the task information of the associated primary task to obtain a task result of the subtask.
The task processing device provided by the invention judges whether the subtask of the secondary task needs to be executed or not through matching the subtask of the secondary task with the task information of the associated primary task, and directly multiplexes the task result of the primary task when the subtask of the secondary task is matched with the task information of the associated primary task, thereby reducing the total execution time of the secondary task and simultaneously reducing unnecessary analysis resource consumption.
The present invention may be implemented as a task processing device in software, hardware, firmware, or any combination thereof. Fig. 6 is a schematic diagram of a task processing device provided by the present invention, and the splitting, merging and adding of modules are within the protection scope of the present invention without departing from the concept of the present invention.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium on which a computer program is stored, which, when executed by, for example, a processor, can implement the steps of the task processing method described in any one of the above embodiments. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the invention described in the task processing method section above of this specification, if the program product is run on the terminal device.
Referring to fig. 7, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a 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.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the tenant computing device, partly on the tenant device, as a stand-alone software package, partly on the tenant computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing devices may be connected to the tenant computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In an exemplary embodiment of the present disclosure, there is also provided an electronic device, which may include a processor, and a memory for storing executable instructions of the processor. Wherein the processor is configured to perform the steps of the task processing method in any of the above embodiments via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 8. The electronic device 600 shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the task processing method section above in this specification. For example, the processing unit 610 may perform the steps as shown in fig. 1 and/or fig. 5.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a tenant to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above task processing method according to the embodiments of the present disclosure.
Therefore, compared with the prior art, the scheme provided by the invention has the following advantages:
and when the subtasks of the secondary task are matched with the task information of the associated primary task, the task result of the primary task is directly reused, so that the total execution time of the secondary task is reduced, and unnecessary analysis resource consumption is reduced.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A task processing method, comprising:
acquiring task information of at least one subtask of a secondary task, wherein the secondary task comprises at least one subtask;
when the subtask is matched with the task information of the associated primary task, multiplexing the task result data of the primary task into the task result of the subtask;
and when the task information of the subtask is not matched with the task information of the associated primary task, executing the subtask to obtain a task result of the subtask.
2. The task processing method of claim 1, wherein when the task information of the subtask and the associated one-time task do not match, executing the subtask to obtain the task result of the subtask comprises:
acquiring data to be processed according to the primary task associated with the subtask;
and executing the subtask on the data to be processed to obtain a task result of the subtask.
3. The task processing method according to claim 2, wherein the acquiring the data to be processed according to the one-time task associated with the subtask comprises:
acquiring a task record of a primary task associated with the subtask according to the primary task;
acquiring a storage path of the data to be processed according to the task record;
and reading the data to be processed according to the storage path.
4. The task processing method according to claim 3, further comprising, after reading the data to be processed according to the storage path:
and copying the read data to be processed to a storage path corresponding to the subtask.
5. The task processing method according to claim 1, wherein each of the primary tasks is only used for processing the data to be processed of one multimedia type, and the secondary task includes a plurality of sub-tasks, wherein a sub-task is associated with a primary task that processes the data to be processed of one multimedia type, and a sub-task is associated with a primary task that processes the data to be processed of another multimedia type.
6. The task processing method according to claim 5, further comprising:
acquiring a task result of a subtask associated with a primary task of processing data to be processed of a multimedia type as a first type of task result;
acquiring a task result of a subtask associated with a primary task for processing data to be processed of another multimedia type as a second type of task result;
and combining the first type task result and the second type task result to be used as the task result of the secondary task.
7. The task processing method according to claim 1, wherein the acquiring task information of at least one subtask of the secondary task, the secondary task including the at least one subtask further comprises:
storing a task result and task information of a task which is executed and completed within a preset time period;
and respectively providing a task result and a task information calling interface for calling the primary task.
8. A task processing apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is configured to acquire task information of at least one subtask of a secondary task, and the secondary task comprises at least one subtask;
the multiplexing module is configured to multiplex the task result data of the primary task into the task result of the subtask when the subtask is matched with the task information of the associated primary task;
and the execution module is configured to execute the subtask to obtain a task result of the subtask when the task information of the subtask and the associated primary task is not matched.
9. An electronic device, characterized in that the electronic device comprises:
a processor;
a storage medium having stored thereon a computer program which, when executed by the processor, performs:
a task processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having a computer program stored thereon, which when executed by a processor performs:
a task processing method according to any one of claims 1 to 7.
CN202010888530.XA 2020-08-28 2020-08-28 Task processing method, device, electronic equipment and storage medium Active CN112015535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010888530.XA CN112015535B (en) 2020-08-28 2020-08-28 Task processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010888530.XA CN112015535B (en) 2020-08-28 2020-08-28 Task processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112015535A true CN112015535A (en) 2020-12-01
CN112015535B CN112015535B (en) 2023-09-08

Family

ID=73503045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010888530.XA Active CN112015535B (en) 2020-08-28 2020-08-28 Task processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112015535B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116992966A (en) * 2023-09-28 2023-11-03 深圳鲲云信息科技有限公司 Method and computing device for artificial intelligence model reasoning platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788251A (en) * 2019-01-21 2019-05-21 苏州科达科技股份有限公司 Method for processing video frequency, device and storage medium
CN110888722A (en) * 2019-11-15 2020-03-17 北京奇艺世纪科技有限公司 Task processing method and device, electronic equipment and computer readable storage medium
CN111460217A (en) * 2020-03-31 2020-07-28 苏州科达科技股份有限公司 Video retrieval system and method for operating a video retrieval system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788251A (en) * 2019-01-21 2019-05-21 苏州科达科技股份有限公司 Method for processing video frequency, device and storage medium
CN110888722A (en) * 2019-11-15 2020-03-17 北京奇艺世纪科技有限公司 Task processing method and device, electronic equipment and computer readable storage medium
CN111460217A (en) * 2020-03-31 2020-07-28 苏州科达科技股份有限公司 Video retrieval system and method for operating a video retrieval system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116992966A (en) * 2023-09-28 2023-11-03 深圳鲲云信息科技有限公司 Method and computing device for artificial intelligence model reasoning platform
CN116992966B (en) * 2023-09-28 2024-01-16 深圳鲲云信息科技有限公司 Method and computing device for artificial intelligence model reasoning platform

Also Published As

Publication number Publication date
CN112015535B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
CN110032459B (en) Message queue configuration method and device, computer equipment and storage medium
CN108509556B (en) Data migration method and device, server and storage medium
CN112711581B (en) Medical data checking method and device, electronic equipment and storage medium
CN111026493B (en) Interface rendering processing method and device
CN109597810B (en) Task segmentation method, device, medium and electronic equipment
US20070038670A1 (en) Context sensitive media and information
CN111258565A (en) Method, system, server and storage medium for generating small program
CN110688111A (en) Configuration method, device, server and storage medium of business process
CN115964646A (en) Heterogeneous graph generation for application microservices
CN112015535B (en) Task processing method, device, electronic equipment and storage medium
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
CN114489954A (en) Tenant creation method based on virtualization platform, tenant access method and equipment
US20130226670A1 (en) Method and system for automatically partitioning and processing a business process
CN110196952B (en) Program code search processing method, device, equipment and storage medium
CN109558222B (en) Batch business process monitoring method and device, computer and readable storage medium
CN113673872B (en) Method and device for processing replenishment, storage medium and electronic equipment
CN115629853A (en) Task scheduling method and device
CN113918525A (en) Data exchange scheduling method, system, electronic device, medium, and program product
CN110083357B (en) Interface construction method, device, server and storage medium
CN114610895A (en) Work order pushing method and device, electronic equipment and storage medium
CN110688504B (en) Image data management method, apparatus, system, device and medium
CN113837382A (en) Method and system for training graph neural network
CN112818204A (en) Service processing method, device, equipment and storage medium
CN113407331A (en) Task processing method and device and storage medium
CN111262727A (en) Service capacity expansion method, device, equipment and storage medium

Legal Events

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