chaning maximal Execution Time to Hostinger Setting
This commit is contained in:
parent
6ec770f27c
commit
4f6bd7de91
|
@ -4,7 +4,7 @@ include "read_write_xlsx.php";
|
||||||
|
|
||||||
include "emailSender.php";
|
include "emailSender.php";
|
||||||
|
|
||||||
$maxExecutionTime = 300;
|
$maxExecutionTime = 120;
|
||||||
$taskDir = 'tasks';
|
$taskDir = 'tasks';
|
||||||
$downloadDir = 'download';
|
$downloadDir = 'download';
|
||||||
$minTaskOldness = 10;
|
$minTaskOldness = 10;
|
||||||
|
@ -71,7 +71,7 @@ function convertcsvToXlsx(string $csvFile, string $xlsxFile)
|
||||||
write_xlsxFile($xlsxFile, $csvData);
|
write_xlsxFile($xlsxFile, $csvData);
|
||||||
}
|
}
|
||||||
|
|
||||||
while($latesEndTime - time() > 60){
|
while($latesEndTime - time() > 30){
|
||||||
// If the directory for Tasks is already created
|
// If the directory for Tasks is already created
|
||||||
if(is_dir($taskDir)) {
|
if(is_dir($taskDir)) {
|
||||||
$taskfiles = scandir($taskDir);
|
$taskfiles = scandir($taskDir);
|
||||||
|
|
Loading…
Reference in New Issue