Task does not run

Hi experts!

Have a problem with a task that should run every month but it does not start! I do not get any failure messages nor log entries. When manually I run the task it executes as expected, so the data and the script it self seems to be ok. As reference I have other tasks scheduled every 10 min and 1 day that works great.

Any suggestion on where to fault trace?

running InfluxDB version 2.0.9

According to this GitHub issue I will try to add a stop command to see if that solves the problem, have to wait and see!!

|> range(start: -1m, stop: now())
1 Like

Let me know if it works out for you! Or you’re still having trouble.

It works now much better with

|> range(start: -1mo, stop: now())

instead of

|> range(start: -1mo)


But, I have another problem where my tasks runs more frequently then expected! Below there is a task that should run every week, my expectations is on Mondays but it outputs two measurements every week (see dates below).

option task = {
name: “Energy_week_test”,
every: 1w,
offset: 10m,

from(bucket: “SensorData_2”)
|> range(start: -1w, stop: now())
|> filter(fn: (r) => r["_measurement"] == “Energy_day”)
|> filter(fn: (r) => r["_field"] == “Wh”)
|> aggregateWindow(every: 1w, fn: sum, createEmpty: false)
|> set(key: “_measurement”, value: “Energy_week”)
|> timeShift(duration: -1h)
|> to(bucket: “SensorData_test”)