Skip to content

Instantly share code, notes, and snippets.

@acmiyaguchi
Last active March 14, 2017 21:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acmiyaguchi/9c8086939051b4bec8e5d413066af934 to your computer and use it in GitHub Desktop.
Save acmiyaguchi/9c8086939051b4bec8e5d413066af934 to your computer and use it in GitHub Desktop.
[Superset Testing] Configuration File for Superset
SUPERSET_WEBSERVER_PORT = 9999
DRUID_IS_ACTIVE = False
redis_url = "amiyaguchi-001.bolxr4.0001.usw2.cache.amazonaws.com"
redis_port = 6379
redis_conn = "redis://{}:{}".format(redis_url, redis_port)
class CeleryConfig(object):
BROKER_URL = redis_conn
CELERY_IMPORTS = ('superset.sql_lab', )
CELERY_RESULT_BACKEND = redis_conn
CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
CELERY_CONFIG = CeleryConfig
# An instantiated derivative of werkzeug.contrib.cache.BaseCache
# if enabled, it can be used to store the results of long-running queries
# in SQL Lab by using the "Run Async" button/feature
from werkzeug.contrib.cache import RedisCache
RESULTS_BACKEND = RedisCache(redis_url, redis_port)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment