Skip to content

Commit 65c88f7

Browse files
committed
Fixed Prefect deploy config
1 parent e3dc5ba commit 65c88f7

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/prefect.yaml renamed to prefect.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,20 @@ pull:
2323
directory: "{{ clone-omnipy-examples.directory }}"
2424
requirements_file: requirements.txt
2525
stream_output: True
26+
- prefect.deployments.steps.run_shell_script:
27+
directory: "{{ clone-omnipy-examples.directory }}"
28+
script: |
29+
pip install .
2630
- prefect.deployments.steps.set_working_directory:
27-
directory: "/opt/prefect/{{ clone-omnipy-examples.directory }}/src"
31+
directory: "/opt/prefect/{{ clone-omnipy-examples.directory }}"
2832

2933
# the deployments section allows you to provide configuration for deploying flows
3034
deployments:
3135
- name: dagsim
3236
version:
3337
tags: []
3438
description:
35-
entrypoint: omnipy_examples/deployment.py:dagsim_prefect
39+
entrypoint: src/omnipy_examples/deployment.py:dagsim_prefect
3640
parameters: {}
3741
work_pool:
3842
name: omnipy
@@ -44,7 +48,7 @@ deployments:
4448
version:
4549
tags: []
4650
description:
47-
entrypoint: omnipy_examples/deployment.py:encode_prefect
51+
entrypoint: src/omnipy_examples/deployment.py:encode_prefect
4852
parameters: {}
4953
work_pool:
5054
name: omnipy
@@ -56,7 +60,7 @@ deployments:
5660
version:
5761
tags: []
5862
description:
59-
entrypoint: omnipy_examples/deployment.py:gff_prefect
63+
entrypoint: src/omnipy_examples/deployment.py:gff_prefect
6064
parameters: {}
6165
work_pool:
6266
name: omnipy
@@ -68,7 +72,7 @@ deployments:
6872
version:
6973
tags: []
7074
description:
71-
entrypoint: omnipy_examples/deployment.py:isajson_prefect
75+
entrypoint: src/omnipy_examples/deployment.py:isajson_prefect
7276
parameters: {}
7377
work_pool:
7478
name: omnipy
@@ -80,7 +84,7 @@ deployments:
8084
version:
8185
tags: []
8286
description:
83-
entrypoint: omnipy_examples/deployment.py:uniprot_prefect
87+
entrypoint: src/omnipy_examples/deployment.py:uniprot_prefect
8488
parameters: {}
8589
work_pool:
8690
name: omnipy
@@ -92,7 +96,7 @@ deployments:
9296
version:
9397
tags: []
9498
description:
95-
entrypoint: omnipy_examples/deployment.py:chatgpt_prefect
99+
entrypoint: src/omnipy_examples/deployment.py:chatgpt_prefect
96100
parameters: {}
97101
work_pool:
98102
name: omnipy
@@ -104,7 +108,7 @@ deployments:
104108
version:
105109
tags: []
106110
description:
107-
entrypoint: omnipy_examples/deployment.py:bed_prefect
111+
entrypoint: src/omnipy_examples/deployment.py:bed_prefect
108112
parameters: {}
109113
work_pool:
110114
name: omnipy

0 commit comments

Comments
 (0)