@@ -1142,21 +1142,19 @@ async def _progressively_terminate_all_children(self):
1142
1142
1143
1143
pgid = os .getpgid (os .getpid ())
1144
1144
if not pgid :
1145
- self .log .warning (f"No Pgid ({ pgid = } ), not trying to stop subprocesses." )
1145
+ self .log .warning (f"No Pgid ({ pgid } ), not trying to stop subprocesses." )
1146
1146
return
1147
1147
if psutil is None :
1148
1148
# blindly send quickly sigterm/sigkill to processes if psutil not there.
1149
- self .log .warning (
1150
- f"Please install psutil for a cleaner subprocess shutdown."
1151
- )
1149
+ self .log .debug ("Please install psutil for a cleaner subprocess shutdown." )
1152
1150
self ._send_interupt_children ()
1153
1151
try :
1154
1152
await asyncio .sleep (0.05 )
1155
- self .log .debug ("Sending SIGTERM to {pgid= }" )
1153
+ self .log .debug ("Sending SIGTERM to {pgid}" )
1156
1154
os .killpg (pgid , SIGTERM )
1157
1155
if sys .platform != "win32" :
1158
1156
await asyncio .sleep (0.05 )
1159
- self .log .debug ("Sending SIGKILL to {pgid= }" )
1157
+ self .log .debug ("Sending SIGKILL to {pgid}" )
1160
1158
os .killpg (pgid , SIGKILL )
1161
1159
except Exception :
1162
1160
self .log .exception ("Exception during subprocesses termination" )
@@ -1167,7 +1165,7 @@ async def _progressively_terminate_all_children(self):
1167
1165
if not children :
1168
1166
self .log .debug ("Kernel has no children." )
1169
1167
return
1170
- self .log .debug (f"Trying to interrupt then kill subprocesses : { children = } " )
1168
+ self .log .debug (f"Trying to interrupt then kill subprocesses : { children } " )
1171
1169
self ._send_interupt_children ()
1172
1170
if sys .platform != "win32" :
1173
1171
sigs = (SIGTERM , SIGKILL )
0 commit comments