Пример #1
0
        Changes_Logic::start();
    }
}
// Comb through the git log and add the changes to the history.
if (!$client) {
    if ($hour == 0 && $minute == 30) {
        $directory = dirname(dirname(__FILE__)) . "/changes";
        Tasks_Logic::queue(Tasks_Logic::PHP, array("{$directory}/git.php"));
        unset($directory);
    }
}
// Run the checks on the Bibles.
// This takes 15 minutes on a production machine with two Bibles.
if (!$client) {
    if ($hour == 0 && $minute == 30) {
        Checks_Logic::startAll();
    }
}
// Database maintenance and trimming.
// It takes a few minutes on a production machine.
if ($hour == 0 && $minute == 50) {
    Tasks_Logic::queue(Tasks_Logic::PHP, array(__DIR__ . "/database.php"));
}
// Sprint burndown.
// It runs every hour.
// The script itself determines what to do at which hour of the day or day of the week or day of the month.
if (!$client) {
    if ($minute == 5) {
        Sprint_Logic::burndown("", false);
    }
}