File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -169,12 +169,12 @@ logging.getLogger('command_runner').setLevel(logging.CRITICAL)
169169 - A thread is spawned in order to check stop conditions and kill process if needed
170170 - A main loop waits for the process to finish, then uses proc.communicate() to get it's output
171171 - Pros:
172- - less CPU usage
173- - less threads
172+ - Less CPU usage
173+ - Less threads
174174 - Cons:
175- - cannot read partial output on KeyboardInterrupt or stop_on (still works for partial timeout output)
176- - cannot use queues or callback functions redirectors
177- - is 0.1 seconds slower than poller method
175+ - It cannot read partial output on KeyboardInterrupt or stop_on (still works for partial timeout output)
176+ - It cannot use queues or callback functions redirectors
177+ - It is 0.1 seconds slower than poller method
178178
179179
180180` method='poller' ` :
@@ -183,9 +183,9 @@ logging.getLogger('command_runner').setLevel(logging.CRITICAL)
183183 - Pros:
184184 - Reads on the fly, allowing interactive commands (is also used with ` live_output=True ` )
185185 - Allows stdout/stderr output to be written live to callback functions, queues or files (useful when threaded)
186- - is 0.1 seconds faster than monitor method, is preferred method for fast batch runnings
186+ - It is 0.1 seconds faster than monitor method and is the preferred method for fast batch runnings
187187 - Cons:
188- - lightly higher CPU usage
188+ - Slightly higher CPU usage
189189
190190Example:
191191``` python
You can’t perform that action at this time.
0 commit comments