File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ django_pid_file: "{{ django_pid_socks_dir }}/{{ django_service_name }}.pid"
40
40
django_proxy_read_timeout : " 300s"
41
41
django_environment_script_name : environment.sh
42
42
django_environment_vars : []
43
+ django_celeryd_extra_env_vars : []
44
+ django_celerybeat_extra_env_vars : []
43
45
44
46
# Python packages
45
47
# Set django_apt_python_ppa to blank string if you don't want to install any PPA
Original file line number Diff line number Diff line change @@ -31,3 +31,9 @@ CELERYBEAT_PID_FILE="/var/run/{{ django_system_user }}/celerybeat.pid"
31
31
# in this case is just settings and not the full path because it will change the dir to
32
32
# the project folder first.
33
33
DJANGO_SETTINGS_MODULE="{{ django_settings_module }}"
34
+
35
+ {% if django_celerybeat_extra_env_vars | length > 0 %}
36
+ {% for var_name ,var_value in django_celerybeat_extra_env_vars .items () %}
37
+ {{ var_name }}={{ var_value }}
38
+ {% endfor %}
39
+ {% endif %}
Original file line number Diff line number Diff line change @@ -36,3 +36,9 @@ CELERY_CREATE_DIRS=1
36
36
C_FORCE_ROOT=1
37
37
CELERYD_LOG_LEVEL="{{ django_celeryd_log_level }}"
38
38
DJANGO_SETTINGS_MODULE="{{ django_settings_module }}"
39
+
40
+ {% if django_celeryd_extra_env_vars | length > 0 %}
41
+ {% for var_name ,var_value in django_celeryd_extra_env_vars .items () %}
42
+ {{ var_name }}={{ var_value }}
43
+ {% endfor %}
44
+ {% endif %}
You can’t perform that action at this time.
0 commit comments