CN117349013A - Task execution processing method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN117349013A
CN117349013A CN202311297197.5A CN202311297197A CN117349013A CN 117349013 A CN117349013 A CN 117349013A CN 202311297197 A CN202311297197 A CN 202311297197A CN 117349013 A CN117349013 A CN 117349013A
Authority
CN
China
Prior art keywords
flow
executed
task
target
current
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311297197.5A
Other languages
Chinese (zh)
Inventor
兰洋
刘波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Xinglian Xintong Technology Co ltd
Xinjiang Starlink Core Technology Co ltd
Chengdu Xinglian Xintong Technology Co ltd
Original Assignee
Wuxi Xinglian Xintong Technology Co ltd
Xinjiang Starlink Core Technology Co ltd
Chengdu Xinglian Xintong 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 Wuxi Xinglian Xintong Technology Co ltd, Xinjiang Starlink Core Technology Co ltd, Chengdu Xinglian Xintong Technology Co ltd filed Critical Wuxi Xinglian Xintong Technology Co ltd
Priority to CN202311297197.5A priority Critical patent/CN117349013A/en
Publication of CN117349013A publication Critical patent/CN117349013A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration
    • 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 application provides a task execution processing method, device, equipment and storage medium, and belongs to the technical field of software communication. The method comprises the following steps: analyzing the received target data, and determining a target task corresponding to the target data and a flow sequence of a flow to be executed in the target task; and sequentially executing each flow to be executed in the target task according to the flow sequence of the flow to be executed in the target task, wherein if the current flow to be executed is a second flow, the information of the second flow is sent to the parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task is a task capable of completing the second flow and can be executed in parallel with the target task. The method and the device can improve maintainability and expandability of the software system.

Description

