https://prefect.io logo
Title
m

Maximilian Rausch

01/19/2022, 3:33 PM
Is there any step by step tutorials or example on how to set up an agent to run a flow on a windows laptop with a local git repository? I've read through the docs but I can't find a full example and googling isn't helping much.
k

Kevin Kho

01/19/2022, 3:46 PM
Hey @Maximilian Rausch, are you running into any specific error? Is the problem the agent or the git repo?
m

Maximilian Rausch

01/20/2022, 3:24 AM
I haven't tried the repo storage yet only local so I don't have any errors. I just think the docs and API descriptions are not that clear and there's not extensive code samples so will probably have to figure it with trial and error.
k

Kevin Kho

01/20/2022, 3:28 AM
The local repo part is hard because Git storage needs a host. Do you mean you host your repo somewhere? or the repo only exists on a local machine?
m

Maximilian Rausch

01/20/2022, 3:09 PM
It's backed by BitBucket but it's not clear to me if you can use a local repo the same Way you use the local file system. It allows another layer of control.
From my understanding only the latest commit will run
k

Kevin Kho

01/20/2022, 4:25 PM
I dont think you can use a local repo with Git storage because that storage works my cloning the repo from the host. I would just use
Local
storage and point to the file containing the Flow.
m

Maximilian Rausch

01/21/2022, 6:07 AM
I guess I'm not understanding what Git storage does. Why can't you point it towards a local repo the same way you point it towards a directory with local mode. Is prefect using git for something else besides the code ?
k

Kevin Kho

01/21/2022, 6:10 AM
It gets the Flow by cloning the repo and clones from the URL. I’m not seeing how you would point this to a local git repo (and why even clone right?)
By local you mean it’s not on a server right? It’s on the same machine? Or do you just mean self-hosted on a server?
m

Maximilian Rausch

01/24/2022, 2:52 PM
You can clone from a local repo
I thought maybe it was just reading the data instead of cloning though