# Watcher Trigger Running on Sunday although cron set for MON-FRI

**URL:** <https://discuss.elastic.co/t/watcher-trigger-running-on-sunday-although-cron-set-for-mon-fri/371030>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [November 25, 2024, 2:31pm UTC](https://discuss.elastic.co/t/watcher-trigger-running-on-sunday-although-cron-set-for-mon-fri/371030 "2024-11-25T14:31:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![clos012](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@clos012](https://discuss.elastic.co/u/clos012)\
**Post date:** [November 25, 2024, 2:31pm UTC](https://discuss.elastic.co/t/watcher-trigger-running-on-sunday-although-cron-set-for-mon-fri/371030/1 "2024-11-25T14:31:01Z")

</div>

Hello - I have setup a watcher to run between MON-FRI from 0600-1900 every 30mins. The cron job is adjusted for the -6 UTC time based on our current system time profile. The job should only run MON-FRI but I am seeing the watch run on Sunday from 1800-1900. Is my cron string not formatted correctly thus causing the issue? Or could this be a bug in adjusting for UTC time? Below is my cron time string

```auto
  "trigger": {
    "schedule": {
      "cron": "0 */30 12-1 ? * MON-FRI"
    }
  },

```

Watcher job execution history showing Sunday runs

 ![watch_hist](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e128304eb54eb2fd4cf234aad31bf51cf4fa622.png)

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [November 25, 2024, 5:51pm UTC](https://discuss.elastic.co/t/watcher-trigger-running-on-sunday-although-cron-set-for-mon-fri/371030/2 "2024-11-25T17:51:10Z")

</div>

Hello,

Could you please confirm if this is seen on Every Sunday?

Thanks!!

---

<div class="post-metadata">

**Author:** ![clos012](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@clos012](https://discuss.elastic.co/u/clos012)\
**Post date:** [November 25, 2024, 5:59pm UTC](https://discuss.elastic.co/t/watcher-trigger-running-on-sunday-although-cron-set-for-mon-fri/371030/3 "2024-11-25T17:59:47Z")

</div>

Yes - its happening every Sunday. I made the cron schedule change on 11-12-2024 and it first occurred on 11-17-2024 then again this past Sunday

 ![watch_hist_2](https://us1.discourse-cdn.com/elastic/original/3X/f/b/fb6a6dd5e41d4e3f0a1f2b62a12eab6a7ff8456e.png)

---

<div class="post-metadata">

**Author:** ![Tortoise](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tortoise/32/147587_2.png) [@Tortoise](https://discuss.elastic.co/u/Tortoise)\
**Post date:** [November 25, 2024, 6:20pm UTC](https://discuss.elastic.co/t/watcher-trigger-running-on-sunday-although-cron-set-for-mon-fri/371030/4 "2024-11-25T18:20:42Z")

</div>

Hello,

As per the URL can you try to use below :

> **[API conventions | Elasticsearch Guide \[8.15\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/8.15/api-conventions.html#api-cron-expressions)**

0 0/30 6-18 ? \* MON-FRI

Thanks!!

---

<div class="post-metadata">

**Author:** ![clos012](https://avatars.discourse-cdn.com/v4/letter/c/8c91f0/32.png) [@clos012](https://discuss.elastic.co/u/clos012)\
**Post date:** [November 25, 2024, 6:27pm UTC](https://discuss.elastic.co/t/watcher-trigger-running-on-sunday-although-cron-set-for-mon-fri/371030/5 "2024-11-25T18:27:39Z")

</div>

Appreciate your response but the 6-18 hour would schedule the watch to run during the hours of 0000 - 1200 (central time zone US). Reason I have my cron hour set to 12-1 to account for the 6 hour UTC time difference.
