假设我有一个具有以下依赖结构的任务
class ParentTask(luigi.Task):
def requires(self):
return [ChildTask(classLevel=x) for x in self.class_level_list]
def run(self):
yadayda
子任务自己运行良好。父级正确检查所有子级任务的完成状态。然而,当第一个子任务完成时,调度程序将父任务标记为已完成。带有以下消息:
Scheduled 15 tasks of which:
* 3 ran successfully:
- 1 CleanRecord(...)
- 1 EstimateQuestionParameter(classLevel=6, qdt=2016-04-19, subject=english)
- 1 GetLog(classLevel=6, qdt=2016-04-19, subject=english)
* 12 were left pending, among these:
* 12 were left pending because of unknown reason:
- 5 EstimateQuestionParameter(classLevel=1...5, qdt=2016-04-19, subject=english)
- 5 GetLog(pool=None, classLevel=1...5, qdt=2016-04-19, subject=english)
- 1 UpdateQuestionParameter(qdt=2016-04-19, lastQdt=2016-03-23, subject=english, isInit=False)
- 1 UpdateQuestionParameterBuffer(qdt=2016-04-19, subject=english, src_table=edw.edw_behavior_question_record_exam_new)
This progress looks :) because there were no failed tasks or missing external dependencies