Another safeguard to make sure celery only executes one task at a time

This commit is contained in:
Kumi 2019-02-10 16:00:21 +00:00
parent 7b589e2f9a
commit 2d71aebc06

View file

@ -6,7 +6,7 @@ After=network.target
User=vpn
Group=vpn
WorkingDirectory=/opt/vpnmanager
ExecStart=/bin/sh -c '/usr/local/bin/celery -A vpnmanager worker -l info'
ExecStart=/bin/sh -c '/usr/local/bin/celery -A vpnmanager worker --concurrency=1 -l info'
[Install]
WantedBy=multi-user.target