mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Cron subsystem rework. Environments.
This commit is contained in:
parent
d9060d55d9
commit
18aeb3e9d5
91 changed files with 865 additions and 834 deletions
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue