New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to except_skip None on BranchPythonOperator #20411
Allow to except_skip None on BranchPythonOperator #20411
Conversation
6bdda79
to
a864a38
Compare
df2091c
to
cfe8e63
Compare
cfe8e63
to
89671b9
Compare
@eladkal could you re-review this PR , than you again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m personally skeptical to this since it’s much too easy for a user to accidentally return None from a function and cause tasks to unintentionally not run. But I guess this is a subjective issue and not a designe is objectively superior.
828ba69
to
662ee9e
Compare
93f620d
to
c3b95a3
Compare
@uranusjr could you re-review pls , thank you |
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
c3b95a3
to
8277776
Compare
I just rebased |
8277776
to
073865e
Compare
Can you please explain the behavior of returning None in the docs? (I'm not sure if we have a designated doc specifically for this operator) airflow/docs/apache-airflow/concepts/dags.rst Line 317 in db76f0b
|
4012f06
to
2fdbf3e
Compare
Co-authored-by: eladkal <45845474+eladkal@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@eladkal can we merge ? thanks |
Add a test on skip_all_except and also allow None and not only empty iterable object.
because currently this code
fail with :
Only an empty iterable is currently allow