Skip to content

feat(compute): Check machine availability API#6009

Draft
the-bokya wants to merge 3 commits intofrappe:developfrom
the-bokya:feat-frappe-compute-check-machine-availability
Draft

feat(compute): Check machine availability API#6009
the-bokya wants to merge 3 commits intofrappe:developfrom
the-bokya:feat-frappe-compute-check-machine-availability

Conversation

@the-bokya
Copy link
Copy Markdown
Contributor

Adds check_machine_availability() for Frappe Compute. Also adds an optional instance_id parameter to it specifically for Frappe Compute.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 31, 2026

Codecov Report

❌ Patch coverage is 45.45455% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.97%. Comparing base (dfdd9a4) to head (9159d3f).
⚠️ Report is 4221 commits behind head on develop.

Files with missing lines Patch % Lines
press/press/doctype/cluster/cluster.py 28.57% 5 Missing ⚠️
press/frappe_compute_client/client.py 50.00% 1 Missing ⚠️

❌ Your patch check has failed because the patch coverage (45.45%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6009      +/-   ##
===========================================
- Coverage    43.99%   43.97%   -0.03%     
===========================================
  Files          775      774       -1     
  Lines        55999    55983      -16     
===========================================
- Hits         24638    24617      -21     
- Misses       31361    31366       +5     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +1222 to +1224
client = FrappeComputeClient(
url=self.frappe_compute_base_url, api_key=self.frappe_compute_api_key, api_secret=api_secret
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe move this to a method get_frappe_compute_client(..)

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