diff --git a/ProcessMaker/Managers/TaskSchedulerManager.php b/ProcessMaker/Managers/TaskSchedulerManager.php index c7a5ad41e7..d866ec421d 100644 --- a/ProcessMaker/Managers/TaskSchedulerManager.php +++ b/ProcessMaker/Managers/TaskSchedulerManager.php @@ -138,10 +138,14 @@ public function scheduleTasks() { $today = $this->today(); try { - if (!Schema::hasTable('scheduled_tasks')) { - return; - } - + /** + * This validation is removed; the database schema should exist before + * any initiation of 'jobs' and 'schedule'. + * + * if (!Schema::hasTable('scheduled_tasks')) { + * return; + * } + */ $this->removeExpiredLocks(); $tasks = ScheduledTask::cursor(); @@ -202,7 +206,7 @@ public function scheduleTasks() } } } catch (PDOException $e) { - Log::error('The connection to the database had problems'); + Log::error('The connection to the database had problems (scheduleTasks): ' . $e->getMessage()); } }