From 0faa06ed9b010eb3d2c3a366d68649526f0bf2ad Mon Sep 17 00:00:00 2001 From: Daniel Imberman Date: Fri, 10 Jul 2020 07:48:17 -0700 Subject: [PATCH] Add TargetQueryValue to KEDA Autoscaler (#9748) Co-authored-by: Daniel Imberman --- chart/templates/workers/worker-kedaautoscaler.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/chart/templates/workers/worker-kedaautoscaler.yaml b/chart/templates/workers/worker-kedaautoscaler.yaml index 891afbf788..4effd8e62b 100644 --- a/chart/templates/workers/worker-kedaautoscaler.yaml +++ b/chart/templates/workers/worker-kedaautoscaler.yaml @@ -42,6 +42,7 @@ spec: triggers: - type: postgresql metadata: + targetQueryValue: "1" connection: AIRFLOW_CONN_AIRFLOW_DB query: "SELECT ceil(COUNT(*)::decimal / 16) FROM task_instance WHERE state='running' OR state='queued'" {{- end }}