Improve config file watcher resilience#148
Improve config file watcher resilience#148jaydenthorup wants to merge 1 commit intomrlhansen:masterfrom
Conversation
…atcher add up to 5 times, and reset retry count after 24 hours of no failures.
|
I am trying to understand the use case here. You have a scenario where the config file is renamed, and a new file is then eventually renamed to the old name? |
|
I have a script where the config file is updated every hour based on a nautobot database. The file refresh at times either didn't update or the watcher process crashed out in the middle of the write. Depending on what writer I use for the config, the change is also not caught by the watcher without the rename added. |
|
I will try to have a look, but this feels like a very hacky way of doing it. |
|
I have another suggestion. Would it be useful if the exporter had a |
|
I added the |
We now handle Rename events, retry watcher add up to 5 times, and reset retry count after 24 hours of no failures.