Skip to content
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

[CP][EWT-797] Fixing max_active_runs to control the number of runs running… #74

Merged
merged 2 commits into from
Aug 25, 2021

Conversation

shrutimantri
Copy link

@shrutimantri shrutimantri commented Aug 24, 2021

… simultaneously

closes: EWT-797
related: EWT-797

I referred the git issue: apache#9975 which in its first line itself tells that the issue that happens related to max_active_runs in 1.10.14 is a separate one and is discussed here: apache#13802

This issue was resolved but the fix went in 1.10.15 version. I took the same fix: https://github.com/apache/airflow/pull/13803/files and have applied it in this commit (5e87232).

The resolution worked and I did the testing on gke devel cluster: https://airflow-smantri--devel--etl-workflow-users.service.qus1.twitter.biz/admin/airflow/tree?dag_id=bq_dal_integration_dag

Prior to the fix, if the max_active_runs = 1, and if you start more than 1 run simultaneously, all of them will start their tasks, and would not honour max_active_runs configuration.

With this fix, if the max_active_runs = 1, and one of the run is going on while the second run is triggered, the second run starts with the start_date being the time when it is triggered, but the second run won't start any of its tasks until the prior run is complete.

@shrutimantri shrutimantri changed the title EWT-797: Fixing max_active_runs to control the number of runs running… [CP][EWT-797][AIRFLOW-13802] Fixing max_active_runs to control the number of runs running… Aug 24, 2021
@vshshjn7
Copy link
Collaborator

I don't see AIRFLOW-13802 Jira.
Looks like this is issue#13802.

Is this tested?

@shrutimantri
Copy link
Author

Yes, its issue#13802. Yes, I have tested it on gke devel cluster.

@shrutimantri shrutimantri changed the title [CP][EWT-797][AIRFLOW-13802] Fixing max_active_runs to control the number of runs running… [CP][EWT-797] Fixing max_active_runs to control the number of runs running… Aug 24, 2021
@vshshjn7
Copy link
Collaborator

lgtm

@abhishekbafna
Copy link

@shrutimantri Can you please bump the version as well?

@shrutimantri
Copy link
Author

@shrutimantri Can you please bump the version as well?

Done

@abhishekbafna abhishekbafna merged commit aa7ed51 into twitter-forks:1.10.14+twtr Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants