[英]How to execute a specific scheduled task in shopware 6?
我想執行一個特定的計划任務。 如何在shopware 6中做到這一點?
設置定時任務。 在 DI 容器中注冊計划任務
https://docs.shopware.com/en/shopware-platform-dev-en/how-to/scheduled-tasks
無法直接執行計划任務。 但是您可以創建一個consoleCommand
,然后執行您的ScheduledTaskHandler
。 請記住將ScheduledTaskHandler
依賴項插入到services.xml
命令命令中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.