Another safeguard to make sure celery only executes one task at a time
This commit is contained in:
parent
7b589e2f9a
commit
2d71aebc06
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ After=network.target
|
||||||
User=vpn
|
User=vpn
|
||||||
Group=vpn
|
Group=vpn
|
||||||
WorkingDirectory=/opt/vpnmanager
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue