feat: Impl Resource sync interface in agent side#2529
Closed
Conversation
Member
Author
This was referenced Jul 22, 2024
826ec90 to
b590466
Compare
achimnol
requested changes
Aug 8, 2024
| self._failure("value must be Iterable") | ||
|
|
||
|
|
||
| class ToList(t.List): |
Member
Author
There was a problem hiding this comment.
trafaret.base.List allows list type data only and I want to allow any iterable data type here since sequential data fetched from RPC response get deserialized into tuple.
b590466 to
ecb36ae
Compare
ecb36ae to
82b4f15
Compare
Member
Author
|
Closed this PR because we decided to revamp agent heartbeat and kernel heartbeat for better resource management |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Agents's sync-and-get-kernels() API
The API that synchronizes agent's kernels to kernel information specified by API parameters (preparing_kernels, pulling_kernels, running_kernels, terminating_kernels). It assumes that the kernel information given by the parameter is the "truth".
If any of kernel information mismatch between kernel_registry and running_kernels(or terminating_kernels), agent injects termination event to terminate the kernel.
sync-and-get-kernels() API returns actual { running, terminating, terminated } kernels (which is not used for now). actual_terminated_kernels contains terminated kernels specified as running_kernels by API parameter.
Checklist: (if applicable)