Loup
09/25/2024, 12:08 AMprefect init
) but I have this error Ive no idea why :
Your flow entrypoint must include the name of the function that is the entrypoint to your flow.
Try prefect.yaml:<flow_name> as your entrypoint. If you meant to specify 'prefect.yaml' as the deployment name, try `prefect deploy -n prefect.yaml`.
I dont really what I did wrong... Thx for ur help !Loup
09/25/2024, 12:11 AMdeployments:
- name: sync_tmdb
version: 1
tags: ["tmdb"]
description: "Sync TMDB data"
schedule: {
"timezone": "Europe/Paris",
"cron": "0 9 * * *"
}
# flow_name: sync_tmdb
entrypoint: sync_tmdb/sync_tmdb.py:sync_tmdb
parameters: {}
work_pool:
name: "VPS_Worker_1"
work_queue_name: null
job_variables: {
"env": {
"EXTRA_PIP_PACKAGES": "more_itertools psycopg2-binary"
}
}
My git repo architecture is like :
my_repo/
sync_tmdb/
sync_tmdb.py
__main__.py
__init__.py
flows/
languages/
sync_language.py
prefect.yaml
.prefectignore
Nate
09/25/2024, 1:48 AMNate
09/25/2024, 1:49 AMLoup
09/25/2024, 8:51 AMLoup
09/25/2024, 9:38 AMprefect deploy --all
but it give me error with prefect.variables
cant import (no idea why)Loup
09/25/2024, 12:33 PMprefect deploy -all
but my flows crash because of prefect.variables
Loup
09/25/2024, 12:50 PMLoup
09/25/2024, 12:57 PMprefecthq/prefect:2-latest
instead of prefecthq/prefect:3-latest
Nate
09/25/2024, 2:59 PMNate
09/25/2024, 3:00 PMprefect deploy --all
prefect deploy some/path/to/flow.py:flow_fn
prefect deploy -n as-named-in-prefectyaml
and you can use
prefect --no-prompt deploy ...
to avoid the CLI asking you questions