https://prefect.io logo
Title
a

Alejandro A

10/05/2021, 5:10 PM
H i have a question, I just deployed a flow on Preset using the CLI, which worked amazingly but I haven't seen how and when the dependencies (requierements) for that python flow were installed, how does this work or where can I find the documentation?
k

Kevin Kho

10/05/2021, 5:23 PM
Hey @Alejandro A, did you mean Prefect or Preset? For local agent, it uses the environment it was spun out of. For Docker and Kubernetes, it uses the container.
a

Alejandro A

10/05/2021, 5:26 PM
Hi @Kevin Kho, just this line I used to register my flow + project:
$ prefect register --project "my project" --path myflow.py
How does prefect knows which dependencies to install?
k

Kevin Kho

10/05/2021, 5:28 PM
Don’t think of it that the requirements are bundled up. It’s more of the execution environment needs to have the same requirements. If you run with a Local Agent, it does. But if you ran on a different computer with missing packages it would fail
If you use Docker, it would download the container on the execution environment as well
a

Alejandro A

10/05/2021, 5:29 PM
but at no given point I have created a docker file
I just installed prefect and started the core and ui
I havent created any Dockerfile, .toml or requierments file
k

Kevin Kho

10/05/2021, 5:31 PM
The default is Local execution to it just uses the environment you agent is in
a

Alejandro A

10/05/2021, 5:32 PM
Mm can I read a little bit more about that anywhere?
k

Kevin Kho

10/05/2021, 6:10 PM
I guess the best is here
You’re using an agent right?