/** * Waits for the $job to get scheduled on the server. * * @param Splunk_Job $job */ protected function makeReady(Splunk_Job $job) { while (!$job->isReady()) { usleep(0.1 * 1000000); } }
private function makeDone(Splunk_Job $job) { while (!$job->isDone()) { //printf("%03.1f%%\r\n", $job->getProgress() * 100); usleep(0.1 * 1000000); $job->refresh(); } }