forked-synapse/synapse/util
reivilibre 7ef00b7628
Add logging to tasks managed by the task scheduler, showing CPU and database usage. (#17219)
The log format is the same as the request log format, except:

- fields that are specific to HTTP requests have been removed
- the task's params are included at the end of the log line.

These log lines are emitted:
- when the task function finishes — both completion and failure (and I
suppose it is possible for a task to become schedulable again?)
- every 5 minutes whilst it is running

Closes #17217.

---------

Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
2024-05-22 14:12:58 +01:00
..
caches Add optimisation to StreamChangeCache (#17130) 2024-05-06 12:56:52 +01:00
__init__.py Ensure that pending to-device events are sent over federation at startup (#16925) 2024-03-22 13:24:11 +00:00
async_helpers.py Bump mypy from 1.5.1 to 1.8.0 (#16901) 2024-03-13 17:05:57 +00:00
batching_queue.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
cancellation.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
check_dependencies.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
daemonize.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
distributor.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
file_consumer.py Update license headers 2023-11-21 15:29:58 -05:00
frozenutils.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
gai_resolver.py Bump twisted from 22.10.0 to 23.8.0 (#16235) 2023-09-05 11:14:14 +00:00
hash.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
httpresourcetree.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
iterutils.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
linked_list.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
logcontext.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
logformatter.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
macaroons.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
manhole.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
metrics.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
module_loader.py Update license headers 2023-11-21 15:29:58 -05:00
msisdn.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
patch_inline_callbacks.py Update license headers 2023-11-21 15:29:58 -05:00
ratelimitutils.py Bump black from 23.10.1 to 24.2.0 (#16936) 2024-03-13 16:46:44 +00:00
retryutils.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
rlimit.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
rust.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
stringutils.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
task_scheduler.py Add logging to tasks managed by the task scheduler, showing CPU and database usage. (#17219) 2024-05-22 14:12:58 +01:00
templates.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
threepids.py Update license headers 2023-11-21 15:29:58 -05:00
wheel_timer.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00