28 lines
672 B
Desktop File
28 lines
672 B
Desktop File
[Unit]
|
|
Description=Schon Celery Worker (Default Queue)
|
|
Documentation=https://gitlab.com/wiseless.xyz/schon
|
|
After=network.target postgresql.service redis.service elasticsearch.service
|
|
Wants=postgresql.service redis.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=schon
|
|
Group=schon
|
|
WorkingDirectory=/opt/schon
|
|
EnvironmentFile=/opt/schon/.env
|
|
ExecStart=/opt/schon/.venv/bin/celery \
|
|
-A schon worker \
|
|
--pool=prefork \
|
|
--concurrency=8 \
|
|
--queues=default \
|
|
--prefetch-multiplier=2 \
|
|
--max-tasks-per-child=100 \
|
|
--max-memory-per-child=512000 \
|
|
-E
|
|
Restart=always
|
|
RestartSec=5
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|