Task execution processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of software communications technologies, and in particular, to a task execution processing method, device, equipment, and storage medium.
Background
In an RRC (Radio Resource Control ) software system, a plurality of different related tasks are typically performed simultaneously, each task involving a plurality of related processes, such as: since there is a need for a processing method that can effectively perform flow scheduling to complete the task processing, such as communication area selection and system broadcast reception processing.
In the prior art, the processing is usually performed on each task unit, that is, in the process of executing each task, the process steps under the task are executed sequentially or respectively, so as to finally obtain a processing result. The tasks may include the same or related flows.
However, if a process in the software architecture changes when processed in the prior art manner, all tasks related to that process need to be updated. Thus, the coupling of the software system is excessively high, resulting in poor maintainability and scalability of the software system.
Disclosure of Invention
The invention aims to provide a task execution processing method, a device, equipment and a storage medium, which can improve maintainability and expandability of a software system.
Embodiments of the present application are implemented as follows:
in one aspect of the embodiments of the present application, a task execution processing method is provided, including:
analyzing the received target data, and determining a target task corresponding to the target data and a flow sequence of a flow to be executed in the target task; the process to be executed comprises the following steps: the system comprises a first flow and a second flow, wherein the first flow is a completable flow of a target task, and the second flow is an uncompletable flow of the target task;
And sequentially executing each flow to be executed in the target task according to the flow sequence of the flow to be executed in the target task, wherein if the current flow to be executed is a second flow, the information of the second flow is sent to the parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task is a task capable of completing the second flow and can be executed in parallel with the target task.
Optionally, according to a flow sequence of the flows to be executed in the target task, sequentially executing each flow to be executed in the target task includes:
determining instruction information of the current flow to be executed according to the current flow to be executed, and storing the instruction information in an instruction list;
and executing the current flow to be executed according to the type of the current flow to be executed and the instruction information of the current flow to be executed.
Optionally, executing the current to-be-executed process according to the type of the current to-be-executed process and the instruction information of the current to-be-executed process includes:
if the current flow to be executed is a first flow, executing instruction information of the first flow in a target task in a pre-configured flow execution mode to obtain a first flow result;
Updating the current flow to be executed.
Optionally, executing the current to-be-executed process according to the type of the current to-be-executed process and the instruction information of the current to-be-executed process includes:
if the current flow to be executed is a second flow, sending instruction information of the second flow to the parallel task, executing the instruction information of the second flow in the parallel task in a pre-configured flow execution mode to obtain a second flow result, and storing the second flow result in an instruction list in the form of the instruction result so as to enable the target task to obtain the second flow result;
updating the current flow to be executed.
Optionally, the process to be performed further includes: the third flow is an outer-layer flow which can not be completed by the target task and the parallel task;
executing the current flow to be executed according to the type of the current flow to be executed and the instruction information of the current flow to be executed, wherein the method comprises the following steps:
if the current flow to be executed is a third flow, transmitting instruction information of the third flow to a target level capable of executing the third flow, executing the instruction information of the third flow in the target level by adopting a pre-configured flow execution mode to obtain a third flow result, and transmitting the third flow result to a target task;
Updating the current flow to be executed.
Optionally, updating the current flow to be executed includes:
if the flow result exists, the current flow to be executed is updated to be the next flow to be executed of the current flow to be executed in the flow sequence.
Optionally, before parsing the received target data, the method further includes:
receiving target data sent by a target hierarchy, wherein the target hierarchy comprises: network attached storage hierarchy, radio link hierarchy, medium access control hierarchy, physical hierarchy.
In another aspect of the embodiments of the present application, there is provided a task execution processing device, including: a determining module and an executing module;
the determining module is used for analyzing the received target data and determining a target task corresponding to the target data and a flow sequence of a flow to be executed in the target task; the process to be executed comprises the following steps: the system comprises a first flow and a second flow, wherein the first flow is a completable flow of a target task, and the second flow is an uncompletable flow of the target task;
the execution module is used for sequentially executing each flow to be executed in the target task according to the flow sequence of the flow to be executed in the target task, wherein if the current flow to be executed is a second flow, the information of the second flow is sent to the parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task can complete the task of the second flow and can execute the parallel task and the target task in parallel.
Optionally, the execution module is specifically configured to determine instruction information of the current to-be-executed process according to the current to-be-executed process, where the instruction information is stored in the instruction list; and executing the current flow to be executed according to the type of the current flow to be executed and the instruction information of the current flow to be executed.
Optionally, the execution module is specifically configured to execute instruction information of the first procedure in a preset procedure execution mode in the target task if the current procedure to be executed is the first procedure, so as to obtain a first procedure result; updating the current flow to be executed.
Optionally, the execution module is specifically configured to send instruction information of the second flow to the parallel task if the current flow to be executed is the second flow, execute the instruction information of the second flow in the parallel task by adopting a pre-configured flow execution mode to obtain a second flow result, and store the second flow result in an instruction list in the form of the instruction result, so that the target task obtains the second flow result; updating the current flow to be executed.
Optionally, the process to be performed further includes: the third flow is an outer-layer flow which can not be completed by the target task and the parallel task; the execution module is specifically configured to, if the current flow to be executed is a third flow, send instruction information of the third flow to a target level capable of executing the third flow, execute the instruction information of the third flow in the target level by adopting a pre-configured flow execution mode to obtain a third flow result, and send the third flow result to a target task; updating the current flow to be executed.
Optionally, the executing module is specifically configured to update the current flow to be executed to a next flow to be executed of the current flow to be executed in the flow sequence if the flow result exists.
Optionally, the determining module is further configured to receive target data sent by a target hierarchy, where the target hierarchy includes: network attached storage hierarchy, radio link hierarchy, medium access control hierarchy, physical hierarchy.
In another aspect of the embodiments of the present application, there is provided a computer device comprising: the system comprises a memory and a processor, wherein the memory stores a computer program which can be run on the processor, and the processor realizes the steps of the task execution processing method when executing the computer program.
In another aspect of the embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the task execution processing method described above.
The beneficial effects of the embodiment of the application include:
in the task execution processing method, device, equipment and storage medium provided by the embodiment of the application, the received target data can be analyzed, and the target task corresponding to the target data and the flow sequence of the flow to be executed in the target task are determined; the process to be executed comprises the following steps: the system comprises a first flow and a second flow, wherein the first flow is a completable flow of a target task, and the second flow is an uncompletable flow of the target task; and sequentially executing each flow to be executed in the target task according to the flow sequence of the flow to be executed in the target task, wherein if the current flow to be executed is a second flow, the information of the second flow is sent to the parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task is a task capable of completing the second flow and can be executed in parallel with the target task. When the target task cannot be directly executed, the corresponding process can be sent to other parallel tasks capable of executing the process, so that the process is completed by other tasks, excessive coupling processes are avoided in the same task, decoupling between the processes under task execution is realized, maintenance and expansion of the whole software system can be facilitated, that is, maintainability and expandability of the software system are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a hierarchical virtual structure according to an embodiment of the present application;
fig. 2 is a flowchart of a task execution processing method according to an embodiment of the present application;
fig. 3 is a second flowchart of a task execution processing method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a task execution processing method according to an embodiment of the present application;
fig. 5 is a flow chart diagram of a task execution processing method provided in an embodiment of the present application;
fig. 6 is a flowchart of a task execution processing method provided in an embodiment of the present application;
FIG. 7 is a schematic view of a hierarchical software architecture according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a task execution processing device according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present application, it should be noted that the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
For a more clear explanation of the relevant content of the present application, the relevant industry terms referred to in the present application are explained correspondingly below.
Hierarchy: in the process of processing data, computer software generally needs a plurality of different layers to sequentially process different types of data, for different data information, the layers involved in processing also differ, and different layers have a superior-subordinate relationship, for example: the RRC layer may be a layer for performing the task establishment process, and other layers may be required to assist in performing part of the task, such as opening a channel transmission through the physical layer, etc.
The virtual structure of the hierarchy involved in the embodiments of the present application is specifically explained below based on the above-described related-art explanation.
Fig. 1 is a schematic view of a virtual structure of a hierarchy provided in an embodiment of the present application, referring to fig. 1, an execution body of a task execution processing method provided in an embodiment of the present application may be a computer device, and may specifically be implemented by a software system in the computer device, where the software system may include multiple hierarchies, and a hierarchy for creating a target task may be an RRC hierarchy, and a virtual structure of the hierarchy is specifically explained below:
Through this hierarchy, a number of tasks can be created, such as: the target task 110, the parallel task 120, and the like, when the target task 110 is executed, a plurality of flows are generally included, if some flows cannot be completed by the target task 110, the flows can be sent to other executable parallel tasks 120 by means of instructions, and the corresponding parallel tasks 120 complete the flows.
Optionally, during the process of executing the target task 110, a certain amount of data processing may be performed through other levels, and when other levels of assistance are needed, the corresponding flow may also be sent to other levels by adopting an instruction manner, where the other levels may be specifically the outer level 130, and the outer level 130 may specifically include: network attached storage hierarchy (NAS, network Attached Storage), radio link hierarchy (RLC, radio Link Control), medium access control hierarchy (MAC, media Access Control), physical Hierarchy (PHY).
Alternatively, the outer layer 130 may be an upper layer of the RRC layer or a lower layer of the RRC layer, which is not particularly limited herein.
The following explains the specific implementation procedure of the task execution processing method applied to the software system provided in the embodiment of the present application based on the above hierarchical structure.
Fig. 2 is a flowchart of a task execution processing method provided in an embodiment of the present application, please refer to fig. 2, and the method includes:
s210: analyzing the received target data, and determining a target task corresponding to the target data and a flow sequence of a flow to be executed in the target task.
The process to be executed comprises the following steps: the first flow is a completable flow of the target task, and the second flow is an uncompletable flow of the target task.
Optionally, the target data may be a related message sent by another layer (a layer that may exchange messages with the RRC layer, such as the aforementioned outer layer), where the message may be a related data segment, and after parsing the data, a target task corresponding to the data may be determined, for example: the target data is a related message acquired by the regional service, the target task can be determined to be a region selection task, an execution sequence of the corresponding task can be carried in the hierarchy, and after the target task corresponding to the target data is determined, a flow sequence of a flow to be executed corresponding to the target task can be determined.
In the process of executing the target task, a plurality of flow steps need to be executed in sequence, and the sequence and specific execution mode of the flow steps can be in the flow sequence.
For example: continuing with the above-mentioned region selection task as an example, if the region selection task includes three processes: the execution sequence of the processes and the specific execution content of the processes can be in the process sequence.
Optionally, when the target task is actually executed, a plurality of flows to be executed may be included, for example, the flow a, the flow B, and the flow C, which may have different flow types based on different flows, for example, the first flow and the second flow.
S220: and sequentially executing each flow to be executed in the target task according to the flow sequence of the flow to be executed in the target task.
If the current flow to be executed is the second flow, the information of the second flow is sent to the parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task can complete the task of the second flow and can execute the parallel task and the target task in parallel.
Optionally, after determining the flow sequence of the to-be-executed flows in the target task, each to-be-executed flow in the target task may be sequentially executed according to the corresponding execution order in the flow sequence.
The execution mode may be different for different types of flows to be executed, and the second flow is a flow that the target task cannot complete.
In the prior art, the method is usually implemented by storing the corresponding flow execution mode in the target task in a code mode by a bottom technician, and for different tasks, a plurality of processes implemented in this way exist, so that the flows in the layer are mutually nested, the flows are complex, and if one of the flows needs to be changed, the whole task needs to be changed integrally.
The specific method adopted in the embodiment of the application may be a second flow which cannot be completed by the target task, information of the flow may be sent to the parallel task, and the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result.
The target task can be a task established based on target data; the parallel task may be another task of the same priority as the target task, and may be executed in parallel with the target task during execution, for example: the target task is used for realizing region selection, the parallel task is used for processing broadcast messages, the flow which needs to be processed by the broadcast messages when the region selection is executed is the second flow, the information of the flow can be sent to the parallel task for execution, and the execution result can be returned to the target task.
In the task execution processing method provided by the embodiment of the application, the received target data can be analyzed, and the target task corresponding to the target data and the flow sequence of the flow to be executed in the target task are determined; the process to be executed comprises the following steps: the system comprises a first flow and a second flow, wherein the first flow is a completable flow of a target task, and the second flow is an uncompletable flow of the target task; and sequentially executing each flow to be executed in the target task according to the flow sequence of the flow to be executed in the target task, wherein if the current flow to be executed is a second flow, the information of the second flow is sent to the parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task is a task capable of completing the second flow and can be executed in parallel with the target task. When the target task cannot be directly executed, the corresponding process can be sent to other parallel tasks capable of executing the process, so that the process is completed by other tasks, excessive coupling processes are avoided in the same task, decoupling between the processes under task execution is realized, maintenance and expansion of the whole software system can be facilitated, that is, maintainability and expandability of the software system are improved.
Another implementation procedure of the task execution processing method provided in the embodiment of the present application is specifically explained below.
Fig. 3 is a second flow chart of a task execution processing method provided in the embodiment of the present application, referring to fig. 3, each flow to be executed in a target task is sequentially executed according to a flow sequence of the flow to be executed in the target task, including:
s310: determining the instruction information of the current flow to be executed according to the current flow to be executed.
Wherein the instruction information is stored in the instruction list.
Optionally, for different flows to be executed, different instruction information may be set, where the instruction information may be an instruction command for instructing the target task to start execution of the flow, and in the process of determining the instruction information, a corresponding target parameter may be set, so that the corresponding flow to be executed can be executed.
Optionally, multiple instruction information may be stored in the instruction list, different tasks may share one instruction list, and when a task needs to execute a certain flow to be executed, the corresponding instruction information may be called from the instruction list to execute.
S320: and executing the current flow to be executed according to the type of the current flow to be executed and the instruction information of the current flow to be executed.
Optionally, after determining the instruction information, the current flow to be executed may be executed according to the type of the current flow to be executed and the instruction information of the current flow to be executed. The current flow to be executed is the first flow or the second flow.
It should be noted that, for different flow types, an identifier may be set, and when executing a task, whether the target task can be executed may be determined based on the flow identifier.
The execution process is also different for different types of processes, and a specific execution process based on the first process in the task execution processing method provided in the embodiment of the present application is specifically explained below.
Fig. 4 is a flow chart diagram III of a task execution processing method provided in the embodiment of the present application, please refer to fig. 4, in which the current flow to be executed is executed according to the type of the current flow to be executed and instruction information of the current flow to be executed, including:
s410: if the current flow to be executed is the first flow, executing the instruction information of the first flow in a target task in a pre-configured flow execution mode to obtain a first flow result.
Optionally, when determining that the type of the current flow to be executed is the first flow, it may be determined that the target task may execute the flow, then instruction information of the first flow may be called, and execution is performed by adopting a preset flow execution mode, and after execution is completed, a first flow result may be obtained.
For example: taking the target task as an area selection task as an example, if the flow A in the task is the first flow, the corresponding interface can be called to process instruction information. The preconfigured flow execution mode may be an execution function, and based on the execution function, a function result, that is, a first flow result, may be obtained, and after the result is obtained, the configuration of the corresponding parameter may be performed, and the first flow result may be stored in the instruction list in the form of an instruction result, where the first flow result may include instruction information of a next flow according to the flow sequence.
S420: updating the current flow to be executed.
Optionally, after the execution of the process, the current execution process may be updated to obtain a new current execution process, where the process may be updated according to instruction information of a next process according to the process sequence included in the first process result, or may be directly updated according to the process sequence, which is not limited herein.
The specific execution process based on the second flow in the task execution processing method provided in the embodiment of the present application is specifically explained below.
Fig. 5 is a flow chart diagram of a task execution processing method provided in the embodiment of the present application, referring to fig. 5, according to a type of a current flow to be executed and instruction information of the current flow to be executed, executing the current flow to be executed, including:
s510: if the current flow to be executed is a second flow, sending instruction information of the second flow to the parallel task, executing the instruction information of the second flow in the parallel task in a pre-configured flow execution mode to obtain a second flow result, and storing the second flow result in an instruction list in the form of the instruction result so as to enable the target task to obtain the second flow result.
Optionally, when determining that the current type of the flow to be executed is the second flow, it may be determined that the target task may not execute the flow, then the parallel flow capable of executing the second flow may call instruction information of the second flow, and the parallel task may execute the second flow in a preconfigured flow execution manner, after execution is completed, a second flow result may be obtained, and after obtaining the second flow result, the second flow result may also be stored in an instruction list in the form of an instruction result, and the target task may obtain the second flow result by calling the instruction result.
For example: taking the target task as the broadcast message processing as an example, if the flow B in the task is the second flow, the corresponding interface can be called to process the instruction information. The preconfigured flow execution mode may be an execution function, and based on the execution function, a function result, that is, a second flow result, may be obtained, and after the result is obtained, the configuration of the corresponding parameter may be performed, and the second flow result may be stored in the instruction list in the form of an instruction result, where the second flow result may include instruction information of a next flow according to the flow sequence.
S520: updating the current flow to be executed.
Optionally, after the execution of the process, the current execution process may be updated to obtain a new current execution process, where the process may be updated according to instruction information of a next process according to the process sequence included in the second process result, or may be directly updated according to the process sequence, which is not limited herein.
A specific execution process based on the third flow in the task execution processing method provided in the embodiment of the present application is specifically explained below.
Fig. 6 is a fifth flowchart of a task execution processing method provided in the embodiment of the present application, please refer to fig. 6, and the to-be-executed process further includes: the third flow is an outer-layer flow which can not be completed by the target task and the parallel task; executing the current flow to be executed according to the type of the current flow to be executed and the instruction information of the current flow to be executed, wherein the method comprises the following steps:
s610: if the current flow to be executed is a third flow, sending the instruction information of the third flow to a target level capable of executing the third flow, executing the instruction information of the third flow in the target level by adopting a pre-configured flow execution mode to obtain a third flow result, and sending the third flow result to a target task.
Optionally, the third flow may be a flow that cannot be completed by any task at the present layer, or a flow that needs to be completed with assistance of other levels, that is, the above-mentioned outer-level flow, and the level for executing the third flow may be a target level, that is, the above-mentioned outer level.
Optionally, when determining that the current flow to be executed is a third flow, it may be determined that neither the target task nor the parallel task can execute the third flow, then the target level may acquire instruction information of the third flow by using other levels capable of executing the third flow, and execute the third flow by using a preset flow execution manner, after execution is completed, a third flow result may be obtained, and after obtaining the third flow result, the third flow result may be directly sent to the target task, and after obtaining the third flow result, the target task may store the third flow result in the instruction list in a manner of instruction result.
For example: taking the target task as an area selection task as an example, the flow C in the task is a third flow, and the third flow Cheng Juti may be to control the MAC layer (i.e. the target layer) to execute a certain step, and then the corresponding interface may be invoked to process instruction information. The pre-configured flow execution mode may be a specific process executed by the MAC layer, the obtained execution result is a third flow result, after the result is obtained, the configuration of the corresponding parameter may be performed, and the third flow Cheng Jieguo may be sent to a target task in the RRC layer, where the target task may store the third flow result in an instruction list in the form of an instruction result, where the third flow result may include instruction information of a next flow according to the flow sequence.
S620: updating the current flow to be executed.
Optionally, after the execution of the process, the current execution process may be updated to obtain a new current execution process, where the process may be updated according to instruction information of a next process according to the process sequence included in the third process result, or may be directly updated according to the process sequence, which is not limited herein.
Optionally, updating the current flow to be executed includes:
if the flow result exists, the current flow to be executed is updated to be the next flow to be executed of the current flow to be executed in the flow sequence.
Optionally, the specific implementation procedure of S420, S520 and S620 is as follows: whether a corresponding flow result exists in the instruction list can be judged first, if so, the corresponding flow is considered to be executed, and the current flow to be executed can be updated to be the next flow to be executed of the current flow to be executed in the flow sequence.
For example: the target task comprises the following three processes according to a process sequence: if the current flow to be executed is the flow A and the flow result of the flow A is detected, the flow A can be considered to be executed completely, the current flow to be executed can be updated, and the flow A can be updated to the flow B according to the sequence of the flow sequences.
Optionally, before parsing the received target data, the method further includes:
receiving target data sent by a target hierarchy, wherein the target hierarchy comprises: network attached storage hierarchy, radio link hierarchy, medium access control hierarchy, physical hierarchy.
Optionally, the target layer is the external layer, and the target layer may send the target data to the RRC layer, and the RRC layer may perform corresponding parsing based on the target data.
Fig. 7 is a schematic view of a software architecture of a hierarchy provided in an embodiment of the present application, referring to fig. 7, in an rrc hierarchy, may include: task module 710, management module 720, instruction module 730, program module 740, region module 750, clock module 760, and general purpose module 770.
Alternatively, the task module 710 may implement creation of tasks, for example, the target task and the parallel task may be created by the module, specific functions in the execution process may also be created, initialization of a memory pool and a flow may be implemented, and a message received from a message queue may be delivered to the management module 720, where the message in the message queue may be, for example, the target data, or may be a third flow result obtained by processing through a target hierarchy.
The management module 720 may generate corresponding instructions based on the received message, that is, the instruction information, the instruction result, etc. stored in the instruction list; the above-described invocation, storage, etc. of the instruction list may be accomplished by the management module 720. The management module 720 may use a MEDIATOR Mode (MEDIATOR) to encapsulate the instructions involved between the respective flows during the execution process.
The instruction module 730 may be configured to generate specific instructions, and the management module 720 may complete the generation process by calling the functions of the instruction module 730 when generating the instructions. The process summary of task execution can generate a plurality of central instructions, the central instructions can manage instruction information in the instruction module, abstract a list (for example, an instruction list), and use an iterative mode to access elements in the list (namely, a process of calling the instruction list).
The program module 740 is configured to store the execution process of the specific flow to be executed, and may be executed by the program module 740 when the target task executes the first flow or the parallel task executes the second flow. The program module 740 may define interfaces corresponding to each flow instruction by using a STATE mode (STATE) in the executing process, determine the interfaces by using different STATE subclasses, and use a STATE class object as a private variable of the flow object, and maintain a specific STATE subclass by the flow object, and change a STATE in the flow object according to a corresponding processing flow, so that a flow behavior can be changed according to the STATE at a running time.
The area module 750 may be configured to store area information, and for the aforementioned area selection task, the area module 750 may obtain relevant information of the corresponding selectable area, so as to assist the program module 740 in completing the corresponding execution process.
The clock module 760 may be used for timing, and may be used for creating, starting, stopping, deleting, etc. the timer, for assisting the program module 740 in completing the corresponding execution process.
The generic module 770 may be used to define the relevant types, constants, etc. of data involved in the RRC layer execution.
The following describes devices, storage media and the like corresponding to the task execution processing method provided by the present application, and specific implementation processes and technical effects of the device and the device are referred to above, which are not described in detail below.
Fig. 8 is a schematic structural diagram of a task execution processing device provided in an embodiment of the present application, referring to fig. 8, the device includes: a determination module 810, an execution module 820;
the determining module 810 is configured to parse the received target data, determine a target task corresponding to the target data, and a flow sequence of a flow to be executed in the target task; the process to be executed comprises the following steps: the system comprises a first flow and a second flow, wherein the first flow is a completable flow of a target task, and the second flow is an uncompletable flow of the target task;
The execution module 820 is configured to sequentially execute each flow to be executed in the target task according to a flow sequence of the flow to be executed in the target task, where if the current flow to be executed is the second flow, information of the second flow is sent to the parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task is a task capable of completing the second flow and the parallel task and the target task can be executed in parallel.
Optionally, the execution module 820 is specifically configured to determine instruction information of the current to-be-executed process according to the current to-be-executed process, where the instruction information is stored in an instruction list; and executing the current flow to be executed according to the type of the current flow to be executed and the instruction information of the current flow to be executed.
Optionally, the execution module 820 is specifically configured to execute the instruction information of the first procedure by adopting a pre-configured procedure execution mode in the target task if the current procedure to be executed is the first procedure, so as to obtain a first procedure result; updating the current flow to be executed.
Optionally, the execution module 820 is specifically configured to send instruction information of the second flow to the parallel task if the current flow to be executed is the second flow, execute the instruction information of the second flow in the parallel task by adopting a pre-configured flow execution mode to obtain a second flow result, and store the second flow result in an instruction list in the form of the instruction result, so that the target task obtains the second flow result; updating the current flow to be executed.
Optionally, the process to be performed further includes: the third flow is an outer-layer flow which can not be completed by the target task and the parallel task; the execution module 820 is specifically configured to, if the current flow to be executed is a third flow, send instruction information of the third flow to a target level capable of executing the third flow, execute the instruction information of the third flow in the target level by adopting a pre-configured flow execution mode to obtain a third flow result, and send the third flow result to a target task; updating the current flow to be executed.
Optionally, the execution module 820 is specifically configured to update the current to-be-executed flow to a next to-be-executed flow of the current to-be-executed flow in the flow sequence if the flow result exists.
Optionally, the determining module 810 is further configured to receive target data sent by a target hierarchy, where the target hierarchy includes: network attached storage hierarchy, radio link hierarchy, medium access control hierarchy, physical hierarchy.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASICs), or one or more microprocessors, or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGAs), etc. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 9 is a schematic structural diagram of a computer device provided in an embodiment of the present application, referring to fig. 9, the computer device includes: memory 910 and processor 920, and the memory 910 stores a computer program executable on the processor 920, and when the processor 920 executes the computer program, the steps of the task execution processing method are realized.
Alternatively, the computer device may be a device having the software system, and may specifically be an electronic device such as a computer, a mobile phone, a tablet computer, a communicator, a signal station, a satellite base station, and the like, which is not limited herein.
In another aspect of the embodiments of the present application, there is further provided a computer readable storage medium having a computer program stored thereon, the computer program implementing the steps of the task execution processing method described above when executed by a processor.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform part of the steps of the methods of the embodiments of the invention. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (10)

