# \[solved\] Disks cannot power down because of pruning every 10 Min on SQLite

**URL:** <https://forum.gitea.com/t/solved-disks-cannot-power-down-because-of-pruning-every-10-min-on-sqlite/1268>\
**Category:** Install/Maintain/Configure\
**Created:** [July 2, 2019, 6:34pm UTC](https://forum.gitea.com/t/solved-disks-cannot-power-down-because-of-pruning-every-10-min-on-sqlite/1268 "2019-07-02T18:34:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lpabon](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lpabon](https://forum.gitea.com/u/lpabon)\
**Post date:** [July 2, 2019, 6:34pm UTC](https://forum.gitea.com/t/solved-disks-cannot-power-down-because-of-pruning-every-10-min-on-sqlite/1268/1 "2019-07-02T18:34:00Z")

</div>

I am seeing the following every ten minutes:

```
2019/07/02 17:05:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562087123}
2019/07/02 17:15:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562087723}
2019/07/02 17:25:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562088323}
2019/07/02 17:35:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562088923}
2019/07/02 17:45:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562089523}
2019/07/02 17:55:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562090123}
2019/07/02 18:05:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562090723}
2019/07/02 18:15:23 ...go-xorm/xorm/rows.go:50:newRows() [I] [SQL] SELECT `id`, `repo_id`, `interval`, `enable_prune`, `updated_unix`, `next_update_unix` FROM `mirror` WHERE (next_update_unix<=?) AND (next_update_unix!=0) []interface {}{1562091323}

```

This continuous request to the disk stops the disks from going on standby and saving power.

How can I disable this? or am I going to have to comment the line out on the code 😉

- Luis

---

<div class="post-metadata">

**Author:** ![lpabon](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lpabon](https://forum.gitea.com/u/lpabon)\
**Post date:** [July 2, 2019, 9:02pm UTC](https://forum.gitea.com/t/solved-disks-cannot-power-down-because-of-pruning-every-10-min-on-sqlite/1268/2 "2019-07-02T21:02:33Z")

</div>

Ok, looks like the issue is due to the Cron job and trying to Update Mirrors. Going to disable that or extend the clock.

---

<div class="post-metadata">

**Author:** ![lpabon](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lpabon](https://forum.gitea.com/u/lpabon)\
**Post date:** [July 2, 2019, 9:17pm UTC](https://forum.gitea.com/t/solved-disks-cannot-power-down-because-of-pruning-every-10-min-on-sqlite/1268/3 "2019-07-02T21:17:06Z")

</div>

SOLVED:

Added:

```
[cron.update_mirrors]
ENABLED = false

```

to the app.ini according to [https://github.com/go-gitea/gitea/blob/68ec7b8be9d945ffb83431ba1113997cfc9e648c/modules/setting/cron.go#L54](https://github.com/go-gitea/gitea/blob/68ec7b8be9d945ffb83431ba1113997cfc9e648c/modules/setting/cron.go#L54)

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [July 4, 2019, 8:54pm UTC](https://forum.gitea.com/t/solved-disks-cannot-power-down-because-of-pruning-every-10-min-on-sqlite/1268/4 "2019-07-04T20:54:37Z")

</div>


