diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index ea8fef874b..d5898312b0 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -8,7 +8,6 @@ use MailPoet\Cron\Workers\Beamer; use MailPoet\Cron\Workers\InactiveSubscribers; use MailPoet\Cron\Workers\StatsNotifications\Worker; use MailPoet\Cron\Workers\SubscriberLinkTokens; -use MailPoet\Cron\Workers\SubscribersEngagementScore; use MailPoet\Cron\Workers\UnsubscribeTokens; use MailPoet\Entities\FormEntity; use MailPoet\Entities\NewsletterEntity; @@ -184,7 +183,6 @@ class Populator { $this->moveGoogleAnalyticsFromPremium(); $this->addPlacementStatusToForms(); $this->migrateFormPlacement(); - $this->scheduleSubscribersEngagementScoreTask(); } private function createMailPoetPage() { @@ -653,13 +651,6 @@ class Populator { ); } - private function scheduleSubscribersEngagementScoreTask() { - $this->scheduleTask( - SubscribersEngagementScore::TASK_TYPE, - Carbon::createFromTimestamp($this->wp->currentTime('timestamp')) - ); - } - private function scheduleTask($type, $datetime) { $task = ScheduledTask::where('type', $type) ->whereRaw('status = ? OR status IS NULL', [ScheduledTask::STATUS_SCHEDULED]) diff --git a/lib/Cron/Workers/SubscribersEngagementScore.php b/lib/Cron/Workers/SubscribersEngagementScore.php index 3f8622adf7..508ba3cf55 100644 --- a/lib/Cron/Workers/SubscribersEngagementScore.php +++ b/lib/Cron/Workers/SubscribersEngagementScore.php @@ -8,7 +8,7 @@ use MailPoet\Subscribers\SubscribersRepository; use MailPoetVendor\Carbon\Carbon; class SubscribersEngagementScore extends SimpleWorker { - const AUTOMATIC_SCHEDULING = false; + const AUTOMATIC_SCHEDULING = true; const BATCH_SIZE = 60; const TASK_TYPE = 'subscribers_engagement_score';