Skip to content

PyFunction supports async function#51

Merged
superstar54 merged 10 commits intoaiidateam:mainfrom
superstar54:support_async_function
Sep 20, 2025
Merged

PyFunction supports async function#51
superstar54 merged 10 commits intoaiidateam:mainfrom
superstar54:support_async_function

Conversation

@superstar54
Copy link
Member

@superstar54 superstar54 commented Sep 19, 2025

  • Async user function -> schedule via Waiting (interruptable)
  • Sync user function -> execute now, parse outputs, and finish

This feature needs aiida-core>=2.7.

@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2025

Codecov Report

❌ Patch coverage is 90.43478% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.37%. Comparing base (cbaff61) to head (4103b61).

Files with missing lines Patch % Lines
src/aiida_pythonjob/calculations/tasks.py 86.58% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #51      +/-   ##
==========================================
+ Coverage   87.01%   88.37%   +1.36%     
==========================================
  Files          21       22       +1     
  Lines        1101     1213     +112     
==========================================
+ Hits          958     1072     +114     
+ Misses        143      141       -2     

☔ 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 support_async_function branch from 69d31cf to 051d3f8 Compare September 20, 2025 04:37
@superstar54 superstar54 force-pushed the support_async_function branch 2 times, most recently from e1d35e0 to e44c371 Compare September 20, 2025 06:27
@superstar54 superstar54 force-pushed the support_async_function branch from e44c371 to 4103b61 Compare September 20, 2025 06:32
@superstar54 superstar54 merged commit a212e7a into aiidateam:main Sep 20, 2025
5 checks passed
@superstar54 superstar54 deleted the support_async_function branch September 20, 2025 08:13
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