Last active
December 3, 2021 20:12
-
-
Save meetsohail/5da5cbdf1b1dae74fc041273e351fdb0 to your computer and use it in GitHub Desktop.
Celery Configuration with Django
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Paste this service file in | |
# /etc/systemd/system | |
[Service] | |
User=username | |
Group=groupname | |
EnvironmentFile=/home/vars.ini | |
WorkingDirectory=/home/path_to_django_root | |
Environment="PATH=/home/path_to_virtual_enviornment_dir/env/bin" | |
Restart=always | |
RestartSec=3 | |
ExecStart=/home/path_to_virtual_enviornment_dir/env/bin/celery -A celeryname worker --concurrency=100 --loglevel=INFO | |
StandardOutput=/home/logs/celery.log | |
StandardError=/home/logs/celery.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment