Repository navigation
Making the dependency engine more flexible - #261
Conversation
|
All of them are more specific than all_done, correct? E.g. one_success wouldn't fire off the task as soon as the first upstream tasks completes successfully, but only after all are completed and at least one completed successfully? |
|
it all refers to directly upstream task (direct parents) |
There was a problem hiding this comment.
Each func.sum(...) statement should be wrapped in func.coalesce(func.sum(...), 0) for Py3 compatibility. Otherwise func.sum() can return None if there are no rows, and that might create type errors because these results are treated as ints later.
|
I think this functionality is great -- it adds so much versatility. @azaroth42 makes a good point. If a task has two upstream tasks and the trigger is (Aside -- maybe |
|
I rebased and addressed the coalesce py3 issue |
|
|
Making the dependency engine more flexible
New
BaseOperatorparameter enables task triggers beyond "all directly upstream tasks succeeded", here are the new options: