when registering flows from python modules with th...
# prefect-community
a
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
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
Thanks @Anna Geller, that helps a lot, I've got a plan of attack now
👍 1