Repository navigation
Conversation
Member
There was a problem hiding this comment.
i think you could just have a single function get_sql_results decorated with @celery_app.task, and you can call it with .async where needed (on an alternative endpoint)
5 tasks done
Member
There was a problem hiding this comment.
I wouldn't put this in module scope, it will print on import.
Member
Author
There was a problem hiding this comment.
haven't cleaned up after debugging, sorry.
This is really just a mock up written in React to try different components. It could become scaffolding to build a prototype, or not.
Member
There was a problem hiding this comment.
That would assume waiting for the table which isn't what we want to do here, we can remove 1302 and 1303
Member
Author
There was a problem hiding this comment.
Updated todo to be:
# TODO(bkyryliuk): add query id to the response and implement the endpoint to poll the status and results.
zhaoyongjie
pushed a commit
to zhaoyongjie/incubator-superset
that referenced
this pull request
Nov 17, 2021
1. move translation, connection, query to core (apache#729) 2. update encodable to remove formatter inter-dependency (apache#744) 3. move number-format and time-format to core (apache#730) 4. move superset-ui/dimension to core (apache#732) 5. move superset-ui/color to core (apache#755) 6. move superset-ui/style to core (apache#756) 7. move superset-ui/validator to core (apache#757) 8. move superset-ui/chart-composition to core (apache#759) 9. move superset-ui/chart to core (apache#760)
zhaoyongjie
pushed a commit
to zhaoyongjie/incubator-superset
that referenced
this pull request
Nov 24, 2021
1. move translation, connection, query to core (apache#729) 2. update encodable to remove formatter inter-dependency (apache#744) 3. move number-format and time-format to core (apache#730) 4. move superset-ui/dimension to core (apache#732) 5. move superset-ui/color to core (apache#755) 6. move superset-ui/style to core (apache#756) 7. move superset-ui/validator to core (apache#757) 8. move superset-ui/chart-composition to core (apache#759) 9. move superset-ui/chart to core (apache#760)
zhaoyongjie
pushed a commit
to zhaoyongjie/incubator-superset
that referenced
this pull request
Nov 25, 2021
1. move translation, connection, query to core (apache#729) 2. update encodable to remove formatter inter-dependency (apache#744) 3. move number-format and time-format to core (apache#730) 4. move superset-ui/dimension to core (apache#732) 5. move superset-ui/color to core (apache#755) 6. move superset-ui/style to core (apache#756) 7. move superset-ui/validator to core (apache#757) 8. move superset-ui/chart-composition to core (apache#759) 9. move superset-ui/chart to core (apache#760)
zhaoyongjie
pushed a commit
to zhaoyongjie/incubator-superset
that referenced
this pull request
Nov 26, 2021
1. move translation, connection, query to core (apache#729) 2. update encodable to remove formatter inter-dependency (apache#744) 3. move number-format and time-format to core (apache#730) 4. move superset-ui/dimension to core (apache#732) 5. move superset-ui/color to core (apache#755) 6. move superset-ui/style to core (apache#756) 7. move superset-ui/validator to core (apache#757) 8. move superset-ui/chart-composition to core (apache#759) 9. move superset-ui/chart to core (apache#760)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Current change adds ability to execute the SQL queries on the celery worker.
More info about celery can be found here:
Worker can be started via command
caravel workerCelery is configured in the config.py and by default it is turned off. (
CELERY_CONFIG = None)Fixed some lint issues in the tests.
Tested:
CELERY_CONFIG = Noneand withTask is passed and executed:

Query works for both cases:

Reviewers: