Problem Creation Tasks Influxdb 2.0

Hello,

I tried to create a task in influxdb 2.0 UI but every time I had the same problem below.

Failed to create new task: invalid options; Err: @8:1-13:2: option "task" reassigned: @8:1-13:2: option "task" reassigned
My Task is a basic one, I will put it below too.
// Task options
option task = {
name: “Task1”,
every: 1h,
offset: 0m,
concurrency: 1,
}

// Data source
data = from(bucket: “POC”)
|> range(start: -task.every)
|> filter(fn: ® =>
r.host == “boujemaa-Lenovo-ideapad-320-15IKB”
)

//Show data
data
// Data transformation
|> aggregateWindow(
every: 5m,
fn: last
)
// Data destination
|> to(bucket: “Test”)
Thanks.

@Anis when adding tasks through the UI, leave out the option task assignment. The UI does this for you when you save the task.