diff --git a/taskExecuter.php b/taskExecuter.php index 1324317..06641ae 100644 --- a/taskExecuter.php +++ b/taskExecuter.php @@ -4,7 +4,7 @@ include "read_write_xlsx.php"; include "emailSender.php"; -$maxExecutionTime = 300; +$maxExecutionTime = 120; $taskDir = 'tasks'; $downloadDir = 'download'; $minTaskOldness = 10; @@ -71,7 +71,7 @@ function convertcsvToXlsx(string $csvFile, string $xlsxFile) write_xlsxFile($xlsxFile, $csvData); } -while($latesEndTime - time() > 60){ +while($latesEndTime - time() > 30){ // If the directory for Tasks is already created if(is_dir($taskDir)) { $taskfiles = scandir($taskDir);