/** * @see AbstractJob::execute() */ function execute() { // only consider highscore users since we assume that they are actually playing and not waiting for a team assignment or something. $users = UsersDataService::getActiveUsersWithHighscore($this->_websoccer, $this->_db, 0, 1000); foreach ($users as $user) { UserInactivityDataService::computeUserInactivity($this->_websoccer, $this->_db, $user['id']); } }