CN114064315A - Task processing method and device, electronic equipment and computer readable storage medium - Google Patents

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

Info

Publication number
CN114064315A
CN114064315A CN202111335206.6A CN202111335206A CN114064315A CN 114064315 A CN114064315 A CN 114064315A CN 202111335206 A CN202111335206 A CN 202111335206A CN 114064315 A CN114064315 A CN 114064315A
Authority
CN
China
Prior art keywords
task
indication information
feedback node
feedback
target process
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
CN202111335206.6A
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.)
Xiamen Yaji Software Co Ltd
Original Assignee
Xiamen Yaji Software 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 Xiamen Yaji Software Co Ltd filed Critical Xiamen Yaji Software Co Ltd
Priority to CN202111335206.6A priority Critical patent/CN114064315A/en
Publication of CN114064315A publication Critical patent/CN114064315A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the application provides a task processing method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of computers. The method comprises the following steps: receiving task indication information of a target process and first indication information input by a user, then determining a feedback node in the first task indicated by the task indication information according to the first indication information, marking the feedback node to obtain a marked second task, finally executing the second task, and feeding back an execution result corresponding to the feedback node to the target process. According to the method and the device, the task executed by the process is marked through the indication information of the user, when the marked feedback node is executed, the corresponding execution result is automatically fed back to the target process, the target process does not need to wait for the current task to be completely executed and then process other tasks, the execution result is fed back to the target process, the user does not need to manually write and execute the callback function, and the flexibility of task processing is improved.

Description

