# Long-running background task

**URL:** <https://community.sonarsource.com/t/long-running-background-task/61028>\
**Category:** SonarQube Server / Community Build\
**Created:** [April 2, 2022, 2:44am UTC](https://community.sonarsource.com/t/long-running-background-task/61028 "2022-04-02T02:44:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajesh\_Kumar1](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@Rajesh\_Kumar1](https://community.sonarsource.com/u/Rajesh_Kumar1)\
**Post date:** [April 2, 2022, 2:44am UTC](https://community.sonarsource.com/t/long-running-background-task/61028/1 "2022-04-02T02:44:35Z")

</div>

Hi Team ,

Can In progress background task be cancelled which running from more than 2-3 days . Also where that log can be seen for Why the task taking such a long time and blocking all other task ?

Also there is no default timeout after which task should be cancelled or failed .

---

<div class="post-metadata">

**Author:** ![ganncamp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/ganncamp/32/1261_2.png) [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Post date:** [April 4, 2022, 12:57pm UTC](https://community.sonarsource.com/t/long-running-background-task/61028/2 "2022-04-04T12:57:48Z")

</div>

Hi,

I’ve moved your post to a new thread; the one you appended to was nearly 4y old.

Unfortunately, I think you’re going to have to restart your server to kill those tasks. I’m not aware of a mechanism to kill a “running” task.

&nbsp;  
Ann
