We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac1078 commit 8a0a807Copy full SHA for 8a0a807
apps/common/management/commands/services/services/celery_default.py
@@ -2,6 +2,7 @@
2
import subprocess
3
4
from .celery_base import CeleryBaseService
5
+from django.conf import settings
6
7
__all__ = ['CeleryDefaultService']
8
@@ -14,7 +15,13 @@ def __init__(self, **kwargs):
14
15
16
def open_subprocess(self):
17
env = os.environ.copy()
18
+ env['LC_ALL'] = 'C.UTF-8'
19
+ env['PYTHONOPTIMIZE'] = '1'
20
+ env['ANSIBLE_FORCE_COLOR'] = 'True'
21
+ env['PYTHONPATH'] = settings.APPS_DIR
22
env['SERVER_NAME'] = 'celery'
23
+ if os.getuid() == 0:
24
+ env.setdefault('C_FORCE_ROOT', '1')
25
kwargs = {
26
'cwd': self.cwd,
27
'stderr': self.log_file,
0 commit comments