MDL-31553 do not timeout CLI upgrade scripts

Credit goes to Michael Aherne.
This commit is contained in:
Petr Skoda
2012-04-22 17:51:06 +02:00
parent ead4f180a0
commit 5563f5fbbb
+6 -1
View File
@@ -133,7 +133,12 @@ function upgrade_set_timeout($max_execution_time=300) {
return;
}
set_time_limit($max_execution_time);
if (CLI_SCRIPT) {
// there is no point in timing out of CLI scripts, admins can stop them if necessary
set_time_limit(0);
} else {
set_time_limit($max_execution_time);
}
set_config('upgraderunning', $expected_end); // keep upgrade locked until this time
}