Repository navigation
Conversation
uranusjr
reviewed
Jul 12, 2024
| # create the associated task instances | ||
| # state is None at the moment of creation | ||
| run.verify_integrity(session=session) | ||
| run.verify_integrity(session=session, run_type=run_type) |
Member
There was a problem hiding this comment.
Instead of passing in run_type and do a check inside the function, this should just be a flag to skip task_filter.
Contributor
Author
There was a problem hiding this comment.
changed, can't completely skip task_filter otherwise it doesn't remove tasks properly but even with my current solution it still fails one test case
Contributor
Author
There was a problem hiding this comment.
it looks like the test depends on task.start_date <= self.execution_date, which gets overridden
artilexx
marked this pull request as draft
July 18, 2024 01:57
pravo23
reviewed
Jul 28, 2024
Comment on lines
+342
to
+345
| if run_type == DagRunType.MANUAL: | ||
| run.verify_integrity(session=session, skip_task_filter=True) | ||
| else: | ||
| run.verify_integrity(session=session, skip_task_filter=False) |
There was a problem hiding this comment.
less code?
Suggested change
| if run_type == DagRunType.MANUAL: | |
| run.verify_integrity(session=session, skip_task_filter=True) | |
| else: | |
| run.verify_integrity(session=session, skip_task_filter=False) | |
| run.verify_integrity(session=session, run_type == DagRunType.MANUAL) |
Contributor
|
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. |
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue reference: #38513
task_filter()would filter out tasks when manually triggering tasks with a futurestart_date, causing them to not run while the dag would be marked as a success. Created a condition to bypass the filter ifrun_typeis MANUALRead 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.