mirror of
https://github.com/aljazceru/dev-gpt.git
synced 2025-12-21 15:44:19 +01:00
fix: flow
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user