Multiple cron triggers

I am trying to trigger a watch twice using cron formatted triggers, but only the first one triggers. I have noticed that the first one continues to execute and never stops, but im not sure whats wrong.

can you provide the triggers you tested with, so I can try locally and reproduce?

"trigger": {
"schedule": {
"cron": [
"0 3 23 8 8 ? 2018",
"4 3 23 8 8 ? 2018"
]
}
},

i do realize this is in the past but this is exactly how I formatted it

This is indeed a bug. I opened https://github.com/elastic/elasticsearch/pull/32734

Thanks a ton for reporting!

Note that you can use a comma in the cron string to provide multiple matches. Try something like this:

"trigger": {
     "schedule": {
          "cron": "0,4 3 23 8 8 ? 2018"
     }
},

That's a good point as long as your cron expressions are similar enough. Thanks for raising that one @MovGP0 !

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