FriendsOfShopware / FroshTools

A collection of useful tools for Shopware 6
MIT License
64 stars 27 forks source link

Scheduled tasks #253

Closed JNDUFOUR closed 5 months ago

JNDUFOUR commented 8 months ago

Question

I am reaching out today because I have encountered an issue with my Shopware 6.5.8 installation. I have noticed a persistent error indicating "Scheduled tasks overdue," with a warning specifying a delay of 76 minutes, whereas the maximum acceptable delay is 10 minutes.

However, I have added the following cron job to the server to run every 3 minutes:

javascript

/bin/console messenger:consume async --time-limit=30 --memory-limit=128M >/dev/null 2>&1

Capture d’écran 2024-03-12 à 20 45 02 Capture d’écran 2024-03-12 à 20 45 02
jankal commented 6 months ago

Hey @JNDUFOUR Your command does not run scheduled tasks.

To run scheduled tasks periodically, refere to the the shopware docs - https://developer.shopware.com/docs/guides/plugins/plugins/plugin-fundamentals/add-scheduled-task.html#executing-the-scheduled-task

$ bin/console scheduled-task:run
tinect commented 5 months ago

We'll close here.