-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Fix _get_count in sensor_helper.py #40795
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
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? |
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 |
816437f to
70e95dc
Compare
|
@fuatcakici can you fix static checks? |
70e95dc to
9ea32c4
Compare
|
@eladkal Static checks fixed and the tests seem to have run successfully 🙂 |
Lee-W
left a comment
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.
left one nit. overall looks good. but would be nice to have another pair of eyes to look into it
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)
9ea32c4 to
8a7d5c6
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)
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)
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)
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.rstor{issue_number}.significant.rst, in newsfragments.