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

KEDA task count query should ignore k8s queue #17433

Merged
merged 3 commits into from
Aug 6, 2021

Conversation

dstandish
Copy link
Contributor

CeleryKubernetesExecutor lets us use both celery and kubernetes executors.

KEDA lets us scale down to zero when there are no celery tasks running.

The existing KEDA query doesn't look at task queue so it wil scale up to 1 if there is
1 k8s task and 0 celery tasks.

We can prevent this from happening by ignoring the kubernetes queue in the KEDA query.

CeleryKubernetesExecutor lets us use both celery and kubernetes executors.
KEDA lets us scale down to zero when there are no celery tasks running.
If we have no celery tasks running, and we run a k8s task, then KEDA will
launch a worker even though there are still no celery tasks.  We can prevent
this from happening by ignoring the kubernetes queue in the KEDA query.
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Aug 6, 2021

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Aug 6, 2021
@jedcunningham jedcunningham added this to the Airflow Helm Chart 1.2.0 milestone Aug 6, 2021
@jedcunningham jedcunningham merged commit 3136f22 into apache:main Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:helm-chart Airflow Helm Chart okay to merge It's ok to merge this PR as it does not require more tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants