mirror of https://github.com/BOINC/boinc.git
transitioner_catchup.php: fix it.
This commit is contained in:
parent
9988c831e1
commit
efb2db8fc0
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue