Skip to content

Commit

Permalink
[apache#2] Fix CeleryConfig indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohanyu committed Jun 8, 2017
1 parent 6bff423 commit 30a6a33
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions superset/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,12 @@

# Example:
class CeleryConfig(object):
BROKER_URL = 'redis://localhost:6379/0'
CELERY_IMPORTS = ('superset.sql_lab', )
CELERY_RESULT_BACKEND = 'redis://localhost:6379/1'
CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
CELERY_TASK_PROTOCOL = 1
BROKER_URL = 'redis://localhost:6379/0'
CELERY_IMPORTS = ('superset.sql_lab', )
CELERY_RESULT_BACKEND = 'redis://localhost:6379/1'
CELERY_ANNOTATIONS = {'tasks.add': {'rate_limit': '10/s'}}
CELERY_TASK_PROTOCOL = 1

CELERY_CONFIG = CeleryConfig

# CELERY_CONFIG = None
Expand Down

0 comments on commit 30a6a33

Please sign in to comment.