Add TargetQueryValue to KEDA Autoscaler (#9748)
Co-authored-by: Daniel Imberman <daniel@astronomer.io>
This commit is contained in:
Родитель
ecf2f8499b
Коммит
0faa06ed9b
|
@ -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 }}
|
||||
|
|
Загрузка…
Ссылка в новой задаче