Skip to content

Conversation

@kzscisoft
Copy link
Collaborator

Add System Health Alerts

Issue: #904

Python Version(s) Tested: 3.13.5

Operating System(s): Ubuntu 25.10

Documentation PR: Issue on Docs repo.

📝 Summary

Adds functionality to prevent run loss after system health failure.

🔄 Changes

Adds pre-defined alerts which trigger when the system is low on health:

  • Available memory falls below 5%
  • Available disk space falls below 5%

✔️ Checklist

  • Unit and integration tests passing.
  • Pre-commit hooks passing.
  • Quality checks passing.
  • Updated the documentation.

@kzscisoft kzscisoft requested a review from wk9874 January 9, 2026 13:45
@kzscisoft kzscisoft added enhancement New feature or request python Pull requests that update python code labels Jan 9, 2026
@kzscisoft kzscisoft linked an issue Jan 9, 2026 that may be closed by this pull request

@property
def memory_available_percent(self) -> float:
return 100 - typing.cast("float", psutil.virtual_memory().percent)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested that these work on windows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define Alerts to Terminate Runs if System Unhealthy

3 participants