Added max time remaining debug logging to cron upload
This commit is contained in:
parent
6282881c4a
commit
fe7b93d6d3
@ -365,6 +365,9 @@ class CronUploader extends Extension
|
|||||||
$execution_time = microtime(true) - $_shm_load_start;
|
$execution_time = microtime(true) - $_shm_load_start;
|
||||||
if ($execution_time>$max_time) {
|
if ($execution_time>$max_time) {
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
$remaining = $max_time - $execution_time;
|
||||||
|
$this->log_message(SCORE_LOG_DEBUG, "Max run time remaining: $remaining");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$database->begin_transaction();
|
$database->begin_transaction();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user