Open Tonius opened 7 years ago
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.
still had this problem. The only change is that the document note this obviously now, but i think provide a individual http parameter to reload task automatically is a better solution
Description
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 usekapacitor 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?
Environment
kapacitor:1.2
Test case
stream|from().database('testdb').measurement('test')|log().prefix('prefix1')
test
of the databasetestdb
.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
.