Hello. Is there a way to update a task’s template without triggering a restart? Rather, I want it to use the new template only if the task restarts, but not while it’s still running since I don’t want to disrupt the operation and cause downtime. The template is mapped to a config for Redis or Postgres. For example
template {
data = <<-EOF
save 60 1000
EOF
destination = "local/redis.conf"
}
In other words, I’m trying to update a config value but don’t want to trigger a full restart since I can also hot enable the config option (save 60 1000) within Redis while it’s still running. But if it does restart in the future, it should read the new config option within the template. Any suggestions on how I could solve this? Thank you!
with only the template changing, the task automatically restarts even though I have noop and STDOUT now is showing baz even though I’m expecting the task to not have restarted. Am I using this correctly?