Disable the admin worker
It is not required to create custom Cron/Systemd tasks to replace the Shopware admin worker. The dockware images have Cron tasks included that can be activated by the flag.
1. Create a Shopware config file
E.g. docker/sw-config/shopware.yaml
If you already have a Shopware config file, you should just add the admin worker config block.
2. Mount this file in your docker-compose.yaml
3. Add the environment variable SW_TASKS_ENABLED to enable the integrated Cron tasks
4. Restart & activate
Restart your containers to apply the new config.
This can be done gracefully using docker-compose down && docker-compose up.
You can verify the enabled Cron tasks in the Docker logs:
5. Make Shopware use the updated config
It is required to disable and enable any plugin to force Shopware to use the new shopware.yaml config.
You can check if the admin worker is disabled by using the open source Tools Plugin from Friends of Shopware.
Last updated