Unset locale variables for celery worker launch
Celery has problems when non-ASCII characters are included in log messages (i.e. from called system commands). Therefore environment variables that influence the locale setting are reset before running the celery worker.
This commit is contained in:
parent
06d63c111b
commit
cf6dd52186
2 changed files with 10 additions and 0 deletions
|
@ -3,5 +3,10 @@
|
|||
set -ex
|
||||
|
||||
. {{ home }}/gvasettings.sh
|
||||
|
||||
unset LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
|
||||
LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \
|
||||
LC_IDENTIFICATION LC_ALL
|
||||
|
||||
cd {{ appdir }}
|
||||
{{ virtualenv }}/bin/celery worker -A gvafile -Q file --loglevel=INFO
|
||||
|
|
|
@ -3,5 +3,10 @@
|
|||
set -ex
|
||||
|
||||
. {{ home }}/gvasettings.sh
|
||||
|
||||
unset LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY \
|
||||
LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT \
|
||||
LC_IDENTIFICATION LC_ALL
|
||||
|
||||
cd {{ appdir }}
|
||||
{{ virtualenv }}/bin/celery worker -A gvaldap -Q ldap --loglevel=INFO
|
||||
|
|
Loading…
Reference in a new issue