Question on watcher trigger schedule - Activate from 6am to 10pm daily, run every 5 minutes

(Joseph Dissmeyer) #1

What I am trying to do is activate a watch rule to run in 5 minute intervals only from 6am to 10pm every single day.

Is this an appropriate trigger schedule to achieve this goal?

"trigger" : {
    "schedule" : {
      "daily" : {
        "at" {
          "hour" : [ 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ],
          "minute" : [0,5,10,15,20,25,30,35,40,45,50,55]

(Alexander Reelsen) #2

yes this is. alternatively you could use a cron expression if you wanted, but this should work as well.

(Joseph Dissmeyer) #3

Thank you for confirming @spinscale! This is definitely the correct solved answer.

I did have Nick Lang reach out to me on this one as well and he provided some cron expression examples for this same goal:

0 0/5 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ? * * *
0 0/5 6-22 ? * * *

I'm going to stick with the long format for now but it is nice to know there are several scheduling options available depending on the needs.

(system) #4

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