Commit Graph

16 Commits

Author SHA1 Message Date
Frederik Milling Pytlick 11a3328b06 MDL-80684 core: Fail running tasks on shutdown
When you kill a process which is executing a task, it now marks it as failed.
2024-02-19 12:06:08 +01:00
raortegar 789c7c207b MDL-79276 core: Fix output renderer error in the shutdown handler.
Render the output in shutdown handler was causing
issues in phpunit test_psr_classloader
This is an small fix to check that the output has been started.
2023-10-03 14:14:32 +02:00
Brendan Heywood 08780b449f MDL-79276 core: Auto close streaming elements in shutdown handler 2023-10-02 21:11:44 +10:00
Brendan Heywood 21b5ad1555 MDL-79276 core: Fix perfdebug footer bug in non html pages 2023-10-02 21:11:44 +10:00
Brendan Heywood 79c2e4bdae MDL-79276 core: Fix html validation with streaming api 2023-10-02 21:11:44 +10:00
Brendan Heywood 20b8f8f9c9 MDL-73734 core: Use streaming output for perfdebug 2023-08-28 22:48:59 +10:00
Petr Skoda 3c25ccdcd1 MDL-78552 core: tidy up MDL_PERF constants
* all constans usable in ABORT_AFTER_CONFIG should be always defined
* MDL_PERFDB and $PERF->logwrites not used after legacy log removal
* MDL_PERF_TEST should be documented in codebase
* deprecated warnings in shutdowb manager
2023-06-25 08:39:09 +02:00
Brendan Heywood 825d11ec50 MDL-76166 auth: Ensure user is in server access logs 2022-11-30 13:25:20 +11:00
Paul Holden a65476d590 MDL-74010 core: check defined MDL_PERF* values in conditionals. 2022-08-05 11:02:54 +01:00
Eloy Lafuente (stronk7) a5c91474ee MDL-71807 cleanup: Replace deprecated codingStandardsIgnore annotations
The PHP_CodeSniffer @codingStandardsIgnore annotations are deprecated
and, since version 3.x, the new // phpcs:ignore comments should be used
instead.

This commits just reviews all the uses in core, replacing them for
the better new candidate, or removing when no longer needed.
2022-03-08 10:48:53 +01:00
Marina Glancy f4fb91aecb MDL-70920 core: prevent calls to call_user_fun_array() with assoc array 2021-02-21 22:22:21 +01:00
Brendan Heywood 29e3a223f5 MDL-59594 core: Allow custom signal handlers 2020-01-12 01:20:04 +11:00
Andrew Nicols 102d6ea352 MDL-64359 core: Respect shutdown handlers on SIG 2018-12-08 17:40:09 +08:00
David Mudrák 75ab4d2eb7 MDL-62891 core: Stop using var_export() to describe callables
Make use of the newly added function get_callable_name() when reporting
that an exception happened during shutdown.
2018-10-05 09:10:16 +02:00
Marina Glancy 1766e6a17f MDL-52284 core: PHP7 engine errors have type Throwable 2015-12-10 10:49:37 +08:00
Petr Škoda 38fc013025 MDL-42040 refactor core Moodle shutdown handlers logic 2013-10-04 11:36:46 +02:00