forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
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
2592/separate celery #2773
Open
George-Hudson
wants to merge
46
commits into
develop
Choose a base branch
from
2592/separate-celery
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
2592/separate celery #2773
Changes from 37 commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
9c36091
WIP updated terraform and started celery setup.
fc082b5
WIP
f14c946
creating redis services, separate celery instance, and new connection…
0f6bc5c
Merge branch 'develop' into 2592/separate-celery
b0d581e
update pipeline and deploy script logic to deploy celery and make mor…
5a99192
removed deploy strategy command from pipeline since it's now in scripts
9e4e926
fixed spacing in variables.tf
a8910f6
fixed spacing in variables.tf
332525c
fixed spacing in main.tf
24a4ba6
fixed syntax errors
6b336ec
updated logic for deploy backend
535bc30
cleaned up spaces, etc.
59e0c8b
cleaned up more spaces, format of if statements, and indentation etc.
56f9eeb
made celery_start.sh executable
38990b0
set env vars to celery as well
aca5d8f
added cf bind-services for staticfiles (fixed typo).
4a2e4d9
removed REDIS_URI from ENV list because we should be grabbing from VC…
6495c78
added debug info
fa97c70
trying out unsetting REDIS_URI
849f42e
trying to hardcode REDIS_URI in start script
c672ef1
removing unset REDIS_URI commands and hardcoded redis
55aa406
setting last celery task to not be backgrounded.
606e60c
no route needed or port health checking for celery worker.
90fb827
Merge branch 'develop' into 2592/separate-celery
387f91b
Fixed misnamed variables
57e91b3
added backend appname to env for celery and backend to share during d…
2e8fa9f
put quotes around env vars
71552f4
pass env backend name before and after.
663f761
don't need to serialize a basic string for appname
c21a04e
added some documentation for Celery and Redis.
f10e2f5
updated docker compose files to create celery to mimic new celery ins…
673a338
remove .env requirement for circleci celery build
ae02550
fix typo"
7c1015f
import settings
1d08d18
import settings
c091a2c
linting
83f49f8
Merge branch 'develop' into 2592/separate-celery
4e13d1a
fixed typo, removed unneeded comments
6f32657
use 3 concurrent celery workers on the app
94c59be
Merge branch 'develop' into 2592/separate-celery
ed66a88
allowing routing to port 8080 and configuring flower to run on 8080 i…
e88d422
map route for celery
7f8833a
wrapped map routing for celery to non-prod space
ff069d2
updated tf for staging and prod spaces
388411a
Merge branch 'develop' into 2592/separate-celery
jtimpe 10cadcd
one redis per space
jtimpe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Redis Service and Celery Instance | ||
|
||
We use a CloudFoundry Redis service and a separate instance to run celery to run background processes like parsing data-file documents that have been submitted and have passed the [ClamAV scan](./clamav.md). | ||
|
||
## Redis Deployment | ||
|
||
As part of the move towards each environment being self-contained, one redis service is created per environment, deployed through the [CircleCI pipeline](./circle-ci.md), defined using [terraform](../../terraform/README.md). | ||
|
||
## Celery Deployment | ||
|
||
Celery is deployed at the same time as the backend through the [CircleCI pipeline](./circle-ci.md), with the details configured in the [celery manifest](../../tdrs-backend/manifest.celery.yml) and the [deploy-backend script](../../scripts/deploy-backend.sh) |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this mean it only deploys for raft? or it's only the default