# Tasks

**URL:** https://community.influxdata.com/c/influxdb2/tasks/50.md

[Latest](https://community.influxdata.com/latest.md) · [Categories](https://community.influxdata.com/categories.md) · [Tags](https://community.influxdata.com/tags.md)

---

## [About the Tasks category](https://community.influxdata.com/t/about-the-tasks-category/20495)

<div class="topic-metadata">

**Author:** [@mhall119](https://community.influxdata.com/u/mhall119)\
**Replies:** 0

</div>

---

## [Ghost timestmap after deletion](https://community.influxdata.com/t/ghost-timestmap-after-deletion/57945)

<div class="topic-metadata">

**Author:** [@smaginmi](https://community.influxdata.com/u/smaginmi)\
**Replies:** 0\
**Last updated:** [September 15, 2025, 3:40pm UTC](https://community.influxdata.com/t/ghost-timestmap-after-deletion/57945 "2025-09-15T15:40:37Z")

</div>

Hola, for some context: I run a influxdb (InfluxDB v2.7.12 (git: ec9dcde5d6) build\_date: 2025-05-20T22:48:39Z) in a docker container and with the db engine and data path mounted in a volume. The data path is also mount…

---

## [Calculate difference in a InfluxDB task and avoid doubling of data](https://community.influxdata.com/t/calculate-difference-in-a-influxdb-task-and-avoid-doubling-of-data/57047)

<div class="topic-metadata">

**Author:** [@cortlieb](https://community.influxdata.com/u/cortlieb)\
**Replies:** 9\
**Last updated:** [June 30, 2025, 10:38am UTC](https://community.influxdata.com/t/calculate-difference-in-a-influxdb-task-and-avoid-doubling-of-data/57047 "2025-06-30T10:38:35Z")

</div>

I have a task that sounded easy in the beginning and turned out to be difficult. I have some rain sensors. The operation principle is that a small bucket is filled with water when it rains. When the bucket is full, it t…

---

## [Panic: runtime error: slice bounds out of range](https://community.influxdata.com/t/panic-runtime-error-slice-bounds-out-of-range/38804)

<div class="topic-metadata">

**Author:** [@vinh\_lee](https://community.influxdata.com/u/vinh_lee)\
**Replies:** 3\
**Last updated:** [June 9, 2025, 9:18pm UTC](https://community.influxdata.com/t/panic-runtime-error-slice-bounds-out-of-range/38804 "2025-06-09T21:18:29Z")

</div>

Hi all, I am using Influxdb OSSV2, I have been writing a task to check my database status. The task was running fine until 2 or 3 days later, when I checked my task it showed me an error “Failed to get runs: failed to f…

---

## [Run task in specific timezone time](https://community.influxdata.com/t/run-task-in-specific-timezone-time/57150)

<div class="topic-metadata">

**Author:** [@va2dim](https://community.influxdata.com/u/va2dim)\
**Replies:** 1\
**Last updated:** [May 1, 2025, 10:41pm UTC](https://community.influxdata.com/t/run-task-in-specific-timezone-time/57150 "2025-05-01T22:41:08Z")

</div>

Hi, need to create alert if I don’t have any payment till noon in specific timezone (Influx OSS v2.7). trying to do it through task (code below), but as we don’t have possibility to start task in specific timezone, n…

---

## [InfluxDB v2.2.0: Task can't run automatically](https://community.influxdata.com/t/influxdb-v2-2-0-task-cant-run-automatically/31686)

<div class="topic-metadata">

**Author:** [@BIN25](https://community.influxdata.com/u/BIN25)\
**Replies:** 15\
**Last updated:** [February 20, 2025, 12:51pm UTC](https://community.influxdata.com/t/influxdb-v2-2-0-task-cant-run-automatically/31686 "2025-02-20T12:51:33Z")

</div>

Hello, I ran into an issue that the task in influxDB can’t run automatically. It can be run in manual but not able to run every 10s. As a background, I have two influxDB as blue and green environment, the same task can…

---

## [Downsampling data leads to larger differences](https://community.influxdata.com/t/downsampling-data-leads-to-larger-differences/39673)

<div class="topic-metadata">

**Author:** [@Matthias182](https://community.influxdata.com/u/Matthias182)\
**Replies:** 0\
**Last updated:** [December 4, 2024, 1:21pm UTC](https://community.influxdata.com/t/downsampling-data-leads-to-larger-differences/39673 "2024-12-04T13:21:08Z")

</div>

Hello, I am currently starting to learn how I can downsample / aggregate historical data to reduce the amount of storage required. As a start I am using some data from my energy meter. The issue I am facing now is that…

---

## [Timestamp mismatch before and after injection](https://community.influxdata.com/t/timestamp-mismatch-before-and-after-injection/39576)

<div class="topic-metadata">

**Author:** [@Sathyan](https://community.influxdata.com/u/Sathyan)\
**Replies:** 0\
**Last updated:** [November 28, 2024, 12:27pm UTC](https://community.influxdata.com/t/timestamp-mismatch-before-and-after-injection/39576 "2024-11-28T12:27:42Z")

</div>

Hi Community, I have been using influxDB for storing annd visualisation of time-series data. Here I have a influxdb having two buckets namely A and B, the bucket A has data received from data provider in a certain form…

---

## [Influxdb Tasks are in scheduled status](https://community.influxdata.com/t/influxdb-tasks-are-in-scheduled-status/37666)

<div class="topic-metadata">

**Author:** [@vinh\_lee](https://community.influxdata.com/u/vinh_lee)\
**Replies:** 4\
**Last updated:** [October 24, 2024, 4:18am UTC](https://community.influxdata.com/t/influxdb-tasks-are-in-scheduled-status/37666 "2024-10-24T04:18:23Z")

</div>

Hi guys, I scheduled my tasks every 2 seconds and the offset is 2second. Initially, it worked fine, every 2 seconds the task started. However, when I came back my office and checked the task, everything was in scheduled…

---

## [Tasks runs quite long and uses a lot of memory](https://community.influxdata.com/t/tasks-runs-quite-long-and-uses-a-lot-of-memory/35583)

<div class="topic-metadata">

**Author:** [@cortlieb](https://community.influxdata.com/u/cortlieb)\
**Replies:** 6\
**Last updated:** [September 25, 2024, 3:53pm UTC](https://community.influxdata.com/t/tasks-runs-quite-long-and-uses-a-lot-of-memory/35583 "2024-09-25T15:53:30Z")

</div>

Hi experts, recently I used my 1st task in influxdb and it was the 1st time I used Flux. Obviously I miss some experience to set the task up in a proper way. I noticed the following: The task runs each 5 mins. Usual…

---

## [Influx csv uploading issue](https://community.influxdata.com/t/influx-csv-uploading-issue/35197)

<div class="topic-metadata">

**Author:** [@Abhishek](https://community.influxdata.com/u/Abhishek)\
**Replies:** 1\
**Last updated:** [August 6, 2024, 3:00pm UTC](https://community.influxdata.com/t/influx-csv-uploading-issue/35197 "2024-08-06T15:00:49Z")

</div>

Hey Team, I am trying to upload one csv file into influxDB with csv upload section but getting error. I am trying continuously but agian and agian getting error. timestamp,imbalanced\_prop\_metric,motor\_failure\_mask,fd\_…

---

## [New tables when task insert data](https://community.influxdata.com/t/new-tables-when-task-insert-data/34907)

<div class="topic-metadata">

**Author:** [@camposb](https://community.influxdata.com/u/camposb)\
**Replies:** 0\
**Last updated:** [July 10, 2024, 4:21pm UTC](https://community.influxdata.com/t/new-tables-when-task-insert-data/34907 "2024-07-10T16:21:31Z")

</div>

Hi! I have a measurement that receives data each 10s A task was set up to query this measurement each 30s and insert the data changing a tag “ci\_name” For a reason I could not understand, when I check raw data, there …

---

## [Rename issue after aggregate](https://community.influxdata.com/t/rename-issue-after-aggregate/34075)

<div class="topic-metadata">

**Author:** [@vicki](https://community.influxdata.com/u/vicki)\
**Replies:** 1\
**Last updated:** [April 29, 2024, 3:13pm UTC](https://community.influxdata.com/t/rename-issue-after-aggregate/34075 "2024-04-29T15:13:24Z")

</div>

option task = {name: “grp\_viewtime\_1m”, every: 1m} from(bucket: “local\_qos\_acs”) |\> range(start: -task.every) |\> filter(fn: (r) =\> r.\_measurement == “viewtime”) |\> filter(fn: (r) =\> r.\_field == “Ttime” or r.\_field ==…

---

## [Influx 2.7 - using dashboard variable in tasks flux script](https://community.influxdata.com/t/influx-2-7-using-dashboard-variable-in-tasks-flux-script/33713)

<div class="topic-metadata">

**Author:** [@Greg\_Svitak](https://community.influxdata.com/u/Greg_Svitak)\
**Replies:** 3\
**Last updated:** [March 29, 2024, 7:38pm UTC](https://community.influxdata.com/t/influx-2-7-using-dashboard-variable-in-tasks-flux-script/33713 "2024-03-29T19:38:41Z")

</div>

Hello, I created some dashboard variables via the Influx 2 UI. I would like to use those variables in a Flux script that is part of a task or part of a notebook. The v record does not appear to have access to the dashb…

---

## [Are tasks executed without gaps?](https://community.influxdata.com/t/are-tasks-executed-without-gaps/33692)

<div class="topic-metadata">

**Author:** [@mmm](https://community.influxdata.com/u/mmm)\
**Replies:** 1\
**Last updated:** [March 25, 2024, 9:03pm UTC](https://community.influxdata.com/t/are-tasks-executed-without-gaps/33692 "2024-03-25T21:03:39Z")

</div>

Hi, I wonder if tasks that are executed as follows are really seamlessly strung together: option task = {name: "downsample\_1s", every: 1s, offset: 1s} from(bucket: "example-bucket") |\> range(start: -task.every) ..…

---

## [Averaging measurement series with influx task](https://community.influxdata.com/t/averaging-measurement-series-with-influx-task/33401)

<div class="topic-metadata">

**Author:** [@Bergruebe](https://community.influxdata.com/u/Bergruebe)\
**Replies:** 0\
**Last updated:** [March 1, 2024, 5:32pm UTC](https://community.influxdata.com/t/averaging-measurement-series-with-influx-task/33401 "2024-03-01T17:32:04Z")

</div>

I have an influx bucket with the sensor data from temperature sensors (via iobroker). Over the time it grew quite a lot, now /var/lib/influxdb/engine/data is over 40GB big. So I want to reduce the saved measurements,…

---

## [Creating a Downsampling Task with conditions](https://community.influxdata.com/t/creating-a-downsampling-task-with-conditions/33211)

<div class="topic-metadata">

**Author:** [@abucher90](https://community.influxdata.com/u/abucher90)\
**Replies:** 4\
**Last updated:** [February 16, 2024, 8:55am UTC](https://community.influxdata.com/t/creating-a-downsampling-task-with-conditions/33211 "2024-02-16T08:55:26Z")

</div>

Hello everyone, I’m new to using InfluxDB and I’m currently facing a challenge with downsampling my data stored in InfluxDB. Here’s the Influx-task I’ve been working on: option task = {name: "qm-downsampled-5m-mp", eve…

---

## [Strange behavior when using "to" function in a task](https://community.influxdata.com/t/strange-behavior-when-using-to-function-in-a-task/32994)

<div class="topic-metadata">

**Author:** [@Sissi](https://community.influxdata.com/u/Sissi)\
**Replies:** 5\
**Last updated:** [February 12, 2024, 7:55am UTC](https://community.influxdata.com/t/strange-behavior-when-using-to-function-in-a-task/32994 "2024-02-12T07:55:57Z")

</div>

Hello, I have a task executed each 10 minutes, which is in charge to sum several values, stored in several measurement (let’s say cpu\_global = cpu1 + cpu2 + cpu3…) – in the task, the values are summed and then the resul…

---

## [Problem Bucket SQL error](https://community.influxdata.com/t/problem-bucket-sql-error/32271)

<div class="topic-metadata">

**Author:** [@cesar](https://community.influxdata.com/u/cesar)\
**Replies:** 4\
**Last updated:** [December 13, 2023, 7:03am UTC](https://community.influxdata.com/t/problem-bucket-sql-error/32271 "2023-12-13T07:03:08Z")

</div>

Hi team First of all, thank you for being able to participate in the forum. I have a problem that I would appreciate if someone can help me. I am reading data from some sensors with node red and sending them to influx …

---

## [How to unpivot influx data so that to(bucket: ...) doesn't complain?](https://community.influxdata.com/t/how-to-unpivot-influx-data-so-that-to-bucket-doesnt-complain/32402)

<div class="topic-metadata">

**Author:** [@itsmaxdd](https://community.influxdata.com/u/itsmaxdd)\
**Replies:** 4\
**Last updated:** [December 10, 2023, 3:10pm UTC](https://community.influxdata.com/t/how-to-unpivot-influx-data-so-that-to-bucket-doesnt-complain/32402 "2023-12-10T15:10:05Z")

</div>

Hello, I have a task extracting some data which is run periodically due to its size. Basically i’m creating a discharge and a charge power/energy over a period of time out of voltage and current (and its sign) which i …

---

## [Export data from influxDB 2.0 to csv file or directly to another bucket](https://community.influxdata.com/t/export-data-from-influxdb-2-0-to-csv-file-or-directly-to-another-bucket/32335)

<div class="topic-metadata">

**Author:** [@Symptom](https://community.influxdata.com/u/Symptom)\
**Replies:** 7\
**Last updated:** [November 30, 2023, 6:26pm UTC](https://community.influxdata.com/t/export-data-from-influxdb-2-0-to-csv-file-or-directly-to-another-bucket/32335 "2023-11-30T18:26:37Z")

</div>

Hello, I’m running influxDB 2.7.1, installed on a Debian I currently have data on one bucket and I want to transfer them to a new bucket, but the new bucket doesn’t have same structure, so I’m looking how to make it pr…

---

## [Nested query using array](https://community.influxdata.com/t/nested-query-using-array/32317)

<div class="topic-metadata">

**Author:** [@OreoCheesecake](https://community.influxdata.com/u/OreoCheesecake)\
**Replies:** 6\
**Last updated:** [November 28, 2023, 11:03pm UTC](https://community.influxdata.com/t/nested-query-using-array/32317 "2023-11-28T23:03:35Z")

</div>

Hi there! I am trying to write a Flux task that runs same query multiple times with different regex variable: import "experimental/array" option task = {name: "test", every: 10s} containers = \[ {regex: /(?i)acces…

---

## [Task execution after host was shutdown](https://community.influxdata.com/t/task-execution-after-host-was-shutdown/32026)

<div class="topic-metadata">

**Author:** [@reitob](https://community.influxdata.com/u/reitob)\
**Replies:** 3\
**Last updated:** [November 15, 2023, 1:29pm UTC](https://community.influxdata.com/t/task-execution-after-host-was-shutdown/32026 "2023-11-15T13:29:16Z")

</div>

It seems that tasks which would have been scheduled during the host where InfluxDB runs on was shutdown don’t get executed after the host is available again. Is there any possibility to still execute these ‘lost’ tasks? …

---

## [InfluxDB deployment for Anomaly detection](https://community.influxdata.com/t/influxdb-deployment-for-anomaly-detection/31510)

<div class="topic-metadata">

**Author:** [@Utkarsh\_Kumar](https://community.influxdata.com/u/Utkarsh_Kumar)\
**Replies:** 1\
**Last updated:** [September 20, 2023, 7:29pm UTC](https://community.influxdata.com/t/influxdb-deployment-for-anomaly-detection/31510 "2023-09-20T19:29:32Z")

</div>

We need to to deploy InfluxDB for anomaly detection in streaming data using Influx, Telegraf, and Kapacitor on K8s. Are we required to deploy each one as separate installations or can the use new version of Influx OSS h…

---

## [HELP: Can I Create Alerts (Checks, Notification Endpoint, Notification Rule) via API or any client lib?](https://community.influxdata.com/t/help-can-i-create-alerts-checks-notification-endpoint-notification-rule-via-api-or-any-client-lib/31455)

<div class="topic-metadata">

**Author:** [@yockgen](https://community.influxdata.com/u/yockgen)\
**Replies:** 1\
**Last updated:** [September 11, 2023, 4:43pm UTC](https://community.influxdata.com/t/help-can-i-create-alerts-checks-notification-endpoint-notification-rule-via-api-or-any-client-lib/31455 "2023-09-11T16:43:41Z")

</div>

Can I Create Alerts (Checks, Notification Endpoint, Notification Rule) via API or any client lib? Client Version: github.com/influxdata/influxdb-client-go/v2 v2.12.3 InfluxDB Version: InfluxDB v2.3.0+SNAPSHOT.090f68173…

---

## [Unable to create task](https://community.influxdata.com/t/unable-to-create-task/30500)

<div class="topic-metadata">

**Author:** [@ardiehl](https://community.influxdata.com/u/ardiehl)\
**Replies:** 2\
**Last updated:** [June 30, 2023, 4:55pm UTC](https://community.influxdata.com/t/unable-to-create-task/30500 "2023-06-30T16:55:27Z")

</div>

When trying to create a task via influxhost:8086 from the samples like this one: option task = {name: "downsample\_5m\_precision", every: 1h, offset: 0m} from(bucket: "example-bucket") |\> range(start: -task.every) …

---

## [Grouping the Vehicle\_Speed by BCM\_Commandmodes(Dont have any Tags in Measurements)](https://community.influxdata.com/t/grouping-the-vehicle-speed-by-bcm-commandmodes-dont-have-any-tags-in-measurements/30346)

<div class="topic-metadata">

**Author:** [@nagashree](https://community.influxdata.com/u/nagashree)\
**Replies:** 0\
**Last updated:** [June 19, 2023, 6:03am UTC](https://community.influxdata.com/t/grouping-the-vehicle-speed-by-bcm-commandmodes-dont-have-any-tags-in-measurements/30346 "2023-06-19T06:03:29Z")

</div>

This is the query i have written but not getting the Proper graph For this. import “experimental” from(bucket: “Grafana\_Bucket”) |\> range(start: v.timeRangeStart, stop: v.timeRangeStop) |\> filter(fn: (r) =\> r.\_measur…

---

## [Downsampling Power to Energy with influxdb2](https://community.influxdata.com/t/downsampling-power-to-energy-with-influxdb2/30016)

<div class="topic-metadata">

**Author:** [@AminShAT](https://community.influxdata.com/u/AminShAT)\
**Replies:** 8\
**Last updated:** [May 22, 2023, 6:47pm UTC](https://community.influxdata.com/t/downsampling-power-to-energy-with-influxdb2/30016 "2023-05-22T18:47:29Z")

</div>

Hi there, I am quite new to InfluxDB, ran across it, when we got our new PV system from Victron and I learnt about the power of Nodered. So storing all the metering information works fine. The PV system sends to the po…

---

## [Run task cause OOM](https://community.influxdata.com/t/run-task-cause-oom/29779)

<div class="topic-metadata">

**Author:** [@L2421800049](https://community.influxdata.com/u/L2421800049)\
**Replies:** 3\
**Last updated:** [May 18, 2023, 11:10am UTC](https://community.influxdata.com/t/run-task-cause-oom/29779 "2023-05-18T11:10:35Z")

</div>

My influxdb version is 2.6.1, I have a lot of tasks, they will use a lot of memory, when the memory is not enough, it will cause oom. Is there any way to limit the number of concurrent executions of tasks? I have submit…

---

## [aggregateWindow function conditionaly based on first element only, possible?](https://community.influxdata.com/t/aggregatewindow-function-conditionaly-based-on-first-element-only-possible/29746)

<div class="topic-metadata">

**Author:** [@mrVanDalo](https://community.influxdata.com/u/mrVanDalo)\
**Replies:** 1\
**Last updated:** [May 2, 2023, 9:10am UTC](https://community.influxdata.com/t/aggregatewindow-function-conditionaly-based-on-first-element-only-possible/29746 "2023-05-02T09:10:17Z")

</div>

types.isNumeric is very slow. So filter metrics with that function before downsampling with an aggregateWindow function is not really an option. But because not every \_value is a number I have to use types.isNumeric if I…

[Next page](https://community.influxdata.com/c/influxdb2/tasks/50.md?page=1)
