When I update the TICKscript of an enabled task using a HTTP PATCH request, the task is not automatically reloaded by Kapacitor. Running kapacitor show does however show the updated script. To make Kapacitor use the updated script, I either have to use kapacitor reload, or disable and re-enable the task using two separate PATCH requests.
This behavior seems unintuitive to me, and I haven't read about it in the documentation. Is this the intended behavior of updating a task?
kapacitor:1.2stream|from().database('testdb').measurement('test')|log().prefix('prefix1')test of the database testdb.prefix1.stream|from().database('testdb').measurement('test')|log().prefix('prefix2'). Only the logging prefix is changed here.kapacitor show with the ID of the task. It should show the newly updated script.prefix1.kapacitor reload or by using two PATCH requests that disable and re-enable the task.prefix2.I am running on the same issue here, with Kapacitor 1.3, my point is that if you're using the API, your only current option is to send a request to disable and another request to enable a task. It is unnecessary overhead.
My opinion is to either accept a reload_automatically parameter in the API or do it automatically, this algo goes for the command line.
Most helpful comment
I am running on the same issue here, with Kapacitor 1.3, my point is that if you're using the API, your only current option is to send a request to
disableand another request toenablea task. It is unnecessary overhead.My opinion is to either accept a
reload_automaticallyparameter in the API or do it automatically, this algo goes for the command line.