Add a scheduled task for WooCommerce sync [MAILPOET-1723]

This commit is contained in:
wxa
2019-01-30 16:27:49 +03:00
committed by M. Shull
parent 3f1e690d90
commit eb860c487b
3 changed files with 59 additions and 2 deletions

View File

@@ -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();