# Scheduled Task is queued and not scheduled

**URL:** https://forum.shopware.com/t/scheduled-task-is-queued-and-not-scheduled/93886
**Category:** Shopware 6 (English)
**Created:** [11. April 2022 um 09:40 UTC](https://forum.shopware.com/t/scheduled-task-is-queued-and-not-scheduled/93886 "2022-04-11T09:40:41Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)
#### Post date: [11. April 2022 um 09:40 UTC](https://forum.shopware.com/t/scheduled-task-is-queued-and-not-scheduled/93886/1 "2022-04-11T09:40:41Z")

</div>

Hello,  
I have created a scheduled task but in database it shows that the status is queued instead of scheduled. I have followed the following tutorial:

> **[Add scheduled task](https://developer.shopware.com/docs/guides/plugins/plugins/plugin-fundamentals/add-scheduled-task#overview)**

How to fix this?

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [11. April 2022 um 15:52 UTC](https://forum.shopware.com/t/scheduled-task-is-queued-and-not-scheduled/93886/2 "2022-04-11T15:52:43Z")

</div>

Are Cronjobs running?

---

<div class="post-metadata">

### Author: ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)
#### Post date: [12. April 2022 um 04:20 UTC](https://forum.shopware.com/t/scheduled-task-is-queued-and-not-scheduled/93886/3 "2022-04-12T04:20:23Z")

</div>

when i wrote bin/console messenger:consume  
I could see the other scheduled tasks running so yes I guess they are running.

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [13. April 2022 um 08:30 UTC](https://forum.shopware.com/t/scheduled-task-is-queued-and-not-scheduled/93886/4 "2022-04-13T08:30:42Z")

</div>

Did you register the task?

It is in the last section of the documentation you referred to.

Executing the scheduled task

---

<div class="post-metadata">

### Author: ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)
#### Post date: [13. April 2022 um 08:58 UTC](https://forum.shopware.com/t/scheduled-task-is-queued-and-not-scheduled/93886/5 "2022-04-13T08:58:00Z")

</div>

I did. I am running it on localhost. Could this be an issue?

---

<div class="post-metadata">

### Author: ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)
#### Post date: [13. April 2022 um 10:18 UTC](https://forum.shopware.com/t/scheduled-task-is-queued-and-not-scheduled/93886/6 "2022-04-13T10:18:18Z")

</div>

If you status is queued, maybe it already run, failed and was queued again to rerun?

Wann happens if you delete alle messages except your task?
