Skip to content
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

Use sane Celery defaults to prevent tasks from being delayed #3267

Merged
merged 1 commit into from
Aug 10, 2017

Conversation

saguziel
Copy link
Contributor

@saguziel saguziel commented Aug 9, 2017

@mistercrunch

Using these three settings (of which two are provided in the config to show it's recommended), will make Celery scheduling "fair", which reduces latency which is what is wanted when we have long running tasks (note that the defaults prioritize throughput in the case with high volumes of short-running tasks)

Still need to test this

@coveralls
Copy link

coveralls commented Aug 9, 2017

Coverage Status

Coverage remained the same at 69.301% when pulling 5896dd3726661b8c52f17d344d8997420f4b0329 on saguziel:aguziel-celery-fix-defaults into 327c052 on apache:master.

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notice how our pylint --errors caught a hard-to-catch-on-review bug on Travis?!

Would definitely recommend setting up something similar for Airflow. pylint does some deep analysis of the code and will catch logic and type errors.

superset/cli.py Outdated
@@ -194,7 +194,7 @@ def worker(workers):
celery_app.conf.update(
CELERYD_CONCURRENCY=config.get("SUPERSET_CELERY_WORKERS"))

worker = celery_worker.worker(app=celery_app)
worker = app.Worker(optimization='fair')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app in this context is the Flask app, not celery_app

@coveralls
Copy link

coveralls commented Aug 10, 2017

Coverage Status

Coverage remained the same at 69.315% when pulling 8e90435 on saguziel:aguziel-celery-fix-defaults into 57421d1 on apache:master.

@mistercrunch mistercrunch merged commit 08b7e89 into apache:master Aug 10, 2017
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Aug 10, 2017
mistercrunch pushed a commit that referenced this pull request Aug 11, 2017
* split reducer logic for ExploreViewContainer

* fix saveModal component and unit tests

* revert changes in SaveModal_spec.
will make another commit just to improve test coverage for SaveModal component.

* improve test coverage for explore view components:
- SaveModal component
- URLShortLinkButton

* remove comment-out code

* [bugfix] wrong 'Cant have overlap between Series and Breakdowns' (#3254)

* [explore] make edit datasource a basic link (#3244)

* Relying on FAB for font-awesome.min.css (#3261)

* Modernize SQLA pessimistic handling (#3256)

Looks like SQLAlchemy has redefined the best practice around
pessimistic connection handling.

* [webpack] break CSS and JS files while webpackin' (#3262)

* [webpack] break CSS and JS files while webpackin'

* cleaning up some templates

* Fix pylint issue

* import logging (#3264)

* [bugfix] preserve order in groupby (#3268)

Recently in
4c3313b
I introduced an issue where the order of groupby fields might change.

This addresses this issue and will preserve ordering.

* Explicitly add Flask as dependancy (#3252)

* Use sane Celery defaults to prevent tasks from being delayed (#3267)

* Improve the chart type of Visualize in sqllab (#3241)

* Improve the chart type of Visualize in sqllab & Add some css & Fix the link address in the navbar

* add vizTypes filter

* Set default ports Druid (#3266)

For Druid set the default port for the broker and coordinator.

* [explore] Split large reducer logic in ExploreViewContainer (#3088)

* split reducer logic for ExploreViewContainer

* fix saveModal component and unit tests

* revert changes in SaveModal_spec.
will make another commit just to improve test coverage for SaveModal component.

* remove comment-out code

* fix merge confilicts
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.1 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants