-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Results backend isn't configured" with Celery DynamoDB backend #3557
Comments
Maybe this is just basic, but just occurred to me now. Is it the case that although Celery "writes" with one backend , Superset use a different "werkzeug" Cache object to retrieve from same location, and therefore I would have to implement a BaseCache derived class to read from DynamoDB myself ? |
The "results backend" is different from the The results backend is used by the worker to store the query results. At Airbnb we use the S3Cache lib |
Thanks. I managed to get it working through S3, but I'm actually curious about "actually we do not use the CELERY_RESULT_BACKEND". I understand that you may not use it in Superset, but if I configure it in Celery configuration object, doesn't Celery store anyway its state and results on this backend (even if superset doesn't use it ?) Thx |
It will if the @celery.task-decorated function does return something, which shouldn't be the case in our case. The way we use celery is we initiate the async task from a web request scope and essentially give up on it. The initiator (web server) doesn't expect getting result in the scope where its called. |
We may or may not use the celery results backend in the future though. |
Thanks I made it work in the end, although value is limited, agree. |
Nice |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.20.0 from pypi
Expected results
Successful completion of async query
Actual results
Get "Results backend isn't configured." in UI, no error log on console. Celery processing seems successfull
Steps to reproduce
The following is my Celery configuration on superset_config.py.
All the AWS configuration seems to be working ok:
a) I see the request being deposited on queue
b) I see the worker executing the query and queue becoming empty
c) I see the result of the query being appended to DynamoDB table
Still after everything seeming to work ok, no error on console, I get "Results backend isn't configured" on UI.
The text was updated successfully, but these errors were encountered: