From d09bc0dbe883eb0860e7d2aafc8339a7e1ecc9ac Mon Sep 17 00:00:00 2001 From: Kevin Pham Date: Wed, 28 Feb 2024 11:04:22 +1100 Subject: [PATCH] fix: ignore user abort / client disconnects for a manual run Resolves #871 --- run.php | 1 + 1 file changed, 1 insertion(+) diff --git a/run.php b/run.php index f76d6422..589cacc3 100644 --- a/run.php +++ b/run.php @@ -107,6 +107,7 @@ function tool_dataflows_mtrace_wrapper($message, $eol) { raise_memory_limit(MEMORY_HUGE); core_php_time_limit::raise(); +ignore_user_abort(true); // Re-run the specified flow (this will output an error if it doesn't exist). echo $OUTPUT->single_button($runnowurl, get_string('run_again', 'tool_dataflows'), 'post', ['class' => 'mb-3']);