in superset==0.281 How to configure the celery asynchronous query?
Issue-Label Bot is automatically applying the label #enhancement to this issue, with a confidence of 0.62. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
We would appreciate it if you could provide us with more info about this issue/pr! Please do not leave the title or description empty.
this is my config:
`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:")`
i run this command celery worker --app=superset.tasks.celery_app:app --pool=prefork -Ofair -c 4 but show 'no model named superset.tasks'
superset master branch have the model superset.tasks, but other branch have no model named superset.tasks
how can i start the celery?
Do you have superset installed on your environment?
command:
celery worker --app=superset.tasks.celery_app:app --pool=prefork -Ofair -c 4
celery worker --app=superset.sql_lab:celery_app --pool=prefork -Ofair -c 4
I run this command, it's work
If it works, can you close the issue?