# \[BUG?\] Influxdb 2.0 Inactive Tasks Running

**URL:** https://community.influxdata.com/t/bug-influxdb-2-0-inactive-tasks-running/20155
**Category:** Kapacitor
**Tags:** influxdb
**Created:** [May 31, 2021, 7:49pm UTC](https://community.influxdata.com/t/bug-influxdb-2-0-inactive-tasks-running/20155 "2021-05-31T19:49:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mert](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/mert/32/5152_2.png) [@Mert](https://community.influxdata.com/u/Mert)
#### Post date: [May 31, 2021, 7:49pm UTC](https://community.influxdata.com/t/bug-influxdb-2-0-inactive-tasks-running/20155/1 "2021-05-31T19:49:41Z")

</div>

Influxdb 2.0.4 keeps sending me notifications from inactive tasks.

- I’ve a simple check for test purposes and it checks cpu usage and returns status, info.
- I’ve a simple notification rule which sends notifications every 1m on ANY status.
- The check is inactive, so I expect it to not run.

Even though it sends once in a minute to the endpoint, it shows the same notification twice. Why?

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/9/93552d83f184853bf9269325796bff45842f40c5.png)

Status:

 ![image](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/3/39b32422e8ebfbc064fa14e3f8e4212be3410c31.png)

Check:

```auto
import "influxdata/influxdb/monitor"
import "influxdata/influxdb/schema"

option task = {name: "CPU Check 2", every: 1m, offset: 10s}

check = {
	_check_id: "0000000000000002",
	_check_name: "CPU Check 2",
	_type: "custom",
	tags: {},
}
data = from(bucket: "tutorial")
	|> range(start: -1m)
	|> filter(fn: (r) =>
		(r["_measurement"] == "cpu" and r["_field"] == "usage_user" and r["cpu"] == "cpu-total"))
	|> mean()
	|> duplicate(column: "_stop", as: "_time")
	|> last()

data
	|> schema.fieldsAsCols()
	|> monitor["check"](
		crit: (r) =>
			(r["usage_user"] > 99.9),
		warn: (r) =>
			(r["usage_user"] > 99.8),
		info: (r) =>
			(r["usage_user"] > 1.0),
		ok: (r) =>
			(r["usage_user"] <= 1.0),
		messageFn: (r) =>
			(if r._level == "ok" then "Things are looking good." else "Level: ${r._level} Value: ${string(v: r._value)}%"),
		data: check,
	)

```

The check is inactive but it still runs every minute. Am I missing something?

---

<div class="post-metadata">

### Author: ![FixTestRepeat](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/fixtestrepeat/32/5208_2.png) [@FixTestRepeat](https://community.influxdata.com/u/FixTestRepeat)
#### Post date: [June 1, 2021, 11:05pm UTC](https://community.influxdata.com/t/bug-influxdb-2-0-inactive-tasks-running/20155/2 "2021-06-01T23:05:07Z")

</div>

If you’re in a position to upgrade to 2.0.6, that would be worth trying. I skimmed the release notes yesterday and although I didn’t spot anything specifically mentioned around fixes for something like this, it may be resolved.
