How to intentionally fail the transactions if the condition is not satisfied in 1 minutes duration in doWhileDuring

the group has two endpoints, one is uploading data, on the other hand, the second end point is looped until it shows desired response message, and also duration also set to exit the loop…

Right it exits the Loop after the given duration is over, but not failing

How to intentionally fail the group transactions if the desired response not getting in the given time?

 .group("T05_EntireProcessingTime") {
      pause(t_pauseTime)
      .exec(
        http("T02_runInstantExport")
          .post("/runjob/runInstantExport")
          .header("Authorization", "${GCP_IAAP_AUTH_TOKEN}")
          .headers(correlated0Headers)
          .body(StringBody("""${payLoad}""")).asJson
          .check(status.is(200))
          .check(regex("\"listMetadataId\":(.*?),").saveAs("C_listMetadataId"))

          )
       // tryMax(20) {
          .pause(5)
            .doWhileDuring(session => session("statuss").as[String] == "INPROCESS",session => 1.minutes, "counter", true) {
              exec(
                http("T04_Polling")
                  .get("/runjob/${C_listMetadataId}/exportStatus")
                  .header("Authorization", "${GCP_IAAP_AUTH_TOKEN}")
                  .headers(correlated0Headers)
                  .check(
                    status.is(200),
                   // jsonPath("$..status").is("FINISHED"),
                    jsonPath("$..status").saveAs("statuss")

                  )
              )
                .pause(5)
            } // dowhile
      //  } // try max
      }// group

If statuss is still INPROCESS after the loop, mark the Session as failed.