Skip to content
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

Layer download status #1505

Open
allada opened this issue Dec 13, 2023 · 2 comments
Open

Layer download status #1505

allada opened this issue Dec 13, 2023 · 2 comments

Comments

@allada
Copy link

allada commented Dec 13, 2023

I have been poking around looking to see if there's an easy way to check if the entire image has been downloaded or not (ie: layer status) and have only found how to check inside a container, but not outside the container.

I see the comment here: #716 (comment)

What I'm looking for is a faster way to just have a simple check to see if the entire layer is ready. Spinning up a container is a lot slower than what I'm looking for. I'm trying to make the check be as quick as possible, because I'd like to re-schedule some tasks if I get a miss when specific flags are set in my request (it's a remote-execution management system).

Great work btw!

@allada
Copy link
Author

allada commented Dec 13, 2023

I do see I can use:

ctr-remote --namespace=namespace_here i check name~=\"name_here\"

But it'd be nice to get it in a json format (or something more machine-friendly).

@ktock
Copy link
Member

ktock commented Dec 13, 2023

@allada Maybe you can use prometheus endpoint: #288

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants