mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-28 02:48:38 +00:00
The watch lock service is not really needed, as there is already a data structure that has information about the currently executing watches, that can be consulted before executed. This change will now check, if there is already a watch running with the current id. If there is not, execution will happen as usual. If there is however, than a watch record will be created, stating that the watch is currently being executed - which means that it is either being executed or in the list of planned executions. This way users can check in the watch history, if a watch has been executed more often than it should. In order to easily search for this, a new execution state called `NOT_EXECUTED_ALREADY_QUEUED` has been added. Original commit: elastic/x-pack-elasticsearch@867acec3c3