transitioner_catchup.php: fix it.

This commit is contained in:
David Anderson 2015-07-10 10:24:40 -07:00
parent 9988c831e1
commit efb2db8fc0
1 changed files with 6 additions and 2 deletions

View File

@ -18,7 +18,9 @@
// You should have received a copy of the GNU Lesser General Public License
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
require_once("html/inc/boinc_db.inc");
chdir("html/ops");
require_once("../inc/boinc_db.inc");
chdir("../..");
// script to let transitioners catch up, then run start
@ -28,7 +30,9 @@ function catchup() {
$wus = BoincWorkunit::enum("transition_time<$now limit 1");
if (count($wus) == 0) break;
echo "Some WUs need transition - running transitioner.\n";
system("bin/transitioner --one_pass");
$ret = system("bin/transitioner --one_pass");
echo "ret: $ret\n";
sleep(1);
}
echo "Transitioner is caught up.\n";
}