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 2021/09/30 05:26:40 UTC

[airflow] branch main updated: Bugfix: Don't warn on using ``LocalExecutor`` (#18625)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0199c5d  Bugfix: Don't warn on using ``LocalExecutor`` (#18625)
0199c5d is described below

commit 0199c5d51aa7d34b7e3e8e6aad73ab80b6018e8b
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Thu Sep 30 10:56:22 2021 +0530

    Bugfix: Don't warn on using ``LocalExecutor`` (#18625)
    
    The webserver showed the following error when using ``LocalExecutor``:
    
    ```
    Do not use SequentialExecutor in production. Click here for more information.
    
    ```
---
 airflow/www/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/www/views.py b/airflow/www/views.py
index 8b1ea77..fffd1d8 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -464,7 +464,7 @@ class AirflowBaseView(BaseView):
 
     if not conf.getboolean('core', 'unit_test_mode'):
         extra_args['sqlite_warning'] = settings.Session.bind.dialect.name == 'sqlite'
-        extra_args['sequential_executor_warning'] = conf.get('core', 'executor') == 'LocalExecutor'
+        extra_args['sequential_executor_warning'] = conf.get('core', 'executor') == 'SequentialExecutor'
 
     line_chart_attr = {
         'legend.maxKeyLength': 200,