-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprefect.yaml
84 lines (76 loc) · 2.32 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# 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: db-sync
prefect-version: 3.0.3
# 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: db-sync # a user-provided identifier for this step
repository: https://github.com/recomendapp/db-sync.git
branch: main
credentials: '{{ prefect.blocks.github-credentials.github-credentials }}'
# - prefect.deployments.steps.pip_install_requirements:
# directory: "{{ db-sync.directory }}" # `db-sync` is a user-provided `id` field
# requirements_file: requirements.txt
# the deployments section allows you to provide configuration for deploying flows
deployments:
- name: sync_tmdb
version: 1.0.0
tags:
- tmdb
description: Sync TMDB data
schedules:
- cron: 0 12 * * *
timezone: Europe/Paris
day_or: true
active: true
max_active_runs:
catchup: false
entrypoint: sync_tmdb/sync_tmdb.py:sync_tmdb
parameters: {}
work_pool:
name: worker_1
job_variables:
env:
EXTRA_PIP_PACKAGES: more_itertools psycopg2-binary pandas
work_queue_name:
concurrency_limit:
enforce_parameter_schema: true
- name: sync_tmdb_movie
version: 1.0.0
tags:
- tmdb
description: Sync TMDB movie data
schedules: []
entrypoint: sync_tmdb/flows/movie/sync_tmdb_movie.py:sync_tmdb_movie
parameters: {}
work_pool:
name: worker_1
job_variables:
env:
EXTRA_PIP_PACKAGES: more_itertools psycopg2-binary pandas
work_queue_name:
concurrency_limit:
enforce_parameter_schema: true
- name: sync_tmdb_person
version: 1.0.0
tags:
- tmdb
description: Sync TMDB person data
schedules: []
entrypoint: sync_tmdb/flows/person/sync_tmdb_person.py:sync_tmdb_person
parameters: {}
work_pool:
name: worker_1
job_variables:
env:
EXTRA_PIP_PACKAGES: more_itertools psycopg2-binary pandas
work_queue_name:
concurrency_limit:
enforce_parameter_schema: true