Browse Source

Celery command change

pull/378/head
squeaky otter 7 months ago
parent
commit
f13fc54f4f
Signed by: dashie GPG Key ID: C2D57B325840B755
  1. 4
      .tmuxinator.yml
  2. 2
      deploy/reel2bits-worker.service
  3. 2
      dev.yml

4
.tmuxinator.yml

@ -9,13 +9,15 @@ windows:
- export AUTHLIB_INSECURE_TRANSPORT=1
- export APP_SETTINGS='config.development_secret.Config'
- cd api
- source ../venv/bin/activate
- flask run
- workers:
- export FLASK_ENV=development
- export AUTHLIB_INSECURE_TRANSPORT=1
- export APP_SETTINGS='config.development_secret.Config'
- cd api
- celery worker -A tasks.celery --loglevel=error
- source ../venv/bin/activate
- celery -A tasks.celery worker --loglevel=error
- frontend:
- cd front
- yarn dev

2
deploy/reel2bits-worker.service

@ -18,7 +18,7 @@ Environment="APP_SETTINGS='config.production_secret.Config'"
# of CPUs. You can adjust this, by explicitly setting the --concurrency
# flag:
# celery -A tasks.celery worker -l INFO --concurrency=4
ExecStart=/home/reel2bits/reel2bits/venv/bin/celery worker -A tasks.celery -l INFO
ExecStart=/home/reel2bits/reel2bits/venv/bin/celery -A tasks.celery worker -l INFO
TimeoutSec=15
Restart=always

2
dev.yml

@ -78,7 +78,7 @@ services:
depends_on:
- postgres
- redis
command: celery worker -A tasks.celery -l error -B
command: celery -A tasks.celery worker -l error -B
environment:
- "SQLALCHEMY_DATABASE_URI=postgresql://postgres@postgres/postgres"
- "CELERY_BROKER_URL=redis://redis:6379/0"

Loading…
Cancel
Save