1. A task execution processing method, characterized by comprising:
analyzing the received target data, and determining a target task corresponding to the target data and a flow sequence of a flow to be executed in the target task; the process to be executed comprises the following steps: a first flow and a second flow, wherein the first flow is a completable flow of the target task, and the second flow is an uncompletable flow of the target task;
And sequentially executing each flow to be executed in the target task according to the flow sequence of the flow to be executed in the target task, wherein if the current flow to be executed is the second flow, the information of the second flow is sent to a parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task can finish the task of the second flow and can execute in parallel with the target task.
2. The method of claim 1, wherein sequentially executing each flow to be executed in the target task according to the flow sequence of the flow to be executed in the target task comprises:
determining instruction information of a current to-be-executed process according to the current to-be-executed process, wherein the instruction information is stored in an instruction list;
and executing the current flow to be executed according to the type of the current flow to be executed and the instruction information of the current flow to be executed.
3. The method of claim 2, wherein the executing the current flow to be executed according to the type of the current flow to be executed and instruction information of the current flow to be executed comprises:
If the current flow to be executed is the first flow, executing instruction information of the first flow in the target task in a pre-configured flow execution mode to obtain a first flow result;
and updating the current flow to be executed.
4. The method of claim 2, wherein the executing the current flow to be executed according to the type of the current flow to be executed and instruction information of the current flow to be executed comprises:
if the current flow to be executed is a second flow, sending instruction information of the second flow to the parallel task, executing the instruction information of the second flow in the parallel task in a pre-configured flow execution mode to obtain a second flow result, and storing the second flow result in the instruction list in the form of an instruction result so as to enable the target task to acquire the second flow result;
and updating the current flow to be executed.
5. The method of claim 2, wherein the flow to be performed further comprises: the third flow is an outer-layer flow which can not be completed by the target task and the parallel task;
The executing the current process to be executed according to the type of the current process to be executed and the instruction information of the current process to be executed, including:
if the current flow to be executed is a third flow, sending instruction information of the third flow to a target level capable of executing the third flow, executing the instruction information of the third flow in the target level by adopting a pre-configured flow execution mode to obtain a third flow result, and sending the third flow Cheng Jieguo to the target task;
and updating the current flow to be executed.
6. The method according to any one of claims 3-5, wherein the updating the current flow to be performed comprises:
if a flow result exists, updating the current flow to be executed to a next flow to be executed of the current flow to be executed in the flow sequence.
7. The method of claim 1, wherein prior to parsing the received target data, further comprising:
receiving target data sent by a target hierarchy, wherein the target hierarchy comprises: network attached storage hierarchy, radio link hierarchy, medium access control hierarchy, physical hierarchy.
8. A task execution processing device, comprising: a determining module and an executing module;
the determining module is used for analyzing the received target data and determining a target task corresponding to the target data and a flow sequence of a flow to be executed in the target task; the process to be executed comprises the following steps: a first flow and a second flow, wherein the first flow is a completable flow of the target task, and the second flow is an uncompletable flow of the target task;
the execution module is configured to sequentially execute each flow to be executed in the target task according to a flow sequence of the flow to be executed in the target task, where if the current flow to be executed is the second flow, information of the second flow is sent to a parallel task, so that the parallel task executes the second flow to obtain an execution result and the target task obtains the execution result, and the parallel task is a task capable of completing the second flow and the parallel task and the target task can be executed in parallel.
9. A computer device, comprising: memory, a processor, in which a computer program is stored which is executable on the processor, when executing the computer program, realizing the steps of the method of any of the preceding claims 1 to 7.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method according to any of claims 1 to 7.
CN202311297197.5A 2023-10-08 2023-10-08 Task execution processing method, device, equipment and storage medium Pending CN117349013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311297197.5A CN117349013A (en) 2023-10-08 2023-10-08 Task execution processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311297197.5A CN117349013A (en) 2023-10-08 2023-10-08 Task execution processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117349013A true CN117349013A (en) 2024-01-05

