I am new to Locust and I am trying to programmatically incorporate the following CLI command into my script:
locust -f locustfile.py --host http://X.W.Z.Y:9999/ --headless -u 100 --run-time 1m --stop-timeout 99 --csv "some-timestamp" --csv-full-history --reset-stats --only-summary
Essentially running multiple local instances of locust in a headless fashion and storing the stats into csv file. I can programmatically start the locust instances and spawn the workers, but I have not been able to find the right documentation to understand how to deal with the storing of the stats into csv files.
Any help greatly appreciated!