https://prefect.io logo
Title
m

Marwan Sarieddine

07/22/2020, 1:28 PM
Hi folks, is it possible to change a flow’s execution environment after a flow is registered ?
j

josh

07/22/2020, 1:35 PM
As it currently stands you will need to reregister the flow to change the environment
m

Marwan Sarieddine

07/22/2020, 1:42 PM
@josh - thanks for the quick response, is there a way to pull the flow from the server ? (or would the user need access to the code that created the flow and have to re-create it ?)
j

josh

07/22/2020, 1:43 PM
The user would need to have access to the code to recreate it, the server has no concept of the actual flow code and only stores the metadata associated with it 🙂
m

Marwan Sarieddine

07/22/2020, 1:43 PM
gotcha
So I guess as a workaround I would have to manually serialize the flow and store it somewhere on s3 - to be able to pull it, deserialize it and then change its environment ?
j

josh

07/22/2020, 1:46 PM
Yeah if you don’t have access to the flow code then you need to retrieve it from somewhere to update and reregister it
m

Marwan Sarieddine

07/22/2020, 1:47 PM
Ok - will give it a try - thanks !