diff --git a/application/console/controllers/CronController.php b/application/console/controllers/CronController.php index 924c83e7..8ab1700c 100644 --- a/application/console/controllers/CronController.php +++ b/application/console/controllers/CronController.php @@ -2,12 +2,12 @@ namespace console\controllers; +use common\components\Emailer; use common\components\ExternalGroupsSync; use common\models\Invite; use common\models\Method; use common\models\Mfa; use common\models\User; -use common\components\Emailer; use yii\console\Controller; class CronController extends Controller @@ -86,7 +86,6 @@ public function actionAll() 'actionSendAbandonedUsersEmail', 'actionSendDelayedMfaRelatedEmails', 'actionSendMethodReminderEmails', - 'actionSendPasswordExpiryEmails', 'actionSyncExternalGroups', ]; @@ -94,9 +93,13 @@ public function actionAll() $actions[] = 'actionExportToSheets'; } + $actions[] = 'actionSendPasswordExpiryEmails'; + foreach ($actions as $action) { try { + \Yii::info(['msg' => 'starting task', 'task' => $action]); $this->$action(); + \Yii::info(['msg' => 'finished task', 'task' => $action]); } catch (\Throwable $e) { \Yii::error($e->getMessage()); }