From e44338e2a562878bf138ad21961d1f62509438ff Mon Sep 17 00:00:00 2001 From: mluu12 <87089043+mluu12@users.noreply.github.com> Date: Thu, 8 Jul 2021 12:05:15 -0700 Subject: [PATCH 1/7] fixes issue #2672 https://github.com/influxdata/docs-v2/issues/2672 --- content/influxdb/v2.0/process-data/task-options.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/content/influxdb/v2.0/process-data/task-options.md b/content/influxdb/v2.0/process-data/task-options.md index 2a3508f74..364245e82 100644 --- a/content/influxdb/v2.0/process-data/task-options.md +++ b/content/influxdb/v2.0/process-data/task-options.md @@ -42,6 +42,14 @@ option task = { The interval at which the task runs. +This option also determines when the task first starts to run, depending on the specified time. + +For example, if you save or schedule a task at 2:30 and specify the task should run every hour (`1h`), the task first executes at 3:00pm, and subsequently every hour after that. +option task = {name: "aggregation", every: 1h} + +Likewise, if you schedule the following task at 2:30.05 pm and specify the task should run every minute (`1m`), the task first executes at 2:31.00pm, and subsequently every minute after that. +option task = {name: "aggregation", every: 1m} + _**Data type:** Duration_ ```js From 24c7f6e4eb73c0a62a37ffdcdb221be0e4620e49 Mon Sep 17 00:00:00 2001 From: Kelly Date: Thu, 8 Jul 2021 12:24:03 -0700 Subject: [PATCH 2/7] edit --- .../influxdb/v2.0/process-data/task-options.md | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/content/influxdb/v2.0/process-data/task-options.md b/content/influxdb/v2.0/process-data/task-options.md index 364245e82..b8c90c5e3 100644 --- a/content/influxdb/v2.0/process-data/task-options.md +++ b/content/influxdb/v2.0/process-data/task-options.md @@ -40,15 +40,7 @@ option task = { ## every -The interval at which the task runs. - -This option also determines when the task first starts to run, depending on the specified time. - -For example, if you save or schedule a task at 2:30 and specify the task should run every hour (`1h`), the task first executes at 3:00pm, and subsequently every hour after that. -option task = {name: "aggregation", every: 1h} - -Likewise, if you schedule the following task at 2:30.05 pm and specify the task should run every minute (`1m`), the task first executes at 2:31.00pm, and subsequently every minute after that. -option task = {name: "aggregation", every: 1m} +The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time. _**Data type:** Duration_ @@ -59,6 +51,12 @@ option task = { } ``` +For example, if you save or schedule a task at 2:30 and specify the task should run every hour (`1h`), the task first executes at 3:00pm, and subsequently every hour after that. +option task = {name: "aggregation", every: 1h} + +Likewise, if you schedule the following task at 2:30.05 pm and specify the task should run every minute (`1m`), the task first executes at 2:31.00pm, and subsequently every minute after that. +option task = {name: "aggregation", every: 1m} + {{% note %}} In the InfluxDB UI, the **Interval** field sets this option. {{% /note %}} From 53827035e4eebcfa3126638bee2fa61304540dea Mon Sep 17 00:00:00 2001 From: Kelly Date: Thu, 8 Jul 2021 12:30:17 -0700 Subject: [PATCH 3/7] hr eg covers itt --- content/influxdb/v2.0/process-data/task-options.md | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/content/influxdb/v2.0/process-data/task-options.md b/content/influxdb/v2.0/process-data/task-options.md index b8c90c5e3..c1b7abf87 100644 --- a/content/influxdb/v2.0/process-data/task-options.md +++ b/content/influxdb/v2.0/process-data/task-options.md @@ -40,23 +40,11 @@ option task = { ## every -The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time. - -_**Data type:** Duration_ - -```js -option task = { - // ... - every: 1h, -} -``` +The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time For example, if you save or schedule a task at 2:30 and specify the task should run every hour (`1h`), the task first executes at 3:00pm, and subsequently every hour after that. option task = {name: "aggregation", every: 1h} -Likewise, if you schedule the following task at 2:30.05 pm and specify the task should run every minute (`1m`), the task first executes at 2:31.00pm, and subsequently every minute after that. -option task = {name: "aggregation", every: 1m} - {{% note %}} In the InfluxDB UI, the **Interval** field sets this option. {{% /note %}} From b9215690439b186e09c04e1f621e3fcf2f285e62 Mon Sep 17 00:00:00 2001 From: kelseiv <47797004+kelseiv@users.noreply.github.com> Date: Thu, 8 Jul 2021 12:39:08 -0700 Subject: [PATCH 4/7] Update task-options.md --- .../influxdb/v2.0/process-data/task-options.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/content/influxdb/v2.0/process-data/task-options.md b/content/influxdb/v2.0/process-data/task-options.md index c1b7abf87..880739da9 100644 --- a/content/influxdb/v2.0/process-data/task-options.md +++ b/content/influxdb/v2.0/process-data/task-options.md @@ -40,10 +40,22 @@ option task = { ## every -The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time +The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time, which must be a [duration literal](/influxdb/cloud/reference/flux/language/lexical-elements/#duration-literals). -For example, if you save or schedule a task at 2:30 and specify the task should run every hour (`1h`), the task first executes at 3:00pm, and subsequently every hour after that. -option task = {name: "aggregation", every: 1h} +_**Data type:** Duration_ + +```js +option task = { + // ... + every: 1h, +} +``` + +For example, if you save or schedule a task at 2:30 and run every hour (`1h`): + +`option task = {name: "aggregation", every: 1h}` + +The task first executes at 3:00pm, and subsequently every hour after that. {{% note %}} In the InfluxDB UI, the **Interval** field sets this option. From a7990b2a74bf3d0029ec83a009943247f414babd Mon Sep 17 00:00:00 2001 From: kelseiv <47797004+kelseiv@users.noreply.github.com> Date: Thu, 8 Jul 2021 12:39:58 -0700 Subject: [PATCH 5/7] Update content/influxdb/v2.0/process-data/task-options.md --- content/influxdb/v2.0/process-data/task-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/influxdb/v2.0/process-data/task-options.md b/content/influxdb/v2.0/process-data/task-options.md index 880739da9..6be0e3ecd 100644 --- a/content/influxdb/v2.0/process-data/task-options.md +++ b/content/influxdb/v2.0/process-data/task-options.md @@ -51,7 +51,7 @@ option task = { } ``` -For example, if you save or schedule a task at 2:30 and run every hour (`1h`): +For example, if you save or schedule a task at 2:30 and run the task every hour (`1h`): `option task = {name: "aggregation", every: 1h}` From 71724497cc84910f3f435edf5f31ef2c26b752d2 Mon Sep 17 00:00:00 2001 From: kelseiv <47797004+kelseiv@users.noreply.github.com> Date: Thu, 8 Jul 2021 12:41:01 -0700 Subject: [PATCH 6/7] Update content/influxdb/v2.0/process-data/task-options.md --- content/influxdb/v2.0/process-data/task-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/influxdb/v2.0/process-data/task-options.md b/content/influxdb/v2.0/process-data/task-options.md index 6be0e3ecd..54b2624de 100644 --- a/content/influxdb/v2.0/process-data/task-options.md +++ b/content/influxdb/v2.0/process-data/task-options.md @@ -40,7 +40,7 @@ option task = { ## every -The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time, which must be a [duration literal](/influxdb/cloud/reference/flux/language/lexical-elements/#duration-literals). +The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time([duration literal](/influxdb/cloud/reference/flux/language/lexical-elements/#duration-literals)). _**Data type:** Duration_ From 052de7b5d311067049c15b0e515e164c3aac41f4 Mon Sep 17 00:00:00 2001 From: mluu12 <87089043+mluu12@users.noreply.github.com> Date: Thu, 8 Jul 2021 12:55:33 -0700 Subject: [PATCH 7/7] edits --- content/influxdb/v2.0/process-data/task-options.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/influxdb/v2.0/process-data/task-options.md b/content/influxdb/v2.0/process-data/task-options.md index 54b2624de..2fb10149b 100644 --- a/content/influxdb/v2.0/process-data/task-options.md +++ b/content/influxdb/v2.0/process-data/task-options.md @@ -40,9 +40,9 @@ option task = { ## every -The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time([duration literal](/influxdb/cloud/reference/flux/language/lexical-elements/#duration-literals)). +The interval at which the task runs. This option also determines when the task first starts to run, depending on the specified time (in [duration literal](/influxdb/cloud/reference/flux/language/lexical-elements/#duration-literals)). -_**Data type:** Duration_ +_**Data type:** Duration_ ```js option task = { @@ -52,7 +52,7 @@ option task = { ``` For example, if you save or schedule a task at 2:30 and run the task every hour (`1h`): - + `option task = {name: "aggregation", every: 1h}` The task first executes at 3:00pm, and subsequently every hour after that.