EwertonDCSilv commented on issue #10173: URL: https://github.com/apache/incubator-superset/issues/10173#issuecomment-658219113
O superset_config.py: ``` Python from cachelib.redis import RedisCache from celery.schedules import crontab SUPERSET_WEBSERVER_TIMEOUT = 120 SQLLAB_TIMEOUT = 60 ENABLE_TIME_ROTATE = True ENABLE_SCHEDULED_EMAIL_REPORTS = True EMAIL_NOTIFICATIONS = True EMAIL_REPORTS_USER = "user-admin" SMTP_HOST = "smtp.gmail.com" SMTP_STARTTLS = True SMTP_SSL = True SMTP_USER = "[email protected]" SMTP_PORT = 587 SMTP_PASSWORD = "token_pass" SMTP_MAIL_FROM = "[email protected]" WEBDRIVER_BASEURL = "http://HOST:8088/" WEBDRIVER_CONFIGURATION = { "service_log_path": '/home/user/log/geckodriver.log', "timeout": 60 } BABEL_DEFAULT_LOCALE = "pt_BR" class CeleryConfig(object): BROKER_URL = 'redis://localhost:6379/0' CELERY_IMPORTS = ( 'superset.sql_lab', 'superset.tasks', ) CELERY_RESULT_BACKEND = 'redis://localhost:6379/0' CELERYD_LOG_LEVEL = 'DEBUG' CELERYD_PREFETCH_MULTIPLIER = 10 CELERY_ACKS_LATE = True CELERY_ANNOTATIONS = { 'sql_lab.get_sql_results': { 'rate_limit': '100/s', }, 'email_reports.send': { 'rate_limit': '1/s', 'time_limit': 120, 'soft_time_limit': 150, 'ignore_result': True, }, } CELERYBEAT_SCHEDULE = { 'email_reports.schedule_hourly': { 'task': 'email_reports.schedule_hourly', 'schedule': crontab(minute=1, hour='*'), } } CELERY_CONFIG = CeleryConfig RESULTS_BACKEND = RedisCache( host='localhost', port=6379, key_prefix='superset_results') CACHE_CONFIG = { 'CACHE_TYPE': 'redis', 'CACHE_DEFAULT_TIMEOUT': 60 * 60 * 24, # 1 day default (in secs) 'CACHE_KEY_PREFIX': 'superset_results', 'CACHE_REDIS_URL': 'redis://localhost:6379/0', } ``` ---------------------------------------------------------------- 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]
