The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-9441-cbecda473820b3b77f8e2a0fcb045a43d1fecfb7
 has succeeded.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
4ba907ea6574a889d8d6c8282ff766486c61ddb5 / Matthew B. <[email protected]>
perf(computing-unit): skip per-user unit fetch on local CU create (#9441)

### What changes were proposed in this PR?
- ComputingUnitManagingResource.createWorkflowComputingUnit no longer
calls wcDao.fetchByUid on every create; the lookup moves inside the
Kubernetes branch, the only place its result is used (the per-user quota
check).
- That quota check counts running units with .count instead of building
and sizing a filtered list.
- Creating a local unit, the only type the single-node deployment
offers, no longer issues the wasted per-user query.
### Any related issues, documentation, discussions?
Closes: #9436
### How was this PR tested?
- Run `sbt "ComputingUnitManagingService/testOnly
*ComputingUnitManagingResourceSpec"` and confirm it passes; the create
path is behavior-preserving for the local unit case.
- On the single-node stack, call POST /api/computing-unit and confirm a
local unit is still created and returned as before.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.8 in compliance with ASF

Report URL: https://github.com/apache/texera/actions/runs/43719024238

With regards,
GitHub Actions via GitBox

Reply via email to