The Cron container runs the scheduled cron jobs automatically based on the cron configuration defined in the
crons property of the
.magento.app.yaml file, and any custom configuration specified in the
Adobe Commerce on cloud infrastructure includes a default cron configuration, which can be further customized in the
.magento.app.yaml file. See Set up cron jobs. You can also use the
docker-compose-override.yml file to customize the Cron container configuration for Docker without updating the environment configuration for the Adobe Commerce on cloud infrastructure project. The custom settings are applied during the build and deploy process.
The Adobe Commerce cron implementation has the following limitations:
cron:updatecommands are not available on Cloud and Docker for Cloud environments
- In the Docker environment, cron works only with the CLI container to run the
To improve the overall performance in the Docker development and production environments, the Cron container is not present by default. You can add the
--with-cron option to the
ece-tools docker:build command to enable the Cron container as needed.
1 ./vendor/bin/ece-docker build:compose --mode="developer" --with-cron --sync-engine="mutagen"
To view the cron log:
1 docker-compose run --rm deploy bash -c "cat /app/var/cron.log"
To run cron jobs manually:
1 docker-compose run --rm cron /usr/local/bin/php bin/magento cron:run