getdb()->close(); if (count($pull_batch)) { run_pulling_job($a, $pull_batch, $db_host, $db_user, $db_pass, $db_data, $install); } //Do our multi-fork job, if we have a batch and targets. if (count($push_targets) && count($push_batch)) { run_pushing_job($push_targets, $push_batch, $db_host, $db_user, $db_pass, $db_data, $install); } //Log the time it took. $time = time() - $start_syncing; msg("Syncing completed. Took $time seconds.");