主权项 |
1. A method for controlling tasks performed by a computing system, the method including:
storing a data structure for a graph-based program specification in a data storage system, the graph-based program specification including a plurality of nodes representing tasks, and the graph-based program specification including directed edges between nodes that specify at least a partial ordering among a plurality of tasks represented by the nodes; and executing, using at least one processor, a program specified by the graph-based program specification, the executing including:
executing a first subroutine corresponding to a first task, the first subroutine including a first task section for performing the first task;storing state information indicating a state of the first task selected from a set of possible states that includes: a pending state in which the first task section is waiting to perform the first task, and a suppressed state in which the first task section has been prevented from performing the first task; andexecuting a second subroutine corresponding to a second task, the second subroutine including a second task section for performing the second task, and a control section that controls execution of the second task section based at least in part on the state of the first task indicated by the stored state information. |