I’m using `database = prefect.context.get("databas...
# prefect-server
c
I’m using
database = prefect.context.get("database", "JOYN_SNOW_BI_1841")
in one of my flows, but if I set the database key via the Cloud interface like the below, it is not being used in the flow run - anybody got an idea what I’m doing wrong? Do I maybe need to transfer the context.get into a task?
k
Hi @Christoph Wiese! Yeah, can you try transferring it to a task?
c
Hi Kevin, I’ll give that a try 🙂
It works fine in a task - am I right to assume that in a Flow the value gets serialised and not actually refreshed during the run?
k
For pickle based storage - yes. For script based storage, I think not.
c
Ah, that is awesome, thanks!