# Run task cause OOM

**URL:** <https://community.influxdata.com/t/run-task-cause-oom/29779>\
**Category:** Tasks\
**Tags:** influxdb, tasks\
**Created:** [May 4, 2023, 7:26am UTC](https://community.influxdata.com/t/run-task-cause-oom/29779 "2023-05-04T07:26:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![L2421800049](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/l2421800049/32/13360_2.png) [@L2421800049](https://community.influxdata.com/u/L2421800049)\
**Post date:** [May 4, 2023, 7:26am UTC](https://community.influxdata.com/t/run-task-cause-oom/29779/1 "2023-05-04T07:26:23Z")

</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 a issue in Github

> <https://github.com/influxdata/influxdb/issues/24212>
>
> My influxdb version is 2.6.1, I have a lot of tasks, they will use a lot of memo…ry, when the memory is not enough, it will cause oom. Is there any way to limit the number of concurrent executions of tasks?

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [May 8, 2023, 9:41am UTC](https://community.influxdata.com/t/run-task-cause-oom/29779/2 "2023-05-08T09:41:47Z")

</div>

Hello @L2421800049,  
Welcome!  
Unfortunately there isn’t an option like that :(.  
There are quite a few problems with the task engine at large scale which is part of the reason for the release of 3.0 in cloud.

> **[Introducing InfluxDB 3.0: Available Today in InfluxDB Cloud Dedicated](https://www.influxdata.com/blog/introducing-influxdb-3-0/)**
>
> As of today, InfluxDB 3.0 now serves as the foundation for all InfluxDB products, both current and future, bringing high performance, unlimited cardinality, SQL support, and low-cost object store to the InfluxDB platform for the first time. #influxdb

And the recommendation to execute tasks in the language of your choice like:

> **[TL;DR InfluxDB Tech Tips: Downsampling with Flight SQL and AWS Lambda](https://www.influxdata.com/blog/tldr-influxdb-tech-tips-downsampling-flight-sql-aws-lambda/)**
>
> This tutorial covers how to perform downsampling with the new #InfluxDB storage engine, InfluxDB IOx, in InfluxDB Cloud (available on AWS us-east-1 and AWS eu-central-1 starting February 1st) using AWS Lambda.

---

<div class="post-metadata">

**Author:** ![grant1](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/grant1/32/15107_2.png) [@grant1](https://community.influxdata.com/u/grant1)\
**Post date:** [May 8, 2023, 9:55am UTC](https://community.influxdata.com/t/run-task-cause-oom/29779/3 "2023-05-08T09:55:00Z")

</div>

Hi @Anaisdg

In the article you linked, it says:

> - **InfluxDB 3.0 Edge:** A single node instance for local and edge deployment that will be available later this year.

We use InfluxDB 2.6 OSS (on prem, of course). When the above is available, will our Flux queries work with it? Or is it planned to be SQL only, like InfluxDB Cloud currently is?

---

<div class="post-metadata">

**Author:** ![L2421800049](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/l2421800049/32/13360_2.png) [@L2421800049](https://community.influxdata.com/u/L2421800049)\
**Post date:** [May 18, 2023, 11:10am UTC](https://community.influxdata.com/t/run-task-cause-oom/29779/4 "2023-05-18T11:10:35Z")

</div>

Thanks for your suggestions. I hope there is an elegant workaround in the future。
