jina-ai / jina-hubble-sdk

Python API for authentication, resource management with Hubble
Apache License 2.0
19 stars 2 forks source link

Add a subcommand to jina hub to show the local location of Jina Executor #75

Closed JoanFM closed 1 year ago

JoanFM commented 1 year ago

Ref: https://jinaai.slack.com/archives/C023A7RAPGR/p1645808202058109

JoanFM commented 1 year ago

Coming from https://github.com/jina-ai/internal-tasks/issues/398

floralatin commented 1 year ago
floralatin commented 1 year ago

optimization:

floralatin commented 1 year ago

@mapleeit After the investigation, we can't get the executor info from the disk_cache.db. As shown in the figure, we download different versions of an executor, and the file disk_cache.db will record it. So if we want to know the real downloaded version of this executor, we just need to parse the */*.dist-info file and config.yml file.

Butdisk_cache.db can be used as auxiliary information, to get the docker image of the tag corresponding to the executor.

Image

mapleeit commented 1 year ago

@floralatin I see. Then maybe we can't count on the data in disk_cache.db.

Don't list jinahub+docker:// for now then, user can use docker images and find something anyway.

floralatin commented 1 year ago

@mapleeit OK, I will just improve the print result of hub list.