Skip to content

Commit

Permalink
try fix incomplete export making temporary file not collected
Browse files Browse the repository at this point in the history
  • Loading branch information
salimkanoun committed Aug 8, 2024
1 parent 9ab7697 commit 386845e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GaelO2/app/GaelO/UseCases/ExportStudyData/ExportStudyData.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public function execute(ExportStudyDataRequest $exportStudyDataRequest, ExportSt
//Operation might be long, set max execution time to 30 minutes
set_time_limit(1800);

//Make this task continues even the users leave to prevent removing created temporary files
ignore_user_abort(true);

$this->exportStudyService->setStudyName($studyName);
$this->exportStudyService->exportAll();
$exportResults = $this->exportStudyService->getExportStudyResult();
Expand Down

0 comments on commit 386845e

Please sign in to comment.