# Sensu Go - cron job with execute every 10 seconds

**URL:** <https://discourse.sensu.io/t/sensu-go-cron-job-with-execute-every-10-seconds/1691>\
**Category:** Sensu Go\
**Tags:** sensu-go\
**Created:** [April 5, 2020, 4:29am UTC](https://discourse.sensu.io/t/sensu-go-cron-job-with-execute-every-10-seconds/1691 "2020-04-05T04:29:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![melw](https://avatars.discourse-cdn.com/v4/letter/m/6de8d8/32.png) [@melw](https://discourse.sensu.io/u/melw)\
**Post date:** [April 5, 2020, 4:29am UTC](https://discourse.sensu.io/t/sensu-go-cron-job-with-execute-every-10-seconds/1691/1 "2020-04-05T04:29:19Z")

</div>

Hi,

I’m using the sensu go and want to build some cron check running every 10 seconds,  
is there a way to implement it?

As references:  
I find two ways for running a cron job based on second, does any of these is workable? If not, I’m willing to contribute to implement this feature in the source code.  
way1:  
command: “helloworld.rb”  
cron: “\* 11-17 \* \* \* (sleep 10)”  
way2:  
command: “cnt=0; while(( $cnt \< 6 )); do helloworld.rb; sleep 10; ((cnt++)); done”  
cron: "\* 11-17 \* \* \* "

Hope get your feedback and suggestion, sensu goer! Thank you!

---

<div class="post-metadata">

**Author:** ![palourde](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/palourde/32/60_2.png) [@palourde](https://discourse.sensu.io/u/palourde)\
**Post date:** [May 14, 2020, 6:32pm UTC](https://discourse.sensu.io/t/sensu-go-cron-job-with-execute-every-10-seconds/1691/2 "2020-05-14T18:32:13Z")

</div>

Hi @melw

Is there any reason why you can’t use interval scheduling ([https://docs.sensu.io/sensu-go/latest/reference/checks/#interval-scheduling](https://docs.sensu.io/sensu-go/latest/reference/checks/#interval-scheduling)) with a 10 seconds interval?

Thanks!
