Repository navigation
feat(spider-tdl): Expose the executing execution manager's metadata in TaskContext. - #498
20001020ycx wants to merge 1 commit into
Conversation
|
Warning Review limit reachedNext included review available in 35 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (10)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4358310 to
f4ef5d6
Compare
TaskContext.TaskContext; add a resource-group isolation e2e for dedicated worker pools.
d8984f5 to
79f667a
Compare
LinZhihao-723
left a comment
There was a problem hiding this comment.
Before we proceed further, can we break this PR into two:
- The first PR only updates
TaskContext. - The second PR will update the actual test cases.
Okay, on it! |
79f667a to
e8fd07c
Compare
TaskContext; add a resource-group isolation e2e for dedicated worker pools.TaskContext.
| pub id: ExecutionManagerId, | ||
|
|
||
| /// The resource group ID the execution manager pins to, if any. | ||
| pub pinned_resource_group_id: Option<ResourceGroupId>, |
There was a problem hiding this comment.
I don't think we need pinned_ prefix. As a member of this metadata, it should be clear that this resoruce_group_id is the resource group ID of the execution manager.
Description
This PR encapsulates the executing execution manager's metadata into the
TaskContexthanded to every task, so a task can identify the execution manager that ran it and the resource group that manager is pinned to.resource_group_idis unchanged — the resource group the task belongs to (from the scheduler's task assignment). It is the same regardless of which worker runs the task.execution_manager_metadatacarries metadata of the execution manager driving the task: itsid, andpinned_resource_group_id— the resource group it is dedicated to, orNonefor a general execution manager.#501 adds a resource-group isolation e2e that consumes this metadata — see it for a usage example.
Checklist
Validation Performed