From bdee29bbc20fe8500bd77727ccb225cf5cd3942c Mon Sep 17 00:00:00 2001 From: Kelly Date: Mon, 29 Mar 2021 18:57:18 -0700 Subject: [PATCH] options task >> option task --- .../cloud/process-data/manage-tasks/create-task.md | 6 +++--- .../flux/stdlib/influxdb-tasks/lastsuccess.md | 2 +- .../v2.0/process-data/manage-tasks/create-task.md | 6 +++--- content/influxdb/v2.0/process-data/task-options.md | 10 +++++----- .../flux/stdlib/influxdb-tasks/lastsuccess.md | 2 +- content/influxdb/v2.0/upgrade/v1-to-v2/migrate-cqs.md | 6 +++--- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/content/influxdb/cloud/process-data/manage-tasks/create-task.md b/content/influxdb/cloud/process-data/manage-tasks/create-task.md index 23d854080..33703042a 100644 --- a/content/influxdb/cloud/process-data/manage-tasks/create-task.md +++ b/content/influxdb/cloud/process-data/manage-tasks/create-task.md @@ -55,8 +55,8 @@ The InfluxDB UI provides multiple ways to create a task: 6. In the right panel, enter your task script. {{% note %}} -##### Leave out the options tasks assignment -When creating a _new_ task in the InfluxDB Task UI, leave out the `options task` +##### Leave out the option tasks assignment +When creating a _new_ task in the InfluxDB Task UI, leave out the `option task` assignment that defines [task options](/influxdb/v2.0/process-data/task-options/). The InfluxDB UI injects this code using settings specified in the **Task options** fields in the left panel when you save the task. @@ -111,7 +111,7 @@ influx task create --org my-org -f /tasks/cq-mean-1h.flux ```sh influx task create --org my-org - # to open stdin pipe -options task = { +option task = { name: "task-name", every: 6h } diff --git a/content/influxdb/cloud/reference/flux/stdlib/influxdb-tasks/lastsuccess.md b/content/influxdb/cloud/reference/flux/stdlib/influxdb-tasks/lastsuccess.md index 551da8c58..de771383b 100644 --- a/content/influxdb/cloud/reference/flux/stdlib/influxdb-tasks/lastsuccess.md +++ b/content/influxdb/cloud/reference/flux/stdlib/influxdb-tasks/lastsuccess.md @@ -30,7 +30,7 @@ _**Data type:** Time | Duration_ ```js import "influxdata/influxdb/tasks" -options task = { +option task = { name: "Example task", every: 30m } diff --git a/content/influxdb/v2.0/process-data/manage-tasks/create-task.md b/content/influxdb/v2.0/process-data/manage-tasks/create-task.md index 06335012a..d90ee1756 100644 --- a/content/influxdb/v2.0/process-data/manage-tasks/create-task.md +++ b/content/influxdb/v2.0/process-data/manage-tasks/create-task.md @@ -55,8 +55,8 @@ The InfluxDB UI provides multiple ways to create a task: 6. In the right panel, enter your task script. {{% note %}} -##### Leave out the options tasks assignment -When creating a _new_ task in the InfluxDB Task UI, leave out the `options task` +##### Leave out the option tasks assignment +When creating a _new_ task in the InfluxDB Task UI, leave out the `option task` assignment that defines [task options](/influxdb/v2.0/process-data/task-options/). The InfluxDB UI injects this code using settings specified in the **Task options** fields in the left panel when you save the task. @@ -111,7 +111,7 @@ influx task create --org my-org -f /tasks/cq-mean-1h.flux ```sh influx task create --org my-org - # to open stdin pipe -options task = { +option task = { name: "task-name", every: 6h } diff --git a/content/influxdb/v2.0/process-data/task-options.md b/content/influxdb/v2.0/process-data/task-options.md index 3341ace13..2a3508f74 100644 --- a/content/influxdb/v2.0/process-data/task-options.md +++ b/content/influxdb/v2.0/process-data/task-options.md @@ -32,7 +32,7 @@ The name of the task. _**Required**_. _**Data type:** String_ ```js -options task = { +option task = { name: "taskName", // ... } @@ -45,7 +45,7 @@ The interval at which the task runs. _**Data type:** Duration_ ```js -options task = { +option task = { // ... every: 1h, } @@ -63,7 +63,7 @@ Cron scheduling is based on system time. _**Data type:** String_ ```js -options task = { +option task = { // ... cron: "0 * * * *", } @@ -80,7 +80,7 @@ A common use case is offsetting execution to account for data that may arrive la _**Data type:** Duration_ ```js -options task = { +option task = { // ... offset: 10m, } @@ -94,7 +94,7 @@ other running task executions complete. _**Data type:** Integer_ ```js -options task = { +option task = { // ... concurrency: 2, } diff --git a/content/influxdb/v2.0/reference/flux/stdlib/influxdb-tasks/lastsuccess.md b/content/influxdb/v2.0/reference/flux/stdlib/influxdb-tasks/lastsuccess.md index ef4febacf..36376437e 100644 --- a/content/influxdb/v2.0/reference/flux/stdlib/influxdb-tasks/lastsuccess.md +++ b/content/influxdb/v2.0/reference/flux/stdlib/influxdb-tasks/lastsuccess.md @@ -30,7 +30,7 @@ _**Data type:** Time | Duration_ ```js import "influxdata/influxdb/tasks" -options task = { +option task = { name: "Example task", every: 30m } diff --git a/content/influxdb/v2.0/upgrade/v1-to-v2/migrate-cqs.md b/content/influxdb/v2.0/upgrade/v1-to-v2/migrate-cqs.md index a6cde357e..a46439443 100644 --- a/content/influxdb/v2.0/upgrade/v1-to-v2/migrate-cqs.md +++ b/content/influxdb/v2.0/upgrade/v1-to-v2/migrate-cqs.md @@ -69,7 +69,7 @@ END ##### Equivalent Flux task ```js -options task = { +option task = { name: "downsample-daily", every: 1d } @@ -306,7 +306,7 @@ GROUP BY time(1h) ###### Flux ```js -options task = { +option task = { name: "task-name", every: 1h } @@ -345,7 +345,7 @@ END ###### Flux ```js -options task = { +option task = { name: "resample-example", every: 1m }