You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/08/15 16:06:40 UTC
[airflow] 04/28: [AIRFLOW-5897] Allow setting -1 as pool slots
value in webserver (#6550)
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 65a7b1b4031630676f2ceb0897190cec996b89b4
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Fri Aug 14 16:13:34 2020 +0200
[AIRFLOW-5897] Allow setting -1 as pool slots value in webserver (#6550)
This is a follow-up to 5d9216201b061cb35c9e349da0c4bb4c22c774e0.
The original fix only applied to the www UI not the www_rbac one.
(cherry picked from commit 03a46ddb0919d5327471a9442f961cf0636c1cb1)
---
airflow/www_rbac/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/www_rbac/views.py b/airflow/www_rbac/views.py
index 96d4079..f098b25 100644
--- a/airflow/www_rbac/views.py
+++ b/airflow/www_rbac/views.py
@@ -2382,7 +2382,7 @@ class PoolModelView(AirflowModelView):
validators_columns = {
'pool': [validators.DataRequired()],
- 'slots': [validators.NumberRange(min=0)]
+ 'slots': [validators.NumberRange(min=-1)]
}