pipelineState holds a list of pipeline tasks with resolved conditions and pipeline resources. pipelineState
also holds a taskRun
for each pipeline task after the taskRun
is created.
candidateTasks contains a list of pipeline tasks that can be scheduled next. This list of candidates is derived based on the successfully finished tasks. A task is considered as candidate if its all parents have finished executing successfully. Also candidates are initialized with all root/s of DAG tasks.
GetNextTasks returns a list of tasks which should be executed next. This list is derived based on candidateTasks. GetNextTasks returns a list of candidates for which pipelineState
does not have any taskRun
or a list of failed