exitHereIfFailed not exiting the current session in AWS

Hello,

I have a simulation that runs for 1000 users. I have broken down my scenario/simulaton into chains. I would like to exit the
simulation for the current session/user only if a failure had to happen to any of http requests within the chain for that user and do not
continue the execution of remaining chains for that user but I would like the simulation to continue for the rest of users with no failures to continue.Running from my
local machine works just fine but running same simulation from AWS instance seems not to work the same way . All chains are executed in AWS.

Example

val Chain1 =(
pause(1)
.group(“abc”){
exec(http(“request1)
.post(”"“xyz”"")
.check(status.in(200 to 304))
.headers(headers_1)
.resources(http(“request2”)
.get(uri1 + “”“abc”"")
.check(status.in(200 to 304))
.headers(headers_1),
http(“requst3”)
.get(uri1 + “”“blahblah”""+Common.systemtime())
.check(status.in(200 to 304))
.headers(headers_2))) }
).exitHereIfFailed

val Chain2 =(
pause(1)
.group(“abc”){
exec(http(“request4)
.post(”"“xyz”"")
.check(status.in(200 to 304))
.headers(headers_1)
.resources(http(“request5”)
.get(uri1 + “”“abc”"")
.check(status.in(200 to 304))
.headers(headers_1),
http(“requst6”)
.get(uri1 + “”“blahblah”""+Common.systemtime())
.check(status.in(200 to 304))
.headers(headers_2))) }
).exitHereIfFailed

val Chain2 =(
pause(1)
.group(“abc”){
exec(http(“request7)
.post(”"“xyz”"")
.check(status.in(200 to 304))
.headers(headers_1)
.resources(http(“request8”)
.get(uri1 + “”“abc”"")
.check(status.in(200 to 304))
.headers(headers_1),
http(“requst9”)
.get(uri1 + “”“blahblah”""+Common.systemtime())
.check(status.in(200 to 304))
.headers(headers_2))) }
).exitHereIfFailed

val scnseq = SeqChain1,Chain2,Chain3)
val scn = scenario(“RecordedSimulation”).exec(scnseq)
setUp(scn.inject(rampUsers(numberofusers) over (rampupby)).protocols(httpProtocol))

Wrap your whole scenario content with a exitBlockOnFail: http://gatling.io/docs/2.1.7/general/scenario.html#exitblockonfail

It worked. Thanks alot. I had another question I wanted to run an endurance test for my simulation above to run for couple days so I used REPEAT but it seems like the entire simulation ends/exits if an error occurs for one of the users. I was expecting that the scenario should continue/repeat for the remaining users.I used REPEAT as below

val scn = scenario(“RecordedSimulation”).repeat(repeatcount) {exec(scnseq)}
setUp(scn.inject(rampUsers(customnumberofusers) over (customrampby)).protocols(httpProtocol))