# Elastic Watcher does not execute for a long time

**URL:** <https://discuss.elastic.co/t/elastic-watcher-does-not-execute-for-a-long-time/228950>\
**Category:** Elasticsearch\
**Created:** [April 21, 2020, 3:48am UTC](https://discuss.elastic.co/t/elastic-watcher-does-not-execute-for-a-long-time/228950 "2020-04-21T03:48:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jack\_Phan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_phan/32/44738_2.png) [@Jack\_Phan](https://discuss.elastic.co/u/Jack_Phan)\
**Post date:** [April 21, 2020, 3:48am UTC](https://discuss.elastic.co/t/elastic-watcher-does-not-execute-for-a-long-time/228950/1 "2020-04-21T03:48:08Z")

</div>

I have a watcher that executes every 1 minute.

Yesterday, I received an alert from the Watcher and checked if anything wrong. Then I figured out that the watcher didn't execute for 12 hours (5pm-5am). And the first execution triggered an alert.

 ![Screen Shot 2020-04-21 at 10.41.18 AM](https://us1.discourse-cdn.com/elastic/original/3X/7/0/70357c5a7bbe578f93f09cd6ef9883b00a7ab601.png)

However, when I run the scripts defined in the watcher in DevTools, filtered with the same time, I didn't see anything wrong.

 ![Screen Shot 2020-04-21 at 10.46.58 AM](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df7fd88f9b461ab5512a89d8501b9ae0d26f44b0.png)

For more information, the watcher will trigger alerts when `aggregations.count.value < 0`. The error in the execution history is due to timeout since the ES cluster is probably overloaded at that time.

---

<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:** [May 19, 2020, 3:48am UTC](https://discuss.elastic.co/t/elastic-watcher-does-not-execute-for-a-long-time/228950/2 "2020-05-19T03:48:24Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
