File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,12 @@ async def launcher(self):
81
81
logger .info ("Starting controller %s with command: %s" ,
82
82
self .name , self .command )
83
83
try :
84
+ env = os .environ .copy ()
85
+ env ["PYTHONUNBUFFERED" ] = "1"
84
86
self .process = await asyncio .create_subprocess_exec (
85
87
* shlex .split (self .command ),
86
- stdout = subprocess .PIPE , stderr = subprocess .PIPE )
88
+ stdout = subprocess .PIPE , stderr = subprocess .PIPE ,
89
+ env = env )
87
90
asyncio .ensure_future (
88
91
LogParser (self ._get_log_source ).stream_task (
89
92
self .process .stdout ))
Original file line number Diff line number Diff line change @@ -81,10 +81,13 @@ async def _create_process(self, log_level):
81
81
if self .closed .is_set ():
82
82
raise WorkerError ("Attempting to create process after close" )
83
83
self .ipc = pipe_ipc .AsyncioParentComm ()
84
+ env = os .environ .copy ()
85
+ env ["PYTHONUNBUFFERED" ] = "1"
84
86
await self .ipc .create_subprocess (
85
87
sys .executable , "-m" , "artiq.master.worker_impl" ,
86
88
self .ipc .get_address (), str (log_level ),
87
- stdout = subprocess .PIPE , stderr = subprocess .PIPE )
89
+ stdout = subprocess .PIPE , stderr = subprocess .PIPE ,
90
+ env = env )
88
91
asyncio .ensure_future (
89
92
LogParser (self ._get_log_source ).stream_task (
90
93
self .ipc .process .stdout ))
You can’t perform that action at this time.
0 commit comments