influxdata / influxdata/influx-cli
[bug + docs] `influx task list` does not support --before or --after
@adepke is already working on this.
Since Jul 13, 2022.
- Dominant language
- Go
- Stars
- 75
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
The help for the influx cli `task run list` subcommands lists two options `--before` and `--after` to filter task run logs. These flags do not filter the run log and there is not warning or error or help that these flags don't work with the `run list` command.
The help says
```
--before value runs before this time
--after value runs after this time
```
My task runs every 5 minutes, generating 288 runs per day. Since the `--limit` option has an (undocumented) max of 500, I can only see about 41.7 hours of the most recent task runs.
*How do I see older task history?*
Here is the full help output
```
> influx task run list -h
NAME:
influx task run list - List runs for a tasks
USAGE:
influx task run list [command options] [arguments...]
COMMON OPTIONS:
--host value HTTP address of InfluxDB [$INFLUX_HOST]
--skip-verify Skip TLS certificate chain and host name verification [$INFLUX_SKIP_VERIFY]
--configs-path value Path to the influx CLI configurations [$INFLUX_CONFIGS_PATH]
--active-config value, -c value Config name to use for command [$INFLUX_ACTIVE_CONFIG]
--http-debug
--json Output data as JSON [$INFLUX_OUTPUT_JSON]
--hide-headers Hide the table headers in output data [$INFLUX_HIDE_HEADERS]
--token value, -t value Token to authenticate request [$INFLUX_TOKEN]
OPTIONS:
--task-id value task ID (required)
--run-id value run id
--before value runs before this time
--after value runs after this time
--limit value limit the results (default: 100)
```
```
> influx version
Influx CLI dev (git: none) build_date: 2022-07-13T21:18:19Z
```
I built it from commit `c44d2f232baface332f2957a9c49d84eb86b8093`.
cloud2 documentation: https://docs.influxdata.com/influxdb/cloud/process-data/manage-tasks/task-run-history/
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.