mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
* Replace APScheduler to Celery task * black format * Add celery to run the script * Update celery usage to README * Update test task * Add celery rabbitmq broker * Fix dockerfiles * Add task interface access authorization * Update celery deploy run * Fix dockerfiles * Fix supervisor conf * Update celery broker default is redis * Force the pro env to use rabbitmq * Update the task interface * Add celery beat README description * Update warning text style * Revoke the default config comment content of the supervisor
20 lines
483 B
Plaintext
20 lines
483 B
Plaintext
[program:celery_worker]
|
|
directory=/fba/backend/app
|
|
command=/usr/local/bin/celery -A tasks worker --loglevel=INFO
|
|
user=root
|
|
autostart=true
|
|
autorestart=true
|
|
startretries=5
|
|
redirect_stderr=true
|
|
stdout_logfile=/var/log/celery/fba_celery_worker.log
|
|
|
|
[program:celery_beat]
|
|
directory=/fba/backend/app
|
|
command=/usr/local/bin/celery -A tasks beat --loglevel=INFO
|
|
user=root
|
|
autostart=true
|
|
autorestart=true
|
|
startretries=5
|
|
redirect_stderr=true
|
|
stdout_logfile=/var/log/celery/fba_celery_beat.log
|