Manage cron jobs

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 docker-compose-override.yml file.

data-variant=info
data-slots=text
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:

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.

./vendor/bin/ece-docker build:compose --mode="developer" --with-cron --sync-engine="mutagen"

To view the cron log:

docker compose run --rm deploy bash -c "cat /app/var/cron.log"

To run cron jobs manually:

docker compose run --rm cron /usr/local/bin/php bin/magento cron:run