#! /usr/bin/env php . require_once("html/inc/boinc_db.inc"); // script to let transitioners catch up, then run start function catchup() { while (1) { $now = time(); $wus = BoincWorkunit::enum("transition_time<$now limit 1"); if (count($wus) == 0) break; echo "There are ".count($wus)." WUs needing transition.\n"; system("bin/transitioner --one_pass"); } echo "Transitioner is caught up.\n"; } catchup(); ?>