influxdata / influxdata/influxdb

Not able to remove the delay from flux script

Open
#12,200 11 comments 0 reactions 1 assignee Claimed by @lyondhill View on GitHub
area/tasks kind/bug team/compute wontfix
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

Updating task by setting `offset` field to `0s` or to and empty string (not sure if it is supported) will result in error:
```
cannot update task without content
```

I am assuming that setting `offset` to `0s` should result in removing the `delay` option from flux script.

- Create a task with `delay` option.
- Request body:
```
{
"flux": "option task = {name:\"task_urdfc\", cron: \"* * * * *\", delay: 15s} from(bucket:\"read_from_b_query_params\") |> range(start: -1h)",
"orgID": "0376c42cfa80c000",
"status": "active"
}
```

- Update created above task with `offset` = `0s`
- Request body
```
{"offset": "0s"}
```

- Response:
```
{
"code": "internal error",
"error": "cannot update task without content",
"message": "failed to update task"
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.