Skip to content

Commit 61005ad

Browse files
committed
Fix LC_ALL and LANG for workers on python3
1 parent 5481d16 commit 61005ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dec2/formulas/salt/dask/distributed/templates/dworker.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{%- from 'conda/settings.sls' import install_prefix with context -%}
22
{%- from 'dask/distributed/settings.sls' import scheduler_host with context -%}
33

4+
{%- set environment = [] -%}
5+
{%- do environment.append('LC_ALL="C.UTF-8"') -%}
6+
{%- do environment.append('LANG="C.UTF-8"') -%}
7+
48
[program:dworker]
59
command={{ install_prefix }}/bin/python {{ install_prefix }}/bin/dworker {{ scheduler_host }}:8786
610
startsecs=1
@@ -10,3 +14,4 @@ autorestart=true
1014
stdout_logfile=/var/log/dworker.log
1115
stdout_logfile_maxbytes=50MB
1216
redirect_stderr=true
17+
environment={{ environment | join(',') }}

0 commit comments

Comments
 (0)