This article provides a solution for when cron stops working due to missing or misconfigured OpCache settings.
Adobe Commerce on cloud infrastructure, all supported versions.
The cron stopped working.
The OpCache module was updated to a newer version which introduced a GraphQL plugin that rewrites the env.php
in runtime and could override the cron setting, which may have caused the issue. The OpCache configuration needs to be updated in order to avoid any issues with the env.php file
, and that was solved in version 2002.1.13 of the ECE Tools package.
Option 1: Run the following in the command-line tool:
bin/magento cron:run
A message might display that the cron is disabled.
Option 2: Open the app/etc/env.php
file - if you see the below, then the cron was disabled manually, was not re-enabled due to a failed deployment, or the issue was related to the OpCache settings.
'cron' =>
array (
'enabled' => 0,
),
vendor/bin/ece-tools cron:enable
composer show magento/ece-tools
op-exclude.txt
file. To do so, run this command:ls op-exclude.txt
.