-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprefect.yaml
48 lines (43 loc) · 1.52 KB
/
prefect.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Welcome to your prefect.yaml file! You can use this file for storing and managing
# configuration for deploying your flows. We recommend committing this file to source
# control along with your flow code.
# Generic metadata about this project
name: prefect-modal
prefect-version: 3.1.15
# build section allows you to manage and build docker images
build:
# push section allows you to manage if and how this project is uploaded to remote locations
push:
# pull section allows you to provide instructions for cloning this project in remote locations
pull:
- prefect.deployments.steps.git_clone:
id: clone-step
repository: https://github.com/Ben-Epstein/prefect-modal
branch: main
credentials: '{{ prefect.blocks.github-credentials.prefect-modal }}'
- prefect.deployments.steps.run_shell_script:
directory: '{{ clone-step.directory }}'
script: pip install uv==0.5.6
- prefect.deployments.steps.run_shell_script:
directory: '{{ clone-step.directory }}'
script: uv sync --no-editable --no-dev
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: prefect-modal-example
version:
tags: []
description: Our first flow which runs on modal
entrypoint: prefect_modal.flows.flow1:main
schedules:
- cron: 0 12 * * *
timezone: America/New_York
day_or: true
active: true
work_pool:
name: pref-modal-pool
work_queue_name: default
job_variables: {
"env": {"UV_PROJECT_ENVIRONMENT": "/usr/local"}
}
concurrency_limit:
parameters: {}