#! /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 "Some WUs need transition - running transitioner.\n"; system("bin/transitioner --one_pass"); } echo "Transitioner is caught up.\n"; } catchup(); ?>