banditelol
10/26/2020, 11:29 AMflow.run()
to run it locally and change it to flow.register()
when I'm done.
2. Push the changes to git repo
3. Pull it from the server
4. Run the modified/created flow so that it's registered on Prefect Server (btw I have one agent running on the background in the server)
5. Activate the Flow from the UI
I feel that there's clearly better way to do this, but I haven't found anything yet from googling. I really appreciate if there are anyone that could help give any clue for this.
Thanks 🙂emre
10/26/2020, 12:24 PMDocker(Storage)
, with the base image identifier in my docker registry.
4- Activate the flow however I need to.banditelol
10/26/2020, 12:27 PMOne thing I didn’t understand is #3, are you pushing the flow from your workstation, and pulling into the machine that hosts prefect server?Yes currently I push the changes to a git repo and pull that git repo in my prefect server.
You can just register flows from your own workstation, as long as your configuration points to the right prefect server url.Can you point me to the documentation regarding this part? I have tried register flow from my local machine, but somehow the agents in the server can't run the flow (in the UI it is registered and scheduled, but can't be run)
I personally wrap a basic cli around my flow, which lets me pick between running, registering and visualizing. Then in the CI/CD pipeline:I see.. so you create a separate container that contains all the flows, and register it automatically in the CI/CD pipeline. Thanks for the advice @emre, I think I'll try finding out how to register the flow from my local machine. If you have any resource (docs) regarding this part it'll really help.