Browse Source

Celery command change

pull/378/head
squeaky otter 4 months ago
parent
commit
f13fc54f4f
Signed by: dashie GPG Key ID: C2D57B325840B755
3 changed files with 5 additions and 3 deletions
  1. +3
    -1
      .tmuxinator.yml
  2. +1
    -1
      deploy/reel2bits-worker.service
  3. +1
    -1
      dev.yml

+ 3
- 1
.tmuxinator.yml View File

@ -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


+ 1
- 1
deploy/reel2bits-worker.service View File

@ -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


+ 1
- 1
dev.yml View File

@ -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