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 84e52e84484b8f8f9a1e6e8c3925d474fae7c897 Author: Jarek Potiuk <[email protected]> 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)] }
