-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprefect.yaml
More file actions
99 lines (90 loc) · 2.53 KB
/
prefect.yaml
File metadata and controls
99 lines (90 loc) · 2.53 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# 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.4.12
# 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 }}'
x-job-variables: &job_variables
env:
EXTRA_PIP_PACKAGES: more_itertools psycopg2-binary pandas typesense
# 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
catchup: false
entrypoint: sync_tmdb/sync_tmdb.py:sync_tmdb
parameters: {}
work_pool:
name: kube
job_variables:
<<: *job_variables
memory_request: "6Gi"
cpu_request: "2"
memory_limit: "8Gi"
cpu_limit: "4"
work_queue_name:
concurrency_limit:
enforce_parameter_schema: true
- name: sync_typesense
version: 1.0.0
tags:
- typesense
description: Sync all Typesense collections (movies, tv_series, persons, playlists, users)
schedules: []
entrypoint: sync_typesense/sync_typesense.py:sync_typesense
parameters: {}
work_pool:
name: kube
job_variables:
<<: *job_variables
memory_request: "4Gi"
cpu_request: "2"
memory_limit: "6Gi"
cpu_limit: "4"
work_queue_name:
concurrency_limit:
enforce_parameter_schema: true
- name: generate_sitemaps
version: 1.0.0
tags:
- sitemap
description: Generate sitemaps
schedules:
- cron: 0 4 * * *
timezone: Europe/Paris
day_or: true
active: true
catchup: false
entrypoint: generate_sitemaps/generate_sitemaps.py:generate_sitemaps
parameters: {}
work_pool:
name: kube
job_variables:
env:
EXTRA_PIP_PACKAGES: psycopg2-binary supabase
memory_request: "2Gi"
cpu_request: "1"
memory_limit: "3Gi"
cpu_limit: "2"
work_queue_name:
concurrency_limit:
enforce_parameter_schema: true