Hi all,
How would I go about reporting the aggregate timing a loop made up of a polling request?
Here’s my current state: I start a long running job, and then poll it every second until complete:
.loop(
chain.exec(
http(“poll_indexing”)
.get(“url-of-long-running-job”)
.check(
status.is(200),
regex(“Available|Finished|Running”)
.find
.transform((s:String) => if(s.compareTo(“Running”)==0) “true” else “false”)
.whatever
.saveAs(“indexing”))).pause(1)
).asLongAs(
“${indexing}”, “true”
)
However, when I view the report for this, I see a breakdown on how long “poll_indexing” takes per poll (e.g. < 5ms), rather than how long poll_indexing takes in total (e.g. 30 seconds)…
How would I aggregate poll_indexing into a total time?
Regards
Nick