Skip to content

Commit

Permalink
build(celery-redis): add redis server and celery work to render.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
WoosterInitiative committed Apr 25, 2024
1 parent 24dd13b commit 537e541
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ databases:
user: mysite

services:
- type: worker
name: celery-worker
region: oregon
runtime: python
buildCommand: "pip install -r requirements.txt"
startCommand: "celery --app config.celery_app worker --loglevel info --concurrency 4"
autoDeploy: false
envVars:
- key: CELERY_BROKER_URL
fromService:
name: celery-redis
type: redis
property: connectionString
- type: web
plan: free
name: mysite
Expand All @@ -20,3 +33,13 @@ services:
generateValue: true
- key: WEB_CONCURRENCY
value: 4
- key: CELERY_BROKER_URL
from: celery-redis
type: redis
property: connectionString
- type: redis
name: celery-redis
region: oregon
plan: starter
maxmemoryPolicy: noeviction
ipAllowList: []

0 comments on commit 537e541

Please sign in to comment.