leorochael closed pull request #4631: Fix flower broker configuration
URL: https://github.com/apache/incubator-superset/pull/4631
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/superset/cli.py b/superset/cli.py
index 48db7394b9..6e1bc8a946 100755
--- a/superset/cli.py
+++ b/superset/cli.py
@@ -309,10 +309,18 @@ def flower(port, address):
 
     Celery Flower is a UI to monitor the Celery operation on a given
     broker"""
-    BROKER_URL = celery_app.conf.BROKER_URL
+    if not celery_app.conf.BROKER_URL:
+        print(
+            Fore.YELLOW +
+            'No Celery broker found in your superset configuration.\n'
+            'Please provide a CELERY_CONFIG setting, including a BROKER_URL.\n'
+            'Not starting Celery Flower.' +
+            Style.RESET_ALL,
+        )
+        return
     cmd = (
         'celery flower '
-        '--broker={BROKER_URL} '
+        '-A superset.cli.celery_app '
         '--port={port} '
         '--address={address} '
     ).format(**locals())


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to