# Are schedules fixed or based on last run

**URL:** <https://discuss.elastic.co/t/are-schedules-fixed-or-based-on-last-run/1003>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [May 20, 2015, 5:04pm UTC](https://discuss.elastic.co/t/are-schedules-fixed-or-based-on-last-run/1003 "2015-05-20T17:04:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbaranick](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jbaranick](https://discuss.elastic.co/u/jbaranick)\
**Post date:** [May 20, 2015, 5:04pm UTC](https://discuss.elastic.co/t/are-schedules-fixed-or-based-on-last-run/1003/1 "2015-05-20T17:04:21Z")

</div>

Are watcher schedules guaranteed to run on the time boundary or do they shift based on the duration of the last watcher run?

If I configure the watch to run every 5 seconds and the watch takes 2 seconds to run does it run at: 0s, 5s, 10s, etc.? Or does it run at 0s, 7s, 14s, etc.?

If I configure a watch to run every 5 seconds and the watch takes 10 seconds to run, does it run at: 0s, 5s, 10s, etc.? Or does it run at 0s, 10s, 20s, etc.? Or does it run at 0s, 15s, 30s, etc.?

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [May 20, 2015, 8:42pm UTC](https://discuss.elastic.co/t/are-schedules-fixed-or-based-on-last-run/1003/2 "2015-05-20T20:42:43Z")

</div>

Watcher will schedule the watch for execution on the interval you've defined. However the same Watch can only run once, so the execution of a Watch depends on if the previous execution of the same Watch has completed.

Also by default each Watch is throttled for 5s, meaning that if the condition of a Watch matches, the actions will only be executed if the last execution was at least 5s ago. This can be disabled by setting `throttle_period` on the Watch to `0s`.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:50pm UTC](https://discuss.elastic.co/t/are-schedules-fixed-or-based-on-last-run/1003/3 "2017-07-06T13:50:04Z")

</div>


