Add a scheduled task for WooCommerce sync [MAILPOET-1723]
This commit is contained in:
@@ -27,6 +27,7 @@ class Daemon {
|
||||
$this->executeSendingServiceKeyCheckWorker();
|
||||
$this->executePremiumKeyCheckWorker();
|
||||
$this->executeBounceWorker();
|
||||
//$this->executeWooCommerceSyncWorker();
|
||||
} catch(\Exception $e) {
|
||||
CronHelper::saveDaemonLastError($e->getMessage());
|
||||
}
|
||||
@@ -64,6 +65,11 @@ class Daemon {
|
||||
return $bounce->process();
|
||||
}
|
||||
|
||||
function executeWooCommerceSyncWorker() {
|
||||
$worker = $this->workers_factory->createWooCommerceSyncWorker($this->timer);
|
||||
return $worker->process();
|
||||
}
|
||||
|
||||
function executeMigrationWorker() {
|
||||
$migration = $this->workers_factory->createMigrationWorker($this->timer);
|
||||
return $migration->process();
|
||||
|
Reference in New Issue
Block a user