fix: flow

This commit is contained in:
Florian Hönicke
2023-03-19 13:52:24 +01:00
parent b6608b1999
commit 61ef41f073

View File

@@ -19,27 +19,23 @@ def deploy_flow(executor_name):
flow = f''' flow = f'''
jtype: Flow jtype: Flow
with: with:
monitoring: true name: nowapi
env: env:
JINA_LOG_LEVEL: DEBUG JINA_LOG_LEVEL: DEBUG
jcloud: jcloud:
version: '3.14.2.dev18' version: 3.14.2.dev18
labels: labels:
team: microchain team: now
gateway: name: mybelovedocrflow
jcloud:
expose: true
executors: executors:
- name: {executor_name.lower()} - name: {executor_name.lower()}
uses: jinaai+docker://{get_user_name()}/{executor_name}:latest uses: jinaai+docker://{get_user_name()}/{executor_name}:latest
env: env:
JINA_LOG_LEVEL: DEBUG JINA_LOG_LEVEL: DEBUG
jcloud: jcloud:
expose: true
resources: resources:
instance: C4 instance: C4
capacity: spot capacity: spot
replicas: 1
''' '''
full_flow_path = os.path.join('executor', 'flow.yml') full_flow_path = os.path.join('executor', 'flow.yml')
with open(full_flow_path, 'w') as f: with open(full_flow_path, 'w') as f: