schon/systemd/schon-stock-updater.service
2026-01-25 23:16:38 +03:00

28 lines
683 B
Desktop File

[Unit]
Description=Schon Celery Worker (Stock Updater 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=1 \
--queues=stock_updater \
--prefetch-multiplier=1 \
--max-tasks-per-child=5 \
--max-memory-per-child=1024000 \
-E
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target