[Bug]: Question: Are cores from `IBuildEngine9.RequestCores` expected to be released between batched task invocations?
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
### Issue Description
[EmitBundleBase](https://github.com/dotnet/runtime/blob/542983327f61706b2ed07583601861846361364b/src/tasks/MonoTargetsTasks/EmitBundleTask/EmitBundleBase.cs#L153-L154) task in `dotnet/runtime` uses `IBuildEngine9.RequestCores`, and depends on these being released when the task's `Execute` is done. But if the task is batched, then for any subsequent invocations the task gets blocked on `RequestCores`. If I use `ReleaseCores` before returning from `Execute`, then it works fine.
Is this the expected behavior?
### Steps to Reproduce
Question about the expected behavior
### Expected Behavior
resource `cores` get released automatically at the end of a task
### Actual Behavior
resource `cores` are not released between batched task runs.
### Analysis
_No response_
### Versions & Configurations
_No response_
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.