add source code and readme
This commit is contained in:
53
build/bookwyrm/bookwyrm-worker/supervisord-worker.conf
Normal file
53
build/bookwyrm/bookwyrm-worker/supervisord-worker.conf
Normal file
@@ -0,0 +1,53 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/dev/stdout
|
||||
logfile_maxbytes=0
|
||||
pidfile=/tmp/supervisord-worker.pid
|
||||
silent=false
|
||||
|
||||
[unix_http_server]
|
||||
file=/tmp/bookwyrm-supervisor.sock
|
||||
chmod=0700
|
||||
|
||||
[supervisorctl]
|
||||
serverurl=unix:///tmp/bookwyrm-supervisor.sock
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
# Celery Worker - General background tasks
|
||||
[program:celery-worker]
|
||||
command=celery -A celerywyrm worker --loglevel=info --concurrency=2 --queues=high_priority,medium_priority,low_priority,streams,images,suggested_users,email,connectors,lists,inbox,imports,import_triggered,broadcast,misc
|
||||
directory=/app
|
||||
user=bookwyrm
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startsecs=10
|
||||
startretries=3
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
environment=CONTAINER_TYPE="worker"
|
||||
|
||||
# Celery Beat - Moved to separate deployment (deployment-beat.yaml)
|
||||
# This eliminates port conflicts and allows proper scaling of workers
|
||||
# while maintaining single beat scheduler instance
|
||||
|
||||
# Celery Flower - Task monitoring (disabled by default, no external access needed)
|
||||
# [program:celery-flower]
|
||||
# command=celery -A celerywyrm flower --port=5555 --address=0.0.0.0
|
||||
# directory=/app
|
||||
# user=bookwyrm
|
||||
# autostart=false
|
||||
# autorestart=true
|
||||
# startsecs=10
|
||||
# startretries=3
|
||||
# stdout_logfile=/dev/stdout
|
||||
# stdout_logfile_maxbytes=0
|
||||
# stderr_logfile=/dev/stderr
|
||||
# stderr_logfile_maxbytes=0
|
||||
# environment=PATH="/app/venv/bin",CONTAINER_TYPE="worker"
|
||||
|
||||
# Log rotation no longer needed since logs go to stdout/stderr
|
||||
# Kubernetes handles log rotation automatically
|
||||
Reference in New Issue
Block a user