https://prefect.io logo
Title
l

Lana Dann

03/16/2022, 4:55 PM
is there a way to validate flows before registering them? i’d like to test things locally like storage, etc. that would otherwise cause an error on the registering step
k

Kevin Kho

03/16/2022, 4:58 PM
Not really because
flow.run()
does not respect storage or RunConfig. What are you imagining? Some easier way to debug? Cuz you can do something like
storage = S3(...)
storage.build()
The registration calls the build but you can do it independently lol
k

Kyle McChesney

03/16/2022, 5:00 PM
Not sure if its a support pattern per-say, but we have the following
flow.storage = S3(storage_bucket)
flow.run_config = ECSRun(image=image)
flow.serialize(build=True)
I’ve seen this catch issues with the flow, before actually registering it
k

Kevin Kho

03/16/2022, 5:01 PM
Ah that’s true that should call the build as well
l

Lana Dann

03/16/2022, 5:01 PM
sweeeet! thanks yall