private function setTasksDir()
{
$config = $this->getDI()->get('config');
if (!isset($config['tasksDir']) || !is_dir($config['tasksDir'])) {
throw new Exception("Invalid provided tasks Dir");
}
$this->tasksDir = $config['tasksDir'];
}