Family

ID=89370475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311297197.5A Pending CN117349013A (en) 2023-10-08 2023-10-08 Task execution processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117349013A (en)

Similar Documents

Publication Publication Date Title
CN108614726B (en) Virtual machine creation method and device
US20040230670A1 (en) Method and system for representing, configuring and deploying distributed applications
CN108156095B (en) Resource determination method and device and NFVO
CN111078238A (en) Centralized processing method and device for application configuration in container environment
CN114035879A (en) Page theme color changing method and device, electronic equipment and computer readable medium
CN112835632B (en) Method and equipment for calling end capability and computer storage medium
WO2016040711A1 (en) Accounts control
CN111427665A (en) Quantum application cloud platform and quantum computing task processing method
CN113885971A (en) State management method and device based on self-adaptive platform system
CN114222003A (en) Service calling method, system, device, equipment and storage medium
CN111414265B (en) Service framework and method for calling system resources
CN110795741A (en) Method and device for carrying out security processing on data
CN115167874B (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN110717123A (en) Page response method and device, electronic equipment and storage medium
CN117349013A (en) Task execution processing method, device, equipment and storage medium
CN111198853A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN113760487A (en) Service processing method and device
CN110661857A (en) Data synchronization method and device
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
CN109151557A (en) Video creation method and relevant apparatus
CN111314457B (en) Method and device for setting virtual private cloud
CN116095230B (en) Application program recommendation method, terminal device and readable storage medium
CN110278331B (en) System attribute feedback method, device, terminal 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