Messenger Queue voller Fehler?

Ahoi,

nach etwas Anlauf läuft einer unserer Shopkundenshops (Shopware 6.6.9.0) eigentlich recht gut- allerdings sind laut Frosch Plugin dauernd Fehler in der Queue und die Zeit geht immer weiter nach oben. Der Fehler, den wir in den Log files finden können, ist folgender:

[2025-01-15T02:27:46.838603+00:00] messenger.CRITICAL: Error thrown while handling message Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportGenerateTask. Removing from transport after 3 retries. Error: "Handling "Shopware\Core\Content\ProductExport\ScheduledTask\ProductExportGenerateTask" failed: Typed property Shopware\Core\Framework\MessageQueue\ScheduledTask\ScheduledTaskHandler::$scheduledTaskRepository must not be accessed before initialization" {"class":"Shopware\\Core\\Content\\ProductExport\\ScheduledTask\\ProductExportGenerateTask","message_id":"1695","retryCount":3,"error":"Handling \"Shopware\\Core\\Content\\ProductExport\\ScheduledTask\\ProductExportGenerateTask\" failed: Typed property Shopware\\Core\\Framework\\MessageQueue\\ScheduledTask\\ScheduledTaskHandler::$scheduledTaskRepository must not be accessed before initialization","exception":"[object] (Symfony\\Component\\Messenger\\Exception\\HandlerFailedException(code: 0): Handling \"Shopware\\Core\\Content\\ProductExport\\ScheduledTask\\ProductExportGenerateTask\" failed: Typed property Shopware\\Core\\Framework\\MessageQueue\\ScheduledTask\\ScheduledTaskHandler::$scheduledTaskRepository must not be accessed before initialization at /var/www/vhosts/SHOP.de/httpdocs/sw6.SHOP.de/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php:124)\n[previous exception] [object] (Error(code: 0): Typed property Shopware\\Core\\Framework\\MessageQueue\\ScheduledTask\\ScheduledTaskHandler::$scheduledTaskRepository must not be accessed before initialization at /var/www/vhosts/SHOP.de/httpdocs/sw6.SHOP.de/vendor/shopware/core/Framework/MessageQueue/ScheduledTask/ScheduledTaskHandler.php:40)"} []

Schaue ich direkt in der Datenbank in der Tabelle „messenger_messages“ nach, kommt folgender Eintrag die ganze Zeit:

