I want to execute a specific scheduled task. how to do it in shopware 6?
Setting up a scheduled task. Registering scheduled task in the DI container
https://docs.shopware.com/en/shopware-platform-dev-en/how-to/scheduled-tasks
It is not possible to execute a scheduled task directly. But you could create a consoleCommand
which then executes your ScheduledTaskHandler
. Remember to insert your ScheduledTaskHandler
dependency into your command command in the services.xml
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.