Hi everyone !
Do you know if it is possible to update the value of a prefect parameter during a flow?
I have a flow which is checking if a new file has been uploaded in a blob storage and i want to store the metadata of the previous file in prefect, and update these as soon as their is a new file available.
I cannot find an example of it !
05/11/2022, 4:40 PM
Are you wanting to change the parameter value just for the run, or the default parameter value?
05/11/2022, 4:42 PM
no i want to change the parameter which is stored in prefect cloud. That way i can retrieve the new value next time the flow is run
05/11/2022, 4:44 PM
I attempted to do that recently and found that it's not easy to do. As far as I can tell you can only change the value using the GraphQL client, and you have to get the flow group id (which is not in the context) in order to do that. I ended up using the KV Store instead which works very well, you might want to look into that.
05/11/2022, 4:47 PM
Thank your for your help and insights !! I will look into KV Store