Skip to content

Initial implementation of Celery support for Figures devsite - #215

Merged
johnbaldwin merged 8 commits into
masterfrom
john/devsite-celery
Jul 2, 2020
Merged

johnbaldwin merged 8 commits into
masterfrom
john/devsite-celery

Conversation

@johnbaldwin

@johnbaldwin johnbaldwin commented May 19, 2020

Copy link
Copy Markdown
Contributor

Please refer to the README.md file in the devsite directory for
instructions

  • This commit adds a docker compose file with support files to start a
    RabbitMQ docker container.
  • Devsite is updaed to support Celery tasks running in this docker
    container
  • Conditional support for results backend is implemented, but not
    working. Currently troubleshooting this
  • Succesfully tested with running Figures populate_figures_metrics Django
    management command. Figures daily metrics models get created with data
  • Added a new Django management command in Devsite to do a system check.
    This runs a "system check" task in devsite/celery.py

NOTE

Although Figures devsite can now run Figures pipeline tasks asynchronously, there's still some debugging work to do to get the results backend working. So created as a draft PR because

Please refer to the README.md file in the devsite directory for
instructions

* This commit adds a docker compose file with support files to start a
RabbitMQ docker container.
* Devsite is updaed to support Celery tasks running in this docker
container
* Conditional support for results backend is implemented, but not
working. Currently troubleshooting this
* Succesfully tested with running Figures `populate_figures_metrics` Django
management command. Figures daily metrics models get created with data
* Added a new Django management command in Devsite to do a system check.
This runs a "system check" task in `devsite/celery.py`
* Added `django-celery` to devsite and Hawthorn multisite requirements
file
* Added the Docker commands as Figures Makefile targets
* Updated devsite/README.md instructions
* Added Celery results support using `django-celery` and the Django
devsite database as the backend
@johnbaldwin
johnbaldwin force-pushed the john/devsite-celery branch from c91620e to c05ef3c Compare June 27, 2020 17:37
@johnbaldwin
johnbaldwin marked this pull request as ready for review June 27, 2020 17:38
@codecov-commenter

codecov-commenter commented Jun 27, 2020

Copy link
Copy Markdown

Codecov Report

Merging #215 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #215      +/-   ##
==========================================
+ Coverage   91.29%   91.30%   +0.01%     
==========================================
  Files          38       39       +1     
  Lines        1953     1956       +3     
==========================================
+ Hits         1783     1786       +3     
  Misses        170      170              
Impacted Files Coverage Δ
devsite/devsite/__init__.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38724c2...5a1cb32. Read the comment docs.

@johnbaldwin

Copy link
Copy Markdown
Contributor Author

@melvinsoft @OmarIthawi Finally wrapped this up. I wanted to get the instructions in devsite/README.md and the Makefile targets set up before changing state from draft to full review

@@ -0,0 +1,10 @@
version: '3.5'
services:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do you plan to add Figures here as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@johnbaldwin
johnbaldwin merged commit 1565694 into master Jul 2, 2020
@johnbaldwin
johnbaldwin deleted the john/devsite-celery branch July 2, 2020 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants