Pause inside tryMax not working

34 views
Skip to first unread message

Andrei Staravoitau

unread,
Feb 5, 2022, 2:19:37 AM2/5/22
to Gatling User Group
I'm trying to implement reply functionality with the pause between retries as follows

scenario("as_eps_api_central_simulation")
.repeat(2) {
tryMax(5, "retryLoopIndex") {

pause(150.seconds)

.exec(http("get_eps_internal")
.get("/500")
.headers(headers_0)
.requestTimeout(GlobalRequestTimeout)
.check(status.is(200))
)
}
}

for some reason pause is not working. Requests go without pause

Stéphane LANDELLE

unread,
Feb 5, 2022, 4:04:30 AM2/5/22
to gat...@googlegroups.com
Any chance you're using throttling? https://gatling.io/docs/gatling/reference/current/core/simulation/#shaping-throughput

  • Enabling throttle disables pauses so that it can take over throughput definition.
Otherwise, as requested when posting here: please check you're using the latest version of Gatling and provide a way for someone else to reproduce your issue.

--

Stéphane Landelle

Chief Technical Officer

   

slan...@gatling.io
gatling.io
   
facebook twitter linkedin 


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gatling/eb14687b-a5d1-4425-a2cd-6be1357be648n%40googlegroups.com.

Andrei Staravoitau

unread,
Feb 6, 2022, 7:26:52 AM2/6/22
to Gatling User Group
Stéphane, that was it. Thanks for the help. Next time need to read docs better.
Reply all
Reply to author
Forward
0 new messages