Cron subsystem rework. Environments.

This commit is contained in:
Yuriy Pikhtarev 2017-06-10 03:11:10 +03:00
commit 18aeb3e9d5
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
91 changed files with 865 additions and 834 deletions

View file

@ -43,8 +43,7 @@ if ($cron_jobs) {
foreach ($cron_jobs as $job) {
if ($job['disable_board']) {
cron_disable_board();
sleep(10);
TorrentPier\Helpers\CronHelper::disableBoard();
break;
}
}
@ -52,7 +51,7 @@ if ($cron_jobs) {
require(CRON_DIR . 'cron_run.php');
// Update cron_last_check
bb_update_config(array('cron_last_check' => (TIMENOW + 10)));
bb_update_config(array('cron_last_check' => TIMENOW + 10));
} else {
bb_log(date('H:i:s - ') . getmypid() . ' --x- no active jobs found ----------------------------------------------' . LOG_LF, CRON_LOG_DIR . '/cron_check');
}