You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The stress tool, based on this dispatcher, along with statistical TPS reports, isas follows: [yidas / python-stress-tool](https://github.com/yidas/python-stress-tool)
350
355
356
+
357
+
#### Background Execution
358
+
359
+
You can run the script as a background process by adding & at the end of the command, and redirect the output to a file:
360
+
361
+
```
362
+
$ python3 main.py > log.txt 2>&1&
363
+
```
364
+
365
+
>`2>&1` means redirecting stderr (2) to the same location as stdout (1), so both standard output and error messages go to the same file.
366
+
367
+
For immediate stdout output (e.g., when logging to a file), use `worker_dispatcher.print()`, which enables flushing by default. Alternatively, use the built-in`print(..., flush=True)`.
0 commit comments