-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Fix _get_count in sensor_helper.py #40795
base: main
Are you sure you want to change the base?
Fix _get_count in sensor_helper.py #40795
Conversation
d5aab13
to
df159e0
Compare
df159e0
to
8ee2f7e
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
@pankajastro @nathadfield Can you check if this fix still needed? |
@nathadfield yes, I was also waiting for that issue to be fixed, so thanks! But basically here, there are no issues if there is only one execution date set for the |
@fuatcakici Ok, well, this is your PR but it originally had some issues. Can I suggest that you rebase it and then this should trigger the tests again? |
8ee2f7e
to
46c0fa8
Compare
@nathadfield Rebased 🙂 |
@fuatcakici Great! It looks like all the tests passed too although I don't have the ability to merge. Maybe @eladkal or @pankajastro might be able to oblige? |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions. |
@fuatcakici can you rebase and resolve conflicts? |
46c0fa8
to
39e5061
Compare
Fixes an overlooked part of apache#39616 Currently, the _get_count function in sensor_helper.py does not return the number of the Dag Runs where all the sub tasks in a task group for all the datetimes given in the dttm_filter have succeeded, but instead just returns 1 if they are all complete. However, this is not the expected behaviour wherever this function is used (namely in the run function in WorkflowTrigger and poke function in ExternalTaskSensor)
39e5061
to
83b1eb6
Compare
@eladkal Rebased once again and all the tests succeeded 🙂 There are of course many changes happening in real time so it is virtually impossible for the branch to stay constantly up-to-date |
Since @nathadfield confirmed it's a bug fix, I am happy to merge once you add a unit test to cover this change. This is needed to making sure we won't have future regression |
Fixes an overlooked part of #39616
Currently, the _get_count function in sensor_helper.py does not return the number of the Dag Runs where all the sub tasks in a task group for all the datetimes given in the dttm_filter have succeeded, but instead just returns 1 if they are all complete. However, this is not the expected behaviour wherever this function is used (namely in the run function in WorkflowTrigger and poke function in ExternalTaskSensor)
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.