hi , is there a way to use the prefect flow contex...
# ask-community
y
hi , is there a way to use the prefect flow context as a cache layer ? i want to pass variable’s values between tasks , but the number and kind of the variables is different between tasks. can i set the variable value in some shared context and use it when i need inside some task , or i need to handle it outside of prefect ?
r
n
yeah variables or a JSON block is what I thought of reading this question
💯 1
y
i dont see a way to set the variable value programmatically from python, which is what i need. did i miss something ?
n
there's an API endpoint you can use but is not exposed in the SDK, so I guess I might recommend a JSON block instead