Edit in GitHubLog an issue

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.

The Adobe Commerce cron implementation has the following limitations:

  • The setup:cron:run and cron:update commands are not available on Cloud and Docker for Cloud environments
  • In the Docker environment, cron works only with the CLI container to run the ./bin/magento cron:run command

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.

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

To view the cron log:

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

To run cron jobs manually:

Copied to your clipboard
docker compose run --rm cron /usr/local/bin/php bin/magento cron:run
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.