-
Notifications
You must be signed in to change notification settings - Fork 16.4k
[Airflow-434] Move check for max_runs to only affect creation of new DagRun #1763
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
Conversation
|
Hi! I understand this problem this fix is meant to address. What you are suggesting is in fact the way things worked a few weeks ago.. if merged, we will be back to an issue that occurs when a "clear" operation is called - which results in a lot of dag runs being scheduled at one time and not honoring max_dag_runs. I need to spend some time looking at this today so that we can support both. The issue seems to be the way dags are currently prioritized... in a cross-dag run order over a in-dag run order. |
Current coverage is 65.51% (diff: 0.00%)@@ master #1763 diff @@
==========================================
Files 142 142
Lines 9883 9882 -1
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 6469 6474 +5
+ Misses 3414 3408 -6
Partials 0 0
|
|
@r39132 I don't believe this undoes the fix in #1716. It continues to call It may not solve the cross-dag vs in-dag run ordering problem, and I don't know that it will prevent a backfill from exceeding the number of concurrent DAG runs. Still, it's progress from stalling ALL processing for a DAG once its max_runs is reached. |
|
Part of the problem is that DAGs are created as The Is it possible to add a |
|
@jbhsieh Sorry for the long delay in getting to this. I like your approach and we should be able to add a concept of queued to dag runs as well. Can you update your PR with your final solution and ping me to review/test/merge? It should handle the case case of a large number of cleared dags that need to be re-run but also adhere to the max_run limit. Please add a test for this. |
|
Also, since this is part of cold case PR clean-ups, I need an ETA for a fix? I need a response within the next 5 days. |
|
@r39132 I've moved on to a different project, and don't know that I will have much time to work on this for the remainder of this calendar year. sorry. |
|
No worries - reopen when you have time! We will be in a better position in the new year to quickly respond PRs. |
|
Closing for now |
Dear Airflow Maintainers,
Please accept this PR that addresses the following issues:
Testing Done:
Thanks.