Closed nomagick closed 1 year ago
I agree with all the items except:
Provide
jina hub init
to initialize just theconfig.yml
.
We already have jina hub new
which serves for this purpose. So maybe we can remove this item?
jina hub new
creates a new directory and multiple files,
while jina hub init
is meant to only create config.yml
in existing directory.
I think it might be useful for people doing the migration after they receive "config.yml required" error.
:tada: This issue has been resolved in version 0.26.12 :tada:
The release is available on:
v0.26.12
Your semantic-release bot :package::rocket:
As we are deprecating the secret and introducing namespacing
The id and secret caching mechanism are causing more trouble than it's trying to solve:
jina hub push
defaults to executor creation, which triggersNamespaceOccupiedError
.Proposals:
For SDK:
name
fromconfig.yml/manifest.yml
as id.config.yml
andname
in it are required for executors just likepackage.json
in npmconfig.yml
jina hub init
to initialize just theconfig.yml
.For Hubble backend:
User Journey: (Without all-in-one push API)
config.yml
.jina hub push .
in the executor directoryname
fromconfig.yml/manifest.yml
in the directory and throws an error ifconfig.yml/manifest.yml
is not found orname
cannot be fetched.jina hub init .
to create a config.yml file automatically.jina hub init .
config.yml
. If it cannot find aname
inconfig.yml
, use the directory name asname
. Then writesconfig.yml
to disk.jina hub push .
againexecutor.listAsyncTasks
with parameterid=[name]
to check for executor status.404
, It means the executor doesn't exist. SDK should continue with the previousjina hub push .
200
, and with a truthy body metablockOn
. It means the executor is being created. The SDK should first wait for the previous job to finish. At this time, SDK should continue with previousjina hub status --id [blockOn id] || jina hub push .
,200
, and without a truthy body metablockOn
. It means the executor already exists and the SDK should continue with previousjina hub push . --force [name]
jina hub status .
executor.listAsyncTasks
with parameterid=[name], sort=-createdAt
to check for executor status.jina hub status --id [n]
where n is the_id
of the first returned record. Throws error otherwise for no status to query.