# Schedule a http call

**URL:** <https://community.gatling.io/t/schedule-a-http-call/5806>\
**Category:** Gatling (Open-Source)\
**Created:** [September 22, 2020, 4:26am UTC](https://community.gatling.io/t/schedule-a-http-call/5806 "2020-09-22T04:26:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaheshM](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@MaheshM](https://community.gatling.io/u/MaheshM)\
**Post date:** [September 22, 2020, 4:26am UTC](https://community.gatling.io/t/schedule-a-http-call/5806/1 "2020-09-22T04:26:17Z")

</div>

Is it possible to schedule a http call in gatling like below

val scn = scenario(“My Simulation”)  
**.exec(getServerStatus) // schedule this call for every 1 min of simulation**  
.during(60 mins) {  
feed(“feed users file”)  
.exec(“http call 1”)  
.exec(“http call 2”)  
.pause(5 seconds, 10 seconds)  
}  
setUp(scn.inject(1).during(1)).protocols(http)

**getServerStatus** http call will be triggered for every 1 min. By any chance is this feature already exists ?

---

<div class="post-metadata">

**Author:** ![James\_Warr](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@James\_Warr](https://community.gatling.io/u/James_Warr)\
**Post date:** [September 22, 2020, 5:16am UTC](https://community.gatling.io/t/schedule-a-http-call/5806/2 "2020-09-22T05:16:38Z")

</div>

have a look at polling - in the documentation at  
[https://gatling.io/docs/current/http/polling/](https://gatling.io/docs/current/http/polling/)

---

<div class="post-metadata">

**Author:** ![MaheshM](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@MaheshM](https://community.gatling.io/u/MaheshM)\
**Post date:** [September 22, 2020, 7:48am UTC](https://community.gatling.io/t/schedule-a-http-call/5806/3 "2020-09-22T07:48:18Z")

</div>

Thanks a lot James

A small correction in my request 🙂 looks like polling only works for request type “HttpRequestBuilder” but i need to poll **gRPC** call : [https://github.com/phiSgr/gatling-grpc/blob/master/src/test/scala/com/github/phisgr/example/GrpcExample.scala#L109](https://github.com/phiSgr/gatling-grpc/blob/master/src/test/scala/com/github/phisgr/example/GrpcExample.scala#L109) something like this

Any idea ?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [September 22, 2020, 7:50am UTC](https://community.gatling.io/t/schedule-a-http-call/5806/4 "2020-09-22T07:50:37Z")

</div>

“small correction” LOL

This gRPC plugin is a third party that’s not maintained here.  
You should reach out to its author directly, probably on Github.  
Nothing we could do here.
