Sean Talia
07/23/2021, 1:40 PMKevin Kho
Sean Talia
07/23/2021, 2:19 PMKevin Kho
prefect run
right? Or I suppose if you have have more involved things, you can use a Python script. With what you described though, I think using the API makes your life easier there, not harder.Sean Talia
07/23/2021, 2:26 PMprefect run
in production environments; I always assumed (maybe wrongly?) that it makes more sense to register your flow so that you can take advantage of all the nice visualization the UI will give you – I guess this is a separate question since you said "using the API makes your life easier", but are there specific use cases where you think it makes more sense to do prefect run
than go through the registration/agent setup?Zanie
prefect run
-- You can use this with a registered flow and get all of the benefits of UI visualization. Just prefect run --name "your-flow-name" --watch
will create a flow run that will be submitted to an agent then stream logs to local stdout. The error code will reflect the success of the flow run (which sounds like what you'd want in CI). You can also do prefect run --name"your-flow" --execute
and it will run with API reporting (ie you can see it in the UI) but it will execute directly in your CI process without being sent to an agent.Sean Talia
07/23/2021, 2:35 PM0.14.17
?Kevin Kho
Sean Harkins
07/23/2021, 7:02 PM