Skip to content

Add monitor function#52

Merged
superstar54 merged 2 commits intoaiidateam:mainfrom
superstar54:add_monitor_function
Sep 20, 2025
Merged

Add monitor function#52
superstar54 merged 2 commits intoaiidateam:mainfrom
superstar54:add_monitor_function

Conversation

@superstar54
Copy link
Member

@superstar54 superstar54 commented Sep 20, 2025

For user's convenience, we provide a dedicated MonitorFunction class that inherits from PyFunction.
The user only needs to write a normal function, which returns True when the monitoring condition is met.

@codecov-commenter
Copy link

codecov-commenter commented Sep 20, 2025

Codecov Report

❌ Patch coverage is 91.93548% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.51%. Comparing base (a212e7a) to head (256d3c4).

Files with missing lines Patch % Lines
src/aiida_pythonjob/calculations/tasks.py 87.87% 4 Missing ⚠️
src/aiida_pythonjob/calculations/pyfunction.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #52      +/-   ##
==========================================
+ Coverage   88.37%   88.51%   +0.14%     
==========================================
  Files          22       22              
  Lines        1213     1263      +50     
==========================================
+ Hits         1072     1118      +46     
- Misses        141      145       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@superstar54 superstar54 force-pushed the add_monitor_function branch 2 times, most recently from 04d6d3b to 5ed3fe7 Compare September 20, 2025 10:47
@superstar54 superstar54 merged commit 2b142f0 into aiidateam:main Sep 20, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants