I have just started using locust with one custom client. At the end of the test (on_stop) I am fetching some results from APM and logging them.
Issue : when I use below command, all 1000 users are fetching those details and logging the data from APM. But I want only the 1st user to do this job and let other users to ignore this call.
$ locust -f --headless -u 1000 -r 100 --run-time 1h30m
Please let me know if someone has done something similar earlier. Thanks in advance.