Lib/Task/TaskRunner.php
public function start() {
		ConnectionManager::getDataSource($this->_TaskServer->useDbConfig)->reconnect(array('persistent' => false));
		$this->_Shell->out("Task #{$this->_task['id']} started");
		$this->_task['started'] = $this->_getCurrentDateTime();
		$this->_task['stderr'] = '';
		$this->_task['stdout'] = '';
		$this->_TaskServer->started($this->_task);
		$this->_run();
		return $this->_task;
	}
public function start() {
		ConnectionManager::getDataSource($this->_TaskServer->useDbConfig)->reconnect(array('persistent' => false));
		$this->_Shell->out("Task #{$this->_task['id']} started");
		$this->_task['started'] = $this->_getCurrentDateTime();
		$this->_task['stderr'] = '';
		$this->_task['stdout'] = '';
		$this->_TaskServer->started($this->_task);
		$this->_run();
		return $this->_task;
	}
public function start ( ) { ConnectionManager :: getDataSource ( $ this -> _TaskServer -> useDbConfig ) -> reconnect ( array ( 'persistent' => false ) ) ; $ this -> _Shell -> out ( "Task #{$this->_task['id']} started" ) ; $ this -> _task [ 'started' ] = $ this -> _getCurrentDateTime ( ) ; $ this -> _task [ 'stderr' ] = '' ; $ this -> _task [ 'stdout' ] = '' ; $ this -> _TaskServer -> started ( $ this -> _task ) ; $ this -> _run ( ) ; return $ this -> _task ; }
Notify client about started task and run this task
Notify client about started task and run this task