Task processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a task processing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
The mutual communication among the processes is a common method for realizing the process cooperation and the data synchronization, has strong practicability, and is an extremely important part of an operating system kernel layer. When a message for executing a task is sent between processes, conventional processing cannot guarantee that a program can always perform feedback, and the situation that the process sending the message waits all the time is easily caused.
In the existing scheme, after a process executing a task finishes executing the task, a developer generally writes and executes a callback function manually, and feeds back an execution result to a process sending a message; however, the callback function may not be called when the execution cannot be completed, so that the related process is always in a state of waiting for feedback; for example, a process executing a task cannot smoothly execute the task, which results in that a callback function cannot be executed; or the step of executing the callback function may be omitted, causing a technical problem that the process sending the message waits for the callback feedback all the time.
Disclosure of Invention
The embodiment of the application provides a task processing method and device, electronic equipment and a computer readable storage medium, and is used for solving the technical problem that a related process is always in a feedback waiting state due to the fact that a callback function cannot be executed in the prior art.
According to an aspect of an embodiment of the present application, there is provided a task processing method, including:
receiving task indication information of a target process and first indication information input by a user;
according to the first indication information, determining a feedback node in the first task indicated by the task indication information, and marking the feedback node to obtain a marked second task;
and executing the second task, and feeding back an execution result corresponding to the feedback node to the target process.
Optionally, the task indication information includes an identification number ID of the first task, the second indication information, and timestamp information.
Optionally, determining, according to the first indication information, a feedback node in the first task indicated by the task indication information, includes:
determining a first task corresponding to the task indication information according to the ID;
and determining a feedback node in the first task according to the first indication information.
Optionally, determining a feedback node in the first task according to the first indication information includes:
and determining a subtask of which the execution result is fed back by the user indication in the first task according to the first indication information, and taking a preset completion node of the subtask as a feedback node.
Optionally, before determining the feedback node in the first task according to the first indication information, the method further includes:
executing a first task corresponding to the task indication information through the asynchronous function;
marking the feedback node to obtain a marked second task, including:
and marking the feedback node by adopting the keywords of the asynchronous function to obtain a marked second task.
Optionally, executing the second task, and feeding back an execution result corresponding to the feedback node to the target process, including:
and executing the second task, and feeding back an execution result corresponding to the feedback node to the target process according to the second indication information in the task indication information.
According to an aspect of an embodiment of the present application, there is provided a task processing apparatus including:
the receiving module is used for receiving task indication information of a target process and first indication information input by a user;
the marking module is used for determining a feedback node in the first task indicated by the task indication information according to the first indication information, and marking the feedback node to obtain a marked second task;
and the feedback module is used for executing the second task and feeding back an execution result corresponding to the feedback node to the target process.
Optionally, the task indication information includes an identification number ID of the first task, the second indication information, and timestamp information.
Optionally, the marking module comprises:
the first determining module is used for determining a first task corresponding to the task indication information according to the ID;
and the second determining module is used for determining the feedback node in the first task according to the first indication information.
Optionally, the second determining module is specifically configured to determine, according to the first indication information, a subtask in which the user indicates to feed back the execution result in the first task, and use a preset completion node of the subtask as a feedback node.
Optionally, the apparatus further comprises:
the execution module is used for executing a first task corresponding to the task indication information through the asynchronous function;
the marking module includes:
and the marking submodule is used for marking the feedback node by adopting the keywords of the asynchronous function to obtain a marked second task.
Optionally, the feedback module is specifically configured to execute the second task, and feed back an execution result corresponding to the feedback node to the target process according to the second indication information in the task indication information.
According to another aspect of embodiments of the present application, there is provided an electronic device, including a memory, a processor, and a computer program stored on the memory, the processor executing the computer program to implement the steps of the task processing method of any one of the above aspects.
According to still another aspect of 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 processing method of any one of the above aspects.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
the tasks executed by the process are marked through the indication information of the user, when the marked feedback nodes are executed, the corresponding execution results are automatically fed back to the target process, the target process does not need to wait for the current tasks to be completely executed and then process other tasks, the execution results are fed back to the target process, the user does not need to manually write and execute callback functions, and the flexibility of task processing is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a task processing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of determining a feedback node in a first task indicated by task indication information according to the first indication information according to the embodiment of the present application;
fig. 3 is a schematic structural diagram of a task processing device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device for task processing according to an embodiment of the present application.
Detailed Description
Embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the embodiments set forth below in connection with the drawings are exemplary descriptions for explaining technical solutions of the embodiments of the present application, and do not limit the technical solutions of the embodiments of the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should be further understood that the terms "comprises" and/or "comprising," when used in this specification in connection with embodiments of the present application, specify the presence of stated features, information, data, steps, operations, elements, and/or components, but do not preclude the presence or addition of other features, information, data, steps, operations, elements, components, and/or groups thereof, as embodied in the art. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein indicates at least one of the items defined by the term, e.g., "a and/or B" indicates either an implementation as "a", or an implementation as "a and B".
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application will be described below through descriptions of several exemplary embodiments. It should be noted that the following embodiments may be referred to, referred to or combined with each other, and the description of the same terms, similar features, similar implementation steps and the like in different embodiments is not repeated.
An embodiment of the present application provides a task processing method, as shown in fig. 1, specifically including:
step S101, receiving task indication information of a target process and first indication information input by a user.
The processes communicate with each other through an IPC (Inter Process Communication) message, and the task indication information in the embodiment of the present application is also an IPC message. Specifically, the inter-process communication may be communication between one process and one process, or communication between one process and a plurality of processes.
Taking communication between one-to-one processes as an example, the current process receives task indication information of the target process. The target process is a process sending messages, the current process is a process receiving messages, and the target process sends task indication information to indicate the current process to execute corresponding tasks.
It should be noted that the task processing method provided in the embodiment of the present application may also be applied to communication between one-to-many processes, and a target process may send task indication information to multiple processes simultaneously in a broadcast manner.
The current process receives first indication information input by a user, wherein the first indication information comprises a feedback node for requesting the current process to feed back an execution result to the target process. Based on the first indication information input by the user, the current process can determine the corresponding feedback node, and after the task is executed, the execution result of the task is automatically fed back to the target node, so that the user is prevented from manually compiling and running a callback function.
The current process receives task indication information sent by a target process, wherein the task indicated by the task indication information is a first task, and the task indication information comprises an identity identification number (ID) of the first task. Each task has a unique identification number ID. When the communication is carried out between the processes, the corresponding task is determined by identifying the ID of the task, so that the task is executed and the result feedback is completed.
And step S102, according to the first indication information, determining a feedback node in the first task indicated by the task indication information, and marking the feedback node to obtain a marked second task.
The feedback node is a feedback node for the user to request feedback in the first task. And determining a first indicated task according to task indication information sent by the target process, and determining a feedback node in the first task according to the first indication information input by the user.
One task may correspond to one task operation or may correspond to a plurality of task operations. The user selects a specific feedback node through the first indication information, for example, after one task operation is completed, feedback is performed once, and subsequent operations are not fed back any more, or after all task operations are completed, feedback is performed again. That is, the feedback node existing in the first task may be adjusted according to the scene of the first task.
And marking the feedback node to obtain a marked second task. Therefore, by executing the second task, when the marked feedback node is executed, the current process can automatically feed back the corresponding execution result, the user does not need to manually execute feedback, and manual operation is avoided.
For example, the user may instruct, through the first instruction information, that the current process performs feedback once after one task operation is completed, or performs feedback after all task operations are completed.
For the task of deleting the file, the user can choose to perform corresponding feedback once after the sub-task of moving the file into the recycle bin is completed, or perform feedback after the first task of deleting the file is completed. For the task of moving the file, the user can choose to perform corresponding feedback when the file is not checked, or perform feedback after the file is moved when the file exists.
In the embodiment of the application, a first task corresponding to the task indication information is executed through a JavaScript asynchronous function mechanism, a step in the first task of marking the feedback node is marked through an await keyword in the JavaScript asynchronous function mechanism, and when a certain step or all steps are finished, the asynchronous function is finished through a return to obtain a marked second task.
In the JavaScript asynchronous function mechanism, it is usually stated that a function is asynchronous by async, and marked by an awake keyword to wait for the asynchronous completion. It should be noted that the await can only be used in the async function.
await is used to wait for a Promise object whose return value is the result of the processing of the Promise object. Therefore, after the operation of the await mark is completed, the current process can automatically feed back the result to the target process, and the user does not need to manually write and execute the nested callback function.
And step S103, executing the second task, and feeding back an execution result corresponding to the feedback node to the target process.
The second task is a task after the feedback nodes are marked based on the requirements of the user. And when the current process executes the second task and executes the feedback node marked by the awake, the current process automatically feeds back an execution result corresponding to the feedback node to the target process due to the adoption of a JavaScript asynchronous function mechanism.
The target process receives the execution result corresponding to the feedback node of the task, and can execute other tasks without waiting for the completion of all the tasks, so that the task processing efficiency is improved. And the whole task processing and feedback process avoids manual operation, thereby avoiding errors caused by manual operation and ensuring that the task processing has higher reliability.
The task processing method provided by the embodiment of the application receives task indication information of a target process and first indication information input by a user; according to the first indication information, determining a feedback node in the first task indicated by the task indication information, and marking the feedback node to obtain a marked second task; and executing the second task, and feeding back an execution result corresponding to the feedback node to the target process.
According to the method and the device, the task executed by the process is marked through the request of the user, when the marked feedback node is executed, the corresponding execution result is automatically fed back to the target process, and the user does not need to manually write and execute the callback function. Meanwhile, the specific feedback node is controlled by the mark, so that feedback can be performed after all tasks are executed, feedback can be performed after one operation of the tasks is completed, and a target process does not need to wait.
An embodiment of the present application provides a task processing method, as shown in fig. 1, specifically including:
step S101, receiving task indication information of a target process and first indication information input by a user.
The processes communicate with each other through an IPC (Inter Process Communication) message, and the task indication information in the embodiment of the present application is also an IPC message. Specifically, the inter-process communication may be communication between one process and one process, or communication between one process and a plurality of processes.
Taking communication between one-to-one processes as an example, the current process receives task indication information of the target process. The target process is a process sending messages, the current process is a process receiving messages, and the target process sends task indication information to indicate the current process to execute corresponding tasks.
It should be noted that the task processing method provided in the embodiment of the present application may also be applied to communication between one-to-many processes, and a target process may send task indication information to multiple processes simultaneously in a broadcast manner.
The current process receives first indication information input by a user, wherein the first indication information comprises a feedback node for requesting the current process to feed back an execution result to the target process. Based on the first indication information input by the user, the current process can determine the corresponding feedback node, and after the task is executed, the execution result of the task is automatically fed back to the target node, so that the user is prevented from manually compiling and running a callback function.
In a preferred embodiment of the present application, the task indication information includes an identification number ID of the first task, the second indication information, and timestamp information.
Receiving task indication information sent by a target process, wherein the task indicated by the task indication information is a first task, and the task indication information comprises an identity identification number (ID) of the first task. The target process sends out task indication information to indicate the current process to execute corresponding tasks, and each task has a unique identity identification number ID. When the communication is carried out between the processes, the corresponding first task is determined by the identification number ID of the identification task, so that the first task is executed and the result feedback is completed.
The task indication information includes second indication information, where the second indication information is information indicating whether the process executing the task performs feedback, and specifically, the target process may indicate, through the second indication information, that the current process feeds back the execution result, or does not feed back the execution result. Further, when the second indication information is an indication feedback execution result, the current process judges the specific feedback node according to the first indication information input by the user.
The task indication information comprises timestamp information, wherein the timestamp is data generated by using a digital signature technology, and a signed object comprises original file information, signature parameters, signature time and other information. A timestamp is a collection of some data, including the unique ID of the task, the accompanying data needed by the task, etc.
And step S102, according to the first indication information, determining a feedback node in the first task indicated by the task indication information, and marking the feedback node to obtain a marked second task.
The feedback node is a feedback node for the user to request feedback in the first task. And determining a first indicated task according to task indication information sent by the target process, and determining a feedback node in the first task according to the first indication information input by the user.
One task may correspond to one task operation or may correspond to a plurality of task operations. The user selects a specific feedback node through the first indication information, for example, after one task operation is completed, feedback is performed once, and subsequent operations are not fed back any more, or after all task operations are completed, feedback is performed again. That is, there is only one feedback node in the first task, and the feedback node may be adjusted according to the scenario of the first task.
And marking the feedback node to obtain a marked second task. Therefore, by executing the second task, when the marked feedback node is executed, the current process can automatically feed back the corresponding execution result, the user does not need to manually execute feedback, and manual operation is avoided.
In a preferred embodiment of the present application, as shown in fig. 2, determining a feedback node in a first task indicated by task indication information according to the first indication information includes:
step S201, determining a first task corresponding to the task indication information according to the ID.
Step S202, according to the first indication information, a feedback node in the first task is determined.
The task indication information comprises an identity identification number ID corresponding to the first task, and the first task indicated by the task indication information is determined according to the identity identification number ID. Further, according to the first indication information input by the user, a feedback node in the first task, that is, a feedback node for which the user requests to perform feedback, is determined.
In a preferred embodiment of the present application, determining a feedback node in a first task according to the first indication information includes:
and determining a subtask of which the execution result is fed back by the user indication in the first task according to the first indication information, and using a preset completion node or all completion steps of the subtask as a feedback node to obtain the feedback node.
The subtasks are specific task operations in the first task, and the first task corresponds to the subtasks. For example, if the first task is deleting a file, then the first task includes two sub-tasks, namely moving the file to the recycle bin and deleting the file in the recycle bin. The first task is to move a file, and the first task includes two sub-tasks, which are to check whether the file exists and to move the file to a designated location, respectively.
The preset completion node of the subtask may be a node for completing the preset execution of the task operation, and the preset completion node of the subtask is used as a feedback node to obtain the feedback node.
The user can indicate the current process to perform feedback once after one task operation is completed through the first indication information, or perform feedback after all task operations are completed.
For the task of deleting the file, the user can choose to perform corresponding feedback once after the sub-task of moving the file into the recycle bin is completed, or perform feedback after the first task of deleting the file is completed. For the task of moving the file, the user can choose to perform corresponding feedback when the file is not checked, or perform feedback after the file is moved when the file exists.
In one and preferred embodiment of the present application, before determining the feedback node in the first task according to the first indication information, the method further includes:
and executing the first task corresponding to the task indication information through the asynchronous function.
Marking the feedback node to obtain a marked second task, including:
and marking the feedback node by adopting the keywords of the asynchronous function to obtain a marked second task.
In the embodiment of the application, a first task corresponding to the task indication information is executed through a JavaScript asynchronous function mechanism, a step in the first task of marking the feedback node is marked through an await keyword in the JavaScript asynchronous function mechanism, and when a certain step or all steps are finished, the asynchronous function is finished through a return to obtain a marked second task.
In the JavaScript asynchronous function mechanism, it is usually stated that a function is asynchronous by async, and marked by an awake keyword to wait for the asynchronous completion. It should be noted that the await can only be used in the async function.
await is used to wait for a Promise object whose return value is the result of the processing of the Promise object. Therefore, after the operation of the await mark is completed, the current process can automatically feed back the result to the target process, and the user does not need to manually write and execute the nested callback function.
And step S103, executing the second task, and feeding back an execution result corresponding to the feedback node to the target process.
When the task marked by the await is executed by the current process, and the feedback node marked by the await is executed, the current process automatically feeds back an execution result corresponding to the feedback node to the target process due to the adoption of a JavaScript asynchronous function mechanism.
In a preferred embodiment of the present application, executing the second task, and feeding back an execution result corresponding to the feedback node to the target process includes:
and executing the second task, and feeding back an execution result corresponding to the feedback node to the target process according to the second indication information in the task indication information.
The task indication information sent by the target process comprises second indication information. The second indication information is information indicating whether the process executing the task performs feedback, and specifically, the target process may indicate that the current process feeds back the execution result or does not feed back the execution result through the second indication information. Further, when the second indication information indicates that the current process feeds back the execution result, the current process determines a specific feedback node according to the first indication information input by the user.
And executing the marked second task, and determining whether to feed back an execution result according to second indication information in the task indication information. And when the second indication information indicates that the execution result is fed back, feeding back the execution result corresponding to the feedback node to the target process according to the first indication information.
The target process receives the execution result corresponding to the feedback node of the task, and can execute other tasks without waiting for the completion of all the tasks, so that the task processing efficiency is improved. And the whole task processing and feedback process avoids manual operation, thereby avoiding errors caused by manual operation and ensuring that the task processing has higher reliability.
The task processing method provided by the embodiment of the application receives task indication information of a target process and first indication information input by a user; according to the first indication information, determining a feedback node in the first task indicated by the task indication information, and marking the feedback node to obtain a marked second task; and executing the second task, and feeding back an execution result corresponding to the feedback node to the target process.
According to the method and the device, the task executed by the process is marked through the request of the user, when the marked feedback node is executed, the corresponding execution result is automatically fed back to the target process, and the user does not need to manually write and execute the callback function. Meanwhile, the specific feedback node is controlled by the mark, so that feedback can be performed after all tasks are executed, feedback can be performed after one operation of the tasks is completed, and a target process does not need to wait.
An embodiment of the present application provides a task processing device, and as shown in fig. 3, the task processing device 30 may include:
a receiving module 301, configured to receive task indication information of a target process and first indication information input by a user;
the marking module 302 is configured to determine a feedback node in the first task indicated by the task indication information according to the first indication information, and mark the feedback node to obtain a marked second task;
and the feedback module 303 is configured to execute the second task and feed back an execution result corresponding to the feedback node to the target process.
Optionally, the task indication information includes an identification number ID of the first task, the second indication information, and timestamp information.
Optionally, the marking module 302 comprises:
the first determining module is used for determining a first task corresponding to the task indication information according to the ID;
and the second determining module is used for determining the feedback node in the first task according to the first indication information.
Optionally, the second determining module is specifically configured to determine, according to the first indication information, a subtask in which the user indicates to feed back the execution result in the first task, and use a preset completion node of the subtask as a feedback node.
Optionally, the apparatus further comprises:
the execution module is used for executing a first task corresponding to the task indication information through the asynchronous function;
the marking module 302 further includes:
and the marking submodule is used for marking the feedback node by adopting the keywords of the asynchronous function to obtain a marked second task.
Optionally, the feedback module 303 is specifically configured to execute the second task, and feed back an execution result corresponding to the feedback node to the target process according to the second indication information in the task indication information.
The task processing device provided by the embodiment of the application receives task indication information of a target process and first indication information input by a user; according to the first indication information, determining a feedback node in the first task indicated by the task indication information, and marking the feedback node to obtain a marked second task; and executing the second task, and feeding back an execution result corresponding to the feedback node to the target process.
According to the method and the device, the task executed by the process is marked through the request of the user, when the marked feedback node is executed, the corresponding execution result is automatically fed back to the target process, and the user does not need to manually write and execute the callback function. Meanwhile, the specific feedback node is controlled by the mark, so that feedback can be performed after all tasks are executed, feedback can be performed after one operation of the tasks is completed, and a target process does not need to wait.
The embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory, where the processor executes the computer program to implement the steps of the task processing method, and compared with the prior art, the method can implement: the task executed by the process is marked through the request of the user, and when the marked feedback node is executed, the corresponding execution result is automatically fed back to the target process, and the user does not need to manually write and execute the callback function. Meanwhile, the specific feedback node is controlled by the mark, so that feedback can be performed after all tasks are executed, feedback can be performed after one operation of the tasks is completed, and a target process does not need to wait.
In an alternative embodiment, an electronic device is provided, as shown in fig. 4, the electronic device 4000 shown in fig. 4 comprising: a processor 4001 and a memory 4003. Processor 4001 is coupled to memory 4003, such as via bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, and the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as transmission of data and/or reception of data. In addition, the transceiver 4004 is not limited to one in practical applications, and the structure of the electronic device 4000 is not limited to the embodiment of the present application.
The Processor 4001 may be a CPU (Central Processing Unit), a general-purpose Processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 4001 may also be a combination that performs a computational function, including, for example, a combination of one or more microprocessors, a combination of a DSP and a microprocessor, or the like.
Bus 4002 may include a path that carries information between the aforementioned components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 4002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 4, but this does not indicate only one bus or one type of bus.
The Memory 4003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical Disc storage, optical Disc storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), a magnetic Disc storage medium, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be Read by a computer, without limitation.
The memory 4003 is used for storing computer programs for executing the embodiments of the present application, and is controlled by the processor 4001 to execute. The processor 4001 is used to execute computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.
Embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, and when being executed by a processor, the computer program may implement the steps and corresponding contents of the foregoing method embodiments.
It should be understood that, although each operation step is indicated by an arrow in the flowchart of the embodiment of the present application, the implementation order of the steps is not limited to the order indicated by the arrow. In some implementation scenarios of the embodiments of the present application, the implementation steps in the flowcharts may be performed in other sequences as desired, unless explicitly stated otherwise herein. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on an actual implementation scenario. Some or all of these sub-steps or stages may be performed at the same time, or each of these sub-steps or stages may be performed at different times, respectively. In a scenario where execution times are different, an execution sequence of the sub-steps or the phases may be flexibly configured according to requirements, which is not limited in the embodiment of the present application.
The foregoing is only an optional implementation manner of a part of implementation scenarios in this application, and it should be noted that, for those skilled in the art, other similar implementation means based on the technical idea of this application are also within the protection scope of the embodiments of this application without departing from the technical idea of this application.

Claims (10)

1. A task processing method, comprising:
receiving task indication information of a target process and first indication information input by a user;
according to the first indication information, determining a feedback node in the first task indicated by the task indication information, and marking the feedback node to obtain a marked second task;
and executing the second task, and feeding back an execution result corresponding to the feedback node to the target process.
2. The task processing method according to claim 1, wherein the task indication information includes an identification number ID of the first task, second indication information, and time stamp information.
3. The task processing method according to claim 2, wherein the determining, according to the first indication information, the feedback node in the first task indicated by the task indication information includes:
determining a first task corresponding to the task indication information according to the ID;
and determining a feedback node in the first task according to the first indication information.
4. The task processing method according to claim 3, wherein the determining a feedback node in the first task according to the first indication information includes:
and determining a subtask of which the execution result is indicated by the user in the first task and fed back according to the first indication information, and taking a preset completion node of the subtask as the feedback node.
5. The task processing method according to claim 3 or 4, wherein before determining the feedback node in the first task according to the first indication information, the method further comprises:
executing a first task corresponding to the task indication information through an asynchronous function;
the marking the feedback node to obtain a marked second task includes:
and marking the feedback node by adopting the keywords of the asynchronous function to obtain a marked second task.
6. The task processing method according to claim 1, wherein the executing the second task and feeding back an execution result corresponding to the feedback node to the target process includes:
and executing the second task, and feeding back an execution result corresponding to the feedback node to the target process according to second indication information in the task indication information.
7. A task processing apparatus, characterized in that the apparatus comprises:
the receiving module is used for receiving task indication information of a target process and first indication information input by a user;
the marking module is used for determining a feedback node in the first task indicated by the task indication information according to the first indication information, and marking the feedback node to obtain a marked second task;
and the feedback module is used for executing the second task and feeding back an execution result corresponding to the feedback node to the target process.
8. The task processing apparatus according to claim 7, wherein the task indication information includes an identification number ID of the first task, second indication information, and time stamp information.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to: executing the task processing method according to any of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the task processing method according to any one of claims 1 to 6.
CN202111335206.6A 2021-11-11 2021-11-11 Task processing method and device, electronic equipment and computer readable storage medium Pending CN114064315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335206.6A CN114064315A (en) 2021-11-11 2021-11-11 Task processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335206.6A CN114064315A (en) 2021-11-11 2021-11-11 Task processing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114064315A true CN114064315A (en) 2022-02-18

Family

ID=80275678

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335206.6A Pending CN114064315A (en) 2021-11-11 2021-11-11 Task processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114064315A (en)

Similar Documents

Publication Publication Date Title
CN109033814B (en) Intelligent contract triggering method, device, equipment and storage medium
CN111596927B (en) Service deployment method and device and electronic equipment
CN111464380A (en) Method, device and system for parallel testing of multiple service items
CN110955715A (en) ERP system, data conversion method and device of target platform and electronic equipment
CN108900627B (en) Network request method, terminal device and storage medium
WO2019117767A1 (en) Method, function manager and arrangement for handling function calls
JP7122299B2 (en) Methods, apparatus, devices and storage media for performing processing tasks
CN111831408A (en) Asynchronous task processing method and device, electronic equipment and medium
CN114064315A (en) Task processing method and device, electronic equipment and computer readable storage medium
CN116303211A (en) CPU multi-core communication method and device applied to vehicle-mounted scene
CN115629809A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN110825461A (en) Data processing method and device
CN114329260A (en) Page jump method, device, terminal and storage medium
EP3783484B1 (en) Data processing method and computer device
CN112764897A (en) Method, device and system for processing task request and computer readable storage medium
CN102736949A (en) Scheduling of tasks to be performed by a non-coherent device
US20200183756A1 (en) Distributed processing system
CN112041817A (en) Method and node for managing requests for hardware acceleration by means of an accelerator device
CN114116181B (en) Distributed data analysis task scheduling system and method
CN113691434B (en) Data transmission system, method, electronic device, and storage medium
CN113704274B (en) Data reading method and electronic equipment
CN112311832B (en) Task processing method, system and node
CN116266143A (en) Coroutine management method, device, equipment and medium
CN109241066B (en) Request processing method and device
CN113391872A (en) Task processing method and device, electronic 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