Ref #701 -- Add support for a custom executor for synchronous checks#716
Ref #701 -- Add support for a custom executor for synchronous checks#716
Conversation
1ccb746 to
6dfd88b
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #716 +/- ##
=======================================
Coverage 99.74% 99.74%
=======================================
Files 13 13
Lines 786 792 +6
=======================================
+ Hits 784 790 +6
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds support for providing a custom executor when running synchronous health checks, enabling per-request thread pool customization and related performance/memory tuning.
Changes:
- Plumbs an optional
ExecutorthroughHealthCheck.get_result()to controlrun_in_executorfor sync checks. - Wraps health check execution in
HealthCheckViewwith a customizableget_executor()hook. - Updates documentation and check docstrings; adjusts MkDocs inventory configuration.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
health_check/base.py |
Allows passing a custom Executor into get_result() for synchronous check execution. |
health_check/views.py |
Uses a per-request executor hook when gathering check results. |
docs/usage.md |
Documents performance considerations and the custom-executor approach. |
health_check/checks.py |
Docstring wording/grammar improvements. |
mkdocs.yml |
Updates MkDocs intersphinx inventory entries. |
6dfd88b to
4176542
Compare
4176542 to
3c4e201
Compare
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@copilot address the unresolved review comments. |
… executor tests Agent-Logs-Url: https://github.com/codingjoe/django-health-check/sessions/992e06ab-ebec-4907-9a08-519ee14c9fdc Co-authored-by: codingjoe <1772890+codingjoe@users.noreply.github.com>
Addressed all three unresolved comments in commit ddecc82:
|
|
pre-commit.ci run |
for more information, see https://pre-commit.ci
No description provided.