CPC G06F 9/4881 (2013.01) [G06F 9/3838 (2013.01)] | 17 Claims |
1. A task processing method, comprising:
generating, by a first processing apparatus, a plurality of tasks;
determining task description information of the plurality of tasks, wherein the task description information of the plurality of tasks indicates a dependency relationship between the plurality of tasks, and that when any two tasks of the plurality of tasks have the dependency relationship, processing of one task needs to wait for a processing result of the other task;
sending, by the first processing apparatus, an instruction to a second processing apparatus, wherein the instruction comprises the plurality of tasks and the task description information of the plurality of tasks, and wherein the second processing apparatus is configured to execute the plurality of tasks based at least in part on the dependency relationship; and
returning, by the second processing apparatus, a notification message to the first processing apparatus after determining that a depended task of the plurality of tasks or a dependent task of the plurality of tasks has been processed, wherein the notification message indicates that the depended task or the dependent task has been processed.
|