Shopware 6.5:计划任务失败,输出丢失

huangapple go评论68阅读模式
英文:

Shopware 6.5: Failed scheduled tasks, output missing

问题

我已将Shopware升级至版本6.5,并注意到enqueue和因此DB表dead_messages不再可用。

我的定时任务在运行时状态显示为failed。现在我该在哪里查看任务失败的原因?

文件config/packages/messenger.yaml没有进行除默认配置以外的配置。在我的观点中,Symfony文档没有解释如何正确记录和分析失败的定时任务。在6.5版本中是如何工作的?

英文:

I have updated Shopware to version 6.5 and noticed that enqueue and therefore the DB table dead_messages is not available anymore.

My scheduled task got the status failed when it ran. Where can I see why the task fails now?

The file config/packages/messenger.yaml is not configured other than the default. The Symfony docs, in my opinion, does not explain if and how I can log and analyze failing scheduled tasks properly. How does this work in 6.5?

答案1

得分: 1

你应该能够在使用默认队列设置时在 messenger_messages 表中找到这些消息。

在 Shopware 6.5 中,许多自定义队列处理已被移除,所以现在使用默认的 Symfony 队列以及失败和重试处理。因此,查找更多信息的最佳地点可能是 Symfony 文档

英文:

You should be able to find the messages in the messenger_messages table if you use the default queue settings.

As in shopware 6.5 a lot of custom queue handling was removed, so the default symfony queue and also failure and retry handling is used now. So the best place to search for more info probably is the symfony docs.

is
1: https://symfony.com/doc/current/messenger.html#retries-failures

huangapple
  • 本文由 发表于 2023年5月10日 21:15:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76218906.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定