Skip to content

Commit

Permalink
Merge pull request #872 from catalyst/871-ignore-user-abort
Browse files Browse the repository at this point in the history
fix: ignore user abort / client disconnects for a manual run
  • Loading branch information
Peterburnett authored Feb 28, 2024
2 parents a616225 + d09bc0d commit f467840
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions run.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit f467840

Please sign in to comment.