You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/07/11 10:20:10 UTC

[GitHub] [incubator-superset] cscainiao commented on issue #7847: in superset==0.281 How to configure the celery asynchronous query?

cscainiao commented on issue #7847: in superset==0.281 How to configure the celery asynchronous query?
URL: https://github.com/apache/incubator-superset/issues/7847#issuecomment-510426459
 
 
   class CeleryConfig(object):
       BROKER_URL = 'redis://localhost:6379/1'
       CELERY_IMPORTS = ('superset.sql_lab','superset.tasks', 'superset.charts', 'superset.dashboards')
       CELERY_RESULT_BACKEND = 'redis://localhost:6379/1'
       CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
       CELERYD_LOG_LEVEL = 'DEBUG'
       CELERYD_PREFETCH_MULTIPLIER = 10
       CELERY_ACKS_LATE = True
   
   CELERY_CONFIG = CeleryConfig
   
   from werkzeug.contrib.cache import RedisCache
   RESULTS_BACKEND = RedisCache(
       host='localhost', port=6379,
       key_prefix="superset_results:")

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


With regards,
Apache Git Services

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