Skip to content

Commit

Permalink
chore: fix docarray version in deploy (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM authored Jul 19, 2023
1 parent 4485671 commit 0357cfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vectordb/db/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ def deploy(cls,
for executor in flow_dict['executors']:
executor['jcloud'] = executor_jcloud_config

import docarray

global_jcloud_config = {
'docarray': '0.34.0',
'docarray': docarray.__version__,
'labels': {
'app': 'vectordb',
},
Expand All @@ -215,10 +217,8 @@ def deploy(cls,

with tempfile.TemporaryDirectory() as tmpdir:
flow_path = os.path.join(tmpdir, 'flow.yml')
print(f' flow_path {flow_path}')
with open(flow_path, 'w') as f:
yaml.safe_dump(flow_dict, f, sort_keys=False)

cloud_flow = CloudFlow(path=flow_path)

async def _deploy():
Expand Down

0 comments on commit 0357cfe

Please sign in to comment.