-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Adding __repr__
for container workload classes
#8337
Merged
shubham3121
merged 51 commits into
OpenMined:dev
from
khoaguin:feat/container-workload-classes-repr
Jan 3, 2024
Merged
Adding __repr__
for container workload classes
#8337
shubham3121
merged 51 commits into
OpenMined:dev
from
khoaguin:feat/container-workload-classes-repr
Jan 3, 2024
Conversation
This file contains 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
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
`SyftWorkerImage`, `SyftWorkerImageTag`, `ContainerImageRegistry` Co-authored-by: Peter Chung <peterchung241@gmail.com>
Co-authored-by: Peter Chung <peterchung241@gmail.com>
@khoaguin can you resolve merge conflict and merge with dev |
shubham3121
reviewed
Dec 13, 2023
…ebook to show their `repr`
add `images` and `worker_pools` properties for `DomainClient` remove the `dockerfile_name` column in `SyftWorkerImage List` table
…ictTuple` - Can get a list of images and worker pools with `client.images` or `client.worker_pools` - Remove some unnecessary `__repr_html__` functions
for `WorkerPool` and `SyftWorker` Co-authored-by: Kien Dang <mail@kien.ai>
updates in `SyftWorker`
unnecessary attributes for `WorkerPool` and `SyftWorker`
attribute for `WorkerPool` and `SyftWorker` - handle their `_coll_repr_` functions when `image` not exists
shubham3121
reviewed
Jan 1, 2024
shubham3121
reviewed
Jan 1, 2024
shubham3121
reviewed
Jan 1, 2024
…rkers by making an API call to the server
- get SyftWorker's healthcheck by making the worker.status API call to the server
- add config as searchable attribute for `SyftWorkerImage` - remove config as unique attribute for `SyftWorkerImage`
…not using memory workers - make some small changes to the api notebook to fix bugs and show repr
- add a utility method for worker status and healthcheck update - referesh status on resolving worker in worker pool - running and healthy workers derived from workers - skip status checks for in mem workers Co-authored-by: rasswanth <43314053+rasswanth-s@users.noreply.github.com>
shubham3121
approved these changes
Jan 3, 2024
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.
Awesome work @khoaguin !!! 🎉🎊
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.
Solving these issues:
Summary of what this PR does:
<client>.images
should show a table containing only the main ones:id, image_tag, image_hash, created_at
client.worker_pools
would be preferred over client.worker_pool.get_all()tag = "openmined/test-nginx:0.7.8"
, we can index worker image withclient.images[tag]
client.worker_pools
show a list of worker pools withid, pool_name, workers, healthy (healthy/all), running (running/all), image tag/name, created_at
client.worker_pools[tag]
client.worker_pools
and after a table of workers show workers' informationclient.worker_pools[0].workers
shows all the workerid, image tag/name, resources pool name, healthcheck (healthy/unhealthy), status (created/running/stopped), job
worker = client.worker_pools[0].workers[0]
, then worker will showid/name, image tag, worker pool name, healthy, status