{"type":"Shopware\\Core\\Content\\ProductExport\\ScheduledTask\\ProductExportGenerateTask","X-Message-Stamp-Symfony\\Component\\Messenger\\Stamp\\BusNameStamp":"[{\"busName\":\"messenger.bus.default\"}]","X-Message-Stamp-Symfony\\Component\\Messenger\\Stamp\\TransportMessageIdStamp":"[{\"id\":\"1739\"},{\"id\":\"1740\"},{\"id\":\"1741\"},{\"id\":\"1742\"}]","X-Message-Stamp-Symfony\\Component\\Messenger\\Stamp\\HandledStamp":"[{\"result\":null,\"handlerName\":\"Shopware\\\\Core\\\\Content\\\\ProductExport\\\\ScheduledTask\\\\ProductExportGenerateTaskHandler::__invoke\"}]","X-Message-Stamp-Symfony\\Component\\Messenger\\Stamp\\ErrorDetailsStamp":"[{\"exceptionClass\":\"Error\",\"exceptionCode\":0,\"exceptionMessage\":\"Typed property Shopware\\\\Core\\\\Framework\\\\MessageQueue\\\\ScheduledTask\\\\ScheduledTaskHandler::$scheduledTaskRepository must not be accessed before initialization\",\"flattenException\":{\"message\":\"Typed property Shopware\\\\Core\\\\Framework\\\\MessageQueue\\\\ScheduledTask\\\\ScheduledTaskHandler::$scheduledTaskRepository must not be accessed before initialization\",\"code\":0,\"headers\":[],\"class\":\"Error\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/shopware\\\/core\\\/Framework\\\/MessageQueue\\\/ScheduledTask\\\/ScheduledTaskHandler.php\",\"line\":40,\"previous\":null,\"status\":500,\"status_text\":\"Internal Server Error\",\"trace\":[{\"namespace\":\"\",\"short_class\":\"\",\"class\":\"\",\"type\":\"\",\"function\":\"\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/shopware\\\/core\\\/Framework\\\/MessageQueue\\\/ScheduledTask\\\/ScheduledTaskHandler.php\",\"line\":40,\"args\":[]},{\"namespace\":\"Shopware\\\\Core\\\\Framework\\\\MessageQueue\\\\ScheduledTask\",\"short_class\":\"ScheduledTaskHandler\",\"class\":\"Shopware\\\\Core\\\\Framework\\\\MessageQueue\\\\ScheduledTask\\\\ScheduledTaskHandler\",\"type\":\"->\",\"function\":\"__invoke\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/HandleMessageMiddleware.php\",\"line\":152,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\",\"short_class\":\"HandleMessageMiddleware\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\HandleMessageMiddleware\",\"type\":\"->\",\"function\":\"callHandler\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/HandleMessageMiddleware.php\",\"line\":91,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\",\"short_class\":\"HandleMessageMiddleware\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\HandleMessageMiddleware\",\"type\":\"->\",\"function\":\"handle\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/SendMessageMiddleware.php\",\"line\":71,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\",\"short_class\":\"SendMessageMiddleware\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\SendMessageMiddleware\",\"type\":\"->\",\"function\":\"handle\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/FailedMessageProcessingMiddleware.php\",\"line\":34,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\",\"short_class\":\"FailedMessageProcessingMiddleware\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\FailedMessageProcessingMiddleware\",\"type\":\"->\",\"function\":\"handle\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/DispatchAfterCurrentBusMiddleware.php\",\"line\":68,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\",\"short_class\":\"DispatchAfterCurrentBusMiddleware\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\DispatchAfterCurrentBusMiddleware\",\"type\":\"->\",\"function\":\"handle\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/RejectRedeliveredMessageMiddleware.php\",\"line\":41,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\",\"short_class\":\"RejectRedeliveredMessageMiddleware\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\RejectRedeliveredMessageMiddleware\",\"type\":\"->\",\"function\":\"handle\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/AddBusNameStampMiddleware.php\",\"line\":35,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\",\"short_class\":\"AddBusNameStampMiddleware\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\AddBusNameStampMiddleware\",\"type\":\"->\",\"function\":\"handle\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/MessageBus.php\",\"line\":70,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\",\"short_class\":\"MessageBus\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\MessageBus\",\"type\":\"->\",\"function\":\"dispatch\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/RoutableMessageBus.php\",\"line\":54,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\",\"short_class\":\"RoutableMessageBus\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\RoutableMessageBus\",\"type\":\"->\",\"function\":\"dispatch\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Worker.php\",\"line\":162,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\",\"short_class\":\"Worker\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Worker\",\"type\":\"->\",\"function\":\"handleMessage\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Worker.php\",\"line\":109,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\",\"short_class\":\"Worker\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Worker\",\"type\":\"->\",\"function\":\"run\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Command\\\/ConsumeMessagesCommand.php\",\"line\":244,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Messenger\\\\Command\",\"short_class\":\"ConsumeMessagesCommand\",\"class\":\"Symfony\\\\Component\\\\Messenger\\\\Command\\\\ConsumeMessagesCommand\",\"type\":\"->\",\"function\":\"execute\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/console\\\/Command\\\/Command.php\",\"line\":279,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Console\\\\Command\",\"short_class\":\"Command\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Command\\\\Command\",\"type\":\"->\",\"function\":\"run\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/console\\\/Application.php\",\"line\":1047,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Console\",\"short_class\":\"Application\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"function\":\"doRunCommand\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/framework-bundle\\\/Console\\\/Application.php\",\"line\":123,\"args\":[]},{\"namespace\":\"Symfony\\\\Bundle\\\\FrameworkBundle\\\\Console\",\"short_class\":\"Application\",\"class\":\"Symfony\\\\Bundle\\\\FrameworkBundle\\\\Console\\\\Application\",\"type\":\"->\",\"function\":\"doRunCommand\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/console\\\/Application.php\",\"line\":316,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Console\",\"short_class\":\"Application\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"function\":\"doRun\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/framework-bundle\\\/Console\\\/Application.php\",\"line\":77,\"args\":[]},{\"namespace\":\"Symfony\\\\Bundle\\\\FrameworkBundle\\\\Console\",\"short_class\":\"Application\",\"class\":\"Symfony\\\\Bundle\\\\FrameworkBundle\\\\Console\\\\Application\",\"type\":\"->\",\"function\":\"doRun\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/console\\\/Application.php\",\"line\":167,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Console\",\"short_class\":\"Application\",\"class\":\"Symfony\\\\Component\\\\Console\\\\Application\",\"type\":\"->\",\"function\":\"run\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/runtime\\\/Runner\\\/Symfony\\\/ConsoleApplicationRunner.php\",\"line\":49,\"args\":[]},{\"namespace\":\"Symfony\\\\Component\\\\Runtime\\\\Runner\\\\Symfony\",\"short_class\":\"ConsoleApplicationRunner\",\"class\":\"Symfony\\\\Component\\\\Runtime\\\\Runner\\\\Symfony\\\\ConsoleApplicationRunner\",\"type\":\"->\",\"function\":\"run\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/autoload_runtime.php\",\"line\":29,\"args\":[]},{\"namespace\":\"\",\"short_class\":\"\",\"class\":\"\",\"type\":\"\",\"function\":\"require_once\",\"file\":\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/bin\\\/console\",\"line\":17,\"args\":[[\"string\",\"\\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/autoload_runtime.php\"]]}],\"trace_as_string\":\"#0 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/HandleMessageMiddleware.php(152): Shopware\\\\Core\\\\Framework\\\\MessageQueue\\\\ScheduledTask\\\\ScheduledTaskHandler->__invoke()\\n#1 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/HandleMessageMiddleware.php(91): Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\HandleMessageMiddleware->callHandler()\\n#2 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/SendMessageMiddleware.php(71): Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\HandleMessageMiddleware->handle()\\n#3 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/FailedMessageProcessingMiddleware.php(34): Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\SendMessageMiddleware->handle()\\n#4 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/DispatchAfterCurrentBusMiddleware.php(68): Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\FailedMessageProcessingMiddleware->handle()\\n#5 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/RejectRedeliveredMessageMiddleware.php(41): Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\DispatchAfterCurrentBusMiddleware->handle()\\n#6 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Middleware\\\/AddBusNameStampMiddleware.php(35): Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\RejectRedeliveredMessageMiddleware->handle()\\n#7 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/MessageBus.php(70): Symfony\\\\Component\\\\Messenger\\\\Middleware\\\\AddBusNameStampMiddleware->handle()\\n#8 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/RoutableMessageBus.php(54): Symfony\\\\Component\\\\Messenger\\\\MessageBus->dispatch()\\n#9 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Worker.php(162): Symfony\\\\Component\\\\Messenger\\\\RoutableMessageBus->dispatch()\\n#10 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Worker.php(109): Symfony\\\\Component\\\\Messenger\\\\Worker->handleMessage()\\n#11 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/messenger\\\/Command\\\/ConsumeMessagesCommand.php(244): Symfony\\\\Component\\\\Messenger\\\\Worker->run()\\n#12 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/console\\\/Command\\\/Command.php(279): Symfony\\\\Component\\\\Messenger\\\\Command\\\\ConsumeMessagesCommand->execute()\\n#13 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/console\\\/Application.php(1047): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run()\\n#14 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/framework-bundle\\\/Console\\\/Application.php(123): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand()\\n#15 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/console\\\/Application.php(316): Symfony\\\\Bundle\\\\FrameworkBundle\\\\Console\\\\Application->doRunCommand()\\n#16 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/framework-bundle\\\/Console\\\/Application.php(77): Symfony\\\\Component\\\\Console\\\\Application->doRun()\\n#17 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/console\\\/Application.php(167): Symfony\\\\Bundle\\\\FrameworkBundle\\\\Console\\\\Application->doRun()\\n#18 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/symfony\\\/runtime\\\/Runner\\\/Symfony\\\/ConsoleApplicationRunner.php(49): Symfony\\\\Component\\\\Console\\\\Application->run()\\n#19 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/vendor\\\/autoload_runtime.php(29): Symfony\\\\Component\\\\Runtime\\\\Runner\\\\Symfony\\\\ConsoleApplicationRunner->run()\\n#20 \\\/var\\\/www\\\/vhosts\\\/SHOP.de\\\/httpdocs\\\/sw6.SHOP.de\\\/bin\\\/console(17): require_once('...')\\n#21 {main}\"}}]","X-Message-Stamp-Symfony\\Component\\Messenger\\Stamp\\DelayStamp":"[{\"delay\":937},{\"delay\":1915},{\"delay\":3934},{\"delay\":0}]","X-Message-Stamp-Symfony\\Component\\Messenger\\Stamp\\RedeliveryStamp":"[{\"retryCount\":1,\"redeliveredAt\":\"2025-01-15T02:32:43+00:00\"},{\"retryCount\":2,\"redeliveredAt\":\"2025-01-15T02:32:43+00:00\"},{\"retryCount\":3,\"redeliveredAt\":\"2025-01-15T02:32:44+00:00\"},{\"retryCount\":0,\"redeliveredAt\":\"2025-01-15T02:32:47+00:00\"}]","X-Message-Stamp-Symfony\\Component\\Messenger\\Stamp\\SentToFailureTransportStamp":"[{\"originalReceiverName\":\"async\"}]","Content-Type":"application\/json"}

Der admin-worker ist deaktiviert und folgende Skripte laufen:

/etc/systemd/system/shopware_consumer.service

[Unit]
Description=Shopware Consumer
After=mysql.service

[Service]
Type=simple
User=USER
Restart=always
ExecStart=/opt/plesk/php/8.2/bin/php /var/www/vhosts/SHOP.de/httpdocs/sw6.SHOP.de/bin/console messenger:consume async low_priority --time-limit=300 --memory-limit=2048M

/etc/systemd/system/shopware_scheduled_task.service

[Unit]
Description=Shopware Scheduled Task
After=mysql.service

[Service]
Type=simple
User=USER
Restart=always
ExecStart=/opt/plesk/php/8.2/bin/php /var/www/vhosts/SHOP.de/httpdocs/sw6.SHOP.de/bin/console scheduled-task:run --time-limit=300 --memory-limit=2048M

Beide Dienste geben auch grünes Licht und auch sonst scheint eigentlich alles funktionieren, wie haben bisher keine Fehler entdecken können:

Allerdings scheint es zu „Verstopfungen“ zu kommen dadurch, hat irgendjemand eine Ahnung, woran das liegen könnte? An Plugins ist nichts allzu exotisches Aktiv:

(Theme abgeleitet und leicht modifiziert durch uns)

Beste Grüße,
Deniz

Wir haben uns auch lange den Kopf zerbrochen, welche Einstellungen wohl die Besten sind. Bei einem sehr großem SW6 Projekt mit Marktplatzanbindungen (SW 6.6.x) haben wir dann folgende Lösung gefunden:

bin/console messenger:consume async low_priority --time-limit=55 --memory-limit=512M
bin/console scheduled-task:run --time-limit=55 --memory-limit=512M
bin/console messenger:consume failed --time-limit=55 --memory-limit=512M

Die 3 Cronjobs laufen im Minutentakt. Absolut keine Warteschlange und Open Queues ständig bei 15ms. Natürlich auch die Performance Empfehlungen mit beachtet. „time-limit“ und „memory-limit“ könnte ggf. zu hoch sein, was dann eine „Verstopfungen“ auslösen könnte.

1 „Gefällt mir“