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

Setting max_tis_per_query to 0 now correctly removes the limit #13512

Merged
merged 2 commits into from
Jan 18, 2021

Conversation

ashb
Copy link
Member

@ashb ashb commented Jan 6, 2021

This config setting is documented as 0==unlimited, but in my HA
scheduler work I rewrote the code that used this and mistakenly didn't
keep this behaviour.

This re-introduces the correct behaviour and also adds a test so that it
is stays working in the future.

Fixes #13325


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Jan 6, 2021
@ashb ashb added full tests needed We need to run full set of tests for this PR to merge and removed full tests needeed labels Jan 6, 2021
@ashb ashb requested review from kaxil and potiuk January 6, 2021 11:49
@github-actions
Copy link

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason.

@kaxil kaxil force-pushed the max-active-tis-per-query-0-fix branch from 8904308 to 0cb9c94 Compare January 14, 2021 14:17
@github-actions
Copy link

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason.

@kaxil kaxil force-pushed the max-active-tis-per-query-0-fix branch from 0cb9c94 to 67a07a9 Compare January 14, 2021 18:25
@github-actions
Copy link

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason.

@kaxil kaxil force-pushed the max-active-tis-per-query-0-fix branch from 67a07a9 to cb1d97a Compare January 14, 2021 22:40
@github-actions
Copy link

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason.

This config setting is documented as 0==unlimited, but in my HA
scheduler work I rewrote the code that used this and mistakenly didn't
keep this behaviour.

This re-introduces the correct behaviour and also adds a test so that it
is stays working in the future.
@kaxil kaxil force-pushed the max-active-tis-per-query-0-fix branch from cb1d97a to 53d0b1f Compare January 18, 2021 15:54
@kaxil kaxil force-pushed the max-active-tis-per-query-0-fix branch from 53d0b1f to 93dc138 Compare January 18, 2021 18:35
@kaxil kaxil merged commit 31d31ad into apache:master Jan 18, 2021
@kaxil kaxil deleted the max-active-tis-per-query-0-fix branch January 18, 2021 21:24
kaxil pushed a commit that referenced this pull request Jan 21, 2021
)

This config setting is documented as 0==unlimited, but in my HA
scheduler work I rewrote the code that used this and mistakenly didn't
keep this behaviour.

This re-introduces the correct behaviour and also adds a test so that it
is stays working in the future.

Co-authored-by: Kaxil Naik <[email protected]>
(cherry picked from commit 31d31ad)
kaxil pushed a commit to astronomer/airflow that referenced this pull request Apr 12, 2021
…che#13512)

This config setting is documented as 0==unlimited, but in my HA
scheduler work I rewrote the code that used this and mistakenly didn't
keep this behaviour.

This re-introduces the correct behaviour and also adds a test so that it
is stays working in the future.

Co-authored-by: Kaxil Naik <[email protected]>
(cherry picked from commit 31d31ad)
(cherry picked from commit 1a848e8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Scheduler including HA (high availability) scheduler full tests needed We need to run full set of tests for this PR to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

max_tis_per_query=0 leads to nothing being scheduled in 2.0.0
4 participants