https://prefect.io logo
#prefect-community
Title
# prefect-community
a

Aaron Ash

03/18/2022, 7:56 AM
when registering flows from python modules with the cli is it possible to override the
executor
and `run_config`s of the flows somehow?
a

Anna Geller

03/18/2022, 11:10 AM
In theory, yes, using the
--json
option, but it would be painful to configure IMO. Regarding executor: it doesn't matter during registration because Prefect doesn't store the executor info in the backend -it's retrieved from your flow storage at runtime. Regarding run config: you're right that this gets stored in the backend and any change to that requires registration, but the cleanest way of doing that would be overwriting it directly in your flow code and then using CLI to register the new flow version with updated run config. This page explains it more https://discourse.prefect.io/t/when-do-i-need-to-reregister-my-flow-which-changes-in-flow-metadata-result-in-prefect-bumping-up-the-flow-version/403
a

Aaron Ash

03/19/2022, 1:15 AM
Thanks @Anna Geller, that helps a lot, I've got a plan of attack now
👍 1
5 Views