# Can not stop the scheduled-task

**URL:** <https://community.sonatype.com/t/can-not-stop-the-scheduled-task/13413>\
**Category:** Sonatype Nexus Repository\
**Tags:** scheduled-task\
**Created:** [September 6, 2024, 9:29am UTC](https://community.sonatype.com/t/can-not-stop-the-scheduled-task/13413 "2024-09-06T09:29:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiangbaiheng](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jiangbaiheng](https://community.sonatype.com/u/jiangbaiheng)\
**Post date:** [September 6, 2024, 9:29am UTC](https://community.sonatype.com/t/can-not-stop-the-scheduled-task/13413/1 "2024-09-06T09:29:53Z")

</div>

Hello ,  
this scheduled-task can not stop , the log is " admin org.sonatype.nexus.quartz.internal.task.QuartzTaskJob - Task not cancelable: ‘Cleanup service’ [repository.cleanup]"  
So , if I want to stop this task ,what should I do？

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/d/d78410ad7c246e37f2602ee7a2b719aec1f52353.png)  
 ![image](https://canada1.discourse-cdn.com/flex047/uploads/communitysonatype/original/2X/8/835e8b7f50a4e27f61f95d7f3d0b15e86638fd20.png)

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [September 6, 2024, 2:29pm UTC](https://community.sonatype.com/t/can-not-stop-the-scheduled-task/13413/2 "2024-09-06T14:29:57Z")

</div>

It doesn’t appear the task is marked as cancelable so unfortunately at the moment you’d need to wait for the task to complete.

An extreme measure would be to kill the application but in general that isn’t recommended as it may have side effects especially if you’re using H2 or Orient that could cause corruption.

---

<div class="post-metadata">

**Author:** ![jiangbaiheng](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jiangbaiheng](https://community.sonatype.com/u/jiangbaiheng)\
**Post date:** [September 7, 2024, 12:25am UTC](https://community.sonatype.com/t/can-not-stop-the-scheduled-task/13413/3 "2024-09-07T00:25:47Z")

</div>

this scheduled-task every 24 hours execute once, but yesterday’s task hasn’t been completed yet. Will today’s task start?

---

<div class="post-metadata">

**Author:** ![mpiggott](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@mpiggott](https://community.sonatype.com/u/mpiggott)\
**Post date:** [September 9, 2024, 1:58pm UTC](https://community.sonatype.com/t/can-not-stop-the-scheduled-task/13413/4 "2024-09-09T13:58:06Z")

</div>

I believe it ought to wait for the previous task.
