Skip to content

Commit

Permalink
added results backend
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-wu1 committed Jul 11, 2024
1 parent f269106 commit 11bf70c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ jobs:
--build-arg OAUTH_REDIRECT_URI="${{ secrets.OAUTH_REDIRECT_URI }}" \
--build-arg AWS_SQS_URL="${{ secrets.AWS_SQS_URL }}" \
--build-arg MESSAGE_BROKER="aws_sqs" \
--build-arg CELERY_RESULT_BACKEND="${{ secrets.CELERY_RESULT_BACKEND }}" \
--target production \
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
Expand Down Expand Up @@ -218,6 +219,7 @@ jobs:
--build-arg OAUTH_REDIRECT_URI="${{ secrets.OAUTH_REDIRECT_URI }}" \
--build-arg AWS_SQS_URL="${{ secrets.AWS_SQS_URL }}" \
--build-arg MESSAGE_BROKER="aws_sqs" \
--build-arg CELERY_RESULT_BACKEND="${{ secrets.CELERY_RESULT_BACKEND }}" \
--target prodworker \
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
Expand Down
1 change: 1 addition & 0 deletions backend/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def create_app(debug: bool = False) -> Flask:
app.config.from_mapping(
CELERY=dict(
broker_url="sqs://",
result_backend=os.getenv("CELERY_RESULT_BACKEND"),
task_ignore_result=True,
task_default_queue = "dirtviz-task-queue",
broker_transport_options={
Expand Down

0 comments on commit 11bf70c

Please sign in to comment.