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.
E.g.
docker/sw-config/shopware.yaml
If you already have a Shopware config file, you should just add the admin worker config block.# Map to: /var/www/html/config/packages/shopware.yaml
shopware:
admin_worker:
enable_admin_worker: false
version: "3"
services:
shopware:
image: dockware/play:latest
container_name: shopware_app
volumes:
- ./docker/sw-config/shopware.yaml:/var/www/html/config/packages/shopware.yaml:ro
version: "3"
services:
shopware:
image: dockware/play:latest
container_name: shopware_app
volumes:
- ./docker/sw-config/shopware.yaml:/var/www/html/config/packages/shopware.yaml:ro
environment:
- SW_TASKS_ENABLED=1
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:
shopware_app_DEV | -----------------------------------------------------------
shopware_app_DEV | DOCKWARE: starting cron service....
shopware_app_DEV | * Starting periodic command scheduler cron
shopware_app_DEV | ...done.
shopware_app_DEV | -----------------------------------------------------------
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 modified 8mo ago