Pause inside tryMax not working

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

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, that was it. Thanks for the help. Next time need to read docs better.