-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Impl Resource sync interface in agent side #2529
base: main
Are you sure you want to change the base?
Conversation
826ec90
to
b590466
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some early reviews!
@@ -711,6 +711,19 @@ def check_and_return(self, value: Any) -> set: | |||
self._failure("value must be Iterable") | |||
|
|||
|
|||
class ToList(t.List): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we just reuse trafaret.base.List
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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)