julianbei edited a comment on pull request #14274:
URL: https://github.com/apache/superset/pull/14274#issuecomment-827038300


   Here: 
https://github.com/apache/superset/pull/14274/files#diff-7ec63d52f04a74d3ad45aff0ad20600bfbc42c5fa219d84d4495c696542054c4R91
   
   Add: 
   ``` 
   class CeleryConfig(object):
     BROKER_URL = 
f"redis://:${env('REDIS_PASSWORD')}@{env('REDIS_HOST')}:{env('REDIS_PORT')}/0"
     CELERY_IMPORTS = ('superset.sql_lab', )
     CELERY_RESULT_BACKEND = 
f"redis://:${env('REDIS_PASSWORD')}@{env('REDIS_HOST')}:{env('REDIS_PORT')}/0"
     CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
   CELERY_CONFIG = CeleryConfig
   RESULTS_BACKEND = RedisCache(
         host=env('REDIS_HOST'),
         password=env('REDIS_PASSWORD'),
         port=env('REDIS_PORT'),
         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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to