-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[change] Added dedicated celery queue for firmware upgrader #273
Related to #273
- Loading branch information
Showing
5 changed files
with
60 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[program:celery_firmware_upgrader] | ||
user={{ www_user }} | ||
directory={{ openwisp2_path }} | ||
command={{ openwisp2_path }}/env/bin/celery -A openwisp2 worker -l info --queue firmware_upgrader -O {{ openwisp2_celery_firmware_upgrader_optimization }}{% if openwisp2_celery_firmware_upgrader_concurrency %} --concurrency={{ openwisp2_celery_firmware_upgrader_concurrency }}{% elif openwisp2_celery_firmware_upgrader_autoscale %} --autoscale {{ openwisp2_celery_firmware_upgrader_autoscale }}{% endif %}{% if openwisp2_celery_firmware_upgrader_prefetch_multiplier %} --prefetch-multiplier {{ openwisp2_celery_firmware_upgrader_prefetch_multiplier }}{% endif %} -n firmware_upgrader@%%h | ||
autostart=true | ||
autorestart=true | ||
stopsignal=INT | ||
redirect_stderr=true | ||
stdout_logfile={{ openwisp2_path }}/log/celery-firmware-upgrader.log | ||
stdout_logfile_maxbytes=30MB | ||
stdout_logfile_backups=5 |