Italo Barros
11/27/2024, 9:56 AMNate
11/27/2024, 2:25 PMNate
11/27/2024, 2:26 PMItalo Barros
11/28/2024, 10:19 AMNate
11/28/2024, 5:09 PMPREFECT_API_KEY
and PREFECT_API_URL
in your GCP function environment and call the decorated functions like normal python, like this
but to answer the question
do I need to have Workers/Work Pools even using Prefect Cloud?the work pool and worker concept is common to prefect cloud and prefect (open source) server • worker: lightweight thing that sits in your client side and asks the server if work is scheduled, and then submits scheduled work when it finds it • work pool: represents an execution environment (k8s cluster, cloud run, or a simple process) and stores config (env vars, cpu limits etc) for that execution env so you say
prefect deploy my_flow.py:some_fn --pool some-work-pool
to create a deployment, then prefect worker start --pool some-work-pool
where you want the worker to listen for work, then you can schedule runs (via , API, CLI etc) and the worker will find them and submit them based on what type of work pool it is (k8s -> submits as a k8